Version Notes
Tested with Magento 1.3.2.2
Download this release
Release Info
Developer | Magento Core Team |
Extension | LUKA_GoogleAdWords |
Version | 0.1.2 |
Comparing to | |
See all releases |
Code changes from version 0.1.1 to 0.1.2
app/code/community/LUKA/GoogleAdWords/Block/Conversion.php
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
* @package LUKA_GoogleAdWords
|
24 |
* @copyright Copyright (c) 2009 LUKA netconsult GmbH (www.luka.de)
|
25 |
* @license GNU General Public Licence 3 <http://www.gnu.org/licenses/gpl-3.0.txt>
|
26 |
-
* @version $Id: Conversion.php
|
27 |
*/
|
28 |
|
29 |
/**
|
@@ -31,7 +31,7 @@
|
|
31 |
*
|
32 |
* @author Axel Helmert <ah@luka.de>
|
33 |
* @copyright Copyright (c) 2009 LUKA netconsult GmbH (www.luka.de)
|
34 |
-
* @version $Id: Conversion.php
|
35 |
* @package LUKA_GoogleAdWords
|
36 |
*/
|
37 |
class LUKA_GoogleAdWords_Block_Conversion
|
@@ -69,7 +69,7 @@ extends Mage_Core_Block_Template
|
|
69 |
public function getConversionId()
|
70 |
{
|
71 |
if (!$this->hasConversionId()) {
|
72 |
-
$conversionId = (int)Mage::
|
73 |
$this->setConversionId($conversionId);
|
74 |
}
|
75 |
|
@@ -180,4 +180,25 @@ extends Mage_Core_Block_Template
|
|
180 |
|
181 |
return $url;
|
182 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
}
|
23 |
* @package LUKA_GoogleAdWords
|
24 |
* @copyright Copyright (c) 2009 LUKA netconsult GmbH (www.luka.de)
|
25 |
* @license GNU General Public Licence 3 <http://www.gnu.org/licenses/gpl-3.0.txt>
|
26 |
+
* @version $Id: Conversion.php 2637 2009-08-31 14:02:28Z helmert $
|
27 |
*/
|
28 |
|
29 |
/**
|
31 |
*
|
32 |
* @author Axel Helmert <ah@luka.de>
|
33 |
* @copyright Copyright (c) 2009 LUKA netconsult GmbH (www.luka.de)
|
34 |
+
* @version $Id: Conversion.php 2637 2009-08-31 14:02:28Z helmert $
|
35 |
* @package LUKA_GoogleAdWords
|
36 |
*/
|
37 |
class LUKA_GoogleAdWords_Block_Conversion
|
69 |
public function getConversionId()
|
70 |
{
|
71 |
if (!$this->hasConversionId()) {
|
72 |
+
$conversionId = (int)Mage::getStoreConfig('google/adwords_conversion/conversion_id');
|
73 |
$this->setConversionId($conversionId);
|
74 |
}
|
75 |
|
180 |
|
181 |
return $url;
|
182 |
}
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Returns the non JS fallback url
|
186 |
+
*
|
187 |
+
* @return string
|
188 |
+
*/
|
189 |
+
public function getFallbackUrl()
|
190 |
+
{
|
191 |
+
$url = 'http';
|
192 |
+
|
193 |
+
if ($this->getRequest()->isSecure()) {
|
194 |
+
$url .= 's';
|
195 |
+
}
|
196 |
+
|
197 |
+
$url .= '://www.googleadservices.com/pagead/conversion/'
|
198 |
+
. $this->getConversionId() . '/?value='
|
199 |
+
. $this->getConversionValue()
|
200 |
+
. '&label=' . $this->getConversionLabel() . '&guid=ON&script=0';
|
201 |
+
|
202 |
+
return $url;
|
203 |
+
}
|
204 |
}
|
app/code/community/LUKA/GoogleAdWords/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<LUKA_GoogleAdWords>
|
5 |
-
<version>0.1.
|
6 |
</LUKA_GoogleAdWords>
|
7 |
</modules>
|
8 |
|
2 |
<config>
|
3 |
<modules>
|
4 |
<LUKA_GoogleAdWords>
|
5 |
+
<version>0.1.2</version>
|
6 |
</LUKA_GoogleAdWords>
|
7 |
</modules>
|
8 |
|
app/design/frontend/default/default/template/luka/google/adwords/conversion.phtml
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
* @package LUKA_GoogleAdWords
|
25 |
* @copyright Copyright (c) 2009 LUKA netconsult GmbH (www.luka.de)
|
26 |
* @license GNU General Public Licence 3 <http://www.gnu.org/licenses/gpl-3.0.txt>
|
27 |
-
* @version $Id: conversion.phtml
|
28 |
*/
|
29 |
?>
|
30 |
<!-- Google Code for Kauf Conversion Page -->
|
@@ -42,4 +42,10 @@
|
|
42 |
<?php endif ?>
|
43 |
</script>
|
44 |
<script type="text/javascript" src="<?php echo $this->getConversionScriptUrl() ?>"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
</div>
|
24 |
* @package LUKA_GoogleAdWords
|
25 |
* @copyright Copyright (c) 2009 LUKA netconsult GmbH (www.luka.de)
|
26 |
* @license GNU General Public Licence 3 <http://www.gnu.org/licenses/gpl-3.0.txt>
|
27 |
+
* @version $Id: conversion.phtml 2637 2009-08-31 14:02:28Z helmert $
|
28 |
*/
|
29 |
?>
|
30 |
<!-- Google Code for Kauf Conversion Page -->
|
42 |
<?php endif ?>
|
43 |
</script>
|
44 |
<script type="text/javascript" src="<?php echo $this->getConversionScriptUrl() ?>"></script>
|
45 |
+
|
46 |
+
<noscript>
|
47 |
+
<div style="display:inline">
|
48 |
+
<img height="1" width="1" style="border-style:none" alt="" src="<?php echo $this->getFallbackUrl() ?>" />
|
49 |
+
</div>
|
50 |
+
</noscript>
|
51 |
</div>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>LUKA_GoogleAdWords</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl-3.0.txt">GNU General Public License 3</license>
|
7 |
<channel>community</channel>
|
@@ -12,9 +12,9 @@
|
|
12 |
The code will be placed on the onepage checkout success page</description>
|
13 |
<notes>Tested with Magento 1.3.2.2</notes>
|
14 |
<authors><author><name>Axel Helmert</name><user>auto-converted</user><email>ah@luka.de</email></author></authors>
|
15 |
-
<date>2009-
|
16 |
-
<time>
|
17 |
-
<contents><target name="magelocale"><dir name="de_DE"><file name="LUKA_GoogleAdWords.csv" hash="ea7dd44eb3c8dfa8d7a619b6f49340b8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="luka_googleadwords.xml" hash="8e103378556bf6e167c02fb0fb3faefe"/></dir><dir name="template"><dir name="luka"><dir name="google"><dir name="adwords"><file name="conversion.phtml" hash="
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>LUKA_GoogleAdWords</name>
|
4 |
+
<version>0.1.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl-3.0.txt">GNU General Public License 3</license>
|
7 |
<channel>community</channel>
|
12 |
The code will be placed on the onepage checkout success page</description>
|
13 |
<notes>Tested with Magento 1.3.2.2</notes>
|
14 |
<authors><author><name>Axel Helmert</name><user>auto-converted</user><email>ah@luka.de</email></author></authors>
|
15 |
+
<date>2009-09-03</date>
|
16 |
+
<time>13:41:57</time>
|
17 |
+
<contents><target name="magelocale"><dir name="de_DE"><file name="LUKA_GoogleAdWords.csv" hash="ea7dd44eb3c8dfa8d7a619b6f49340b8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="luka_googleadwords.xml" hash="8e103378556bf6e167c02fb0fb3faefe"/></dir><dir name="template"><dir name="luka"><dir name="google"><dir name="adwords"><file name="conversion.phtml" hash="d076c1bc13ac4cfcb81e416be5ec049c"/></dir></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="LUKA"><dir name="GoogleAdWords"><dir name="Block"><file name="Conversion.php" hash="48faa82265089140c7618ff8c1ccc02e"/></dir><dir name="etc"><file name="config.xml" hash="5efe30afd0ae19b7dfc37ce3d18326b9"/><file name="system.xml" hash="2931cf8a51a0370af785b74a87c97cd9"/></dir><dir name="Helper"><file name="Data.php" hash="fa7448a7d01bb7039f5da946cd32e203"/></dir><file name="LICENSE" hash="d32239bcb673463ab874e80d47fae504"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LUKA_GoogleAdWords.xml" hash="75a2042c3da36b91e1ee247a2cd4de72"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|