Version Notes
* Code tidy and formatting
Download this release
Release Info
Developer | Kathir Vel |
Extension | Optimiseweb_Getclicky |
Version | 0.1.8 |
Comparing to | |
See all releases |
Code changes from version 0.1.7 to 0.1.8
- app/code/community/Optimiseweb/Getclicky/Helper/Data.php +24 -31
- app/code/community/Optimiseweb/Getclicky/Model/System/Config/Source/Goaltypes.php +16 -17
- app/code/community/Optimiseweb/Getclicky/Model/System/Config/Source/Trackertypes.php +20 -21
- app/code/community/Optimiseweb/Getclicky/etc/adminhtml.xml +39 -39
- app/code/community/Optimiseweb/Getclicky/etc/config.xml +80 -80
- app/code/community/Optimiseweb/Getclicky/etc/system.xml +273 -273
- app/design/frontend/base/default/layout/optimiseweb_getclicky.xml +47 -47
- app/design/frontend/base/default/template/optimiseweb/getclicky/goals/cart-page.phtml +13 -22
- app/design/frontend/base/default/template/optimiseweb/getclicky/goals/checkout-onepage-entry.phtml +12 -21
- app/design/frontend/base/default/template/optimiseweb/getclicky/goals/checkout-onepage-success.phtml +20 -31
- app/design/frontend/base/default/template/optimiseweb/getclicky/tracker.phtml +49 -47
- app/etc/modules/Optimiseweb_Getclicky.xml +13 -13
- package.xml +5 -6
app/code/community/Optimiseweb/Getclicky/Helper/Data.php
CHANGED
@@ -5,45 +5,38 @@
|
|
5 |
*
|
6 |
* @package Optimiseweb_Getclicky
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
-
* @copyright Copyright (c)
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Getclicky_Helper_Data extends Mage_Core_Helper_Abstract
|
12 |
{
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
{
|
21 |
-
if (Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/enabled') == 1)
|
22 |
{
|
23 |
-
|
24 |
}
|
25 |
-
else
|
26 |
-
{
|
27 |
-
return FALSE;
|
28 |
-
}
|
29 |
-
}
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
|
48 |
|
49 |
}
|
5 |
*
|
6 |
* @package Optimiseweb_Getclicky
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Getclicky_Helper_Data extends Mage_Core_Helper_Abstract
|
12 |
{
|
13 |
|
14 |
+
/**
|
15 |
+
* Check if enabled
|
16 |
+
*
|
17 |
+
* @return boolean
|
18 |
+
*/
|
19 |
+
public function isEnabled()
|
|
|
|
|
20 |
{
|
21 |
+
return (bool) Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/enabled');
|
22 |
}
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
/**
|
25 |
+
* Returns all system configuration data for Optimiseweb Getclicky
|
26 |
+
*
|
27 |
+
* @return object $data
|
28 |
+
*/
|
29 |
+
public function getClickyData()
|
30 |
+
{
|
31 |
+
$data = new stdClass();
|
32 |
+
$data->SiteId = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/site_id');
|
33 |
+
$data->TrackerType = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/tracker_type');
|
34 |
+
$data->AffiliateDisplay = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/affiliate_display');
|
35 |
+
$data->AffiliateTitle = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/affiliate_title');
|
36 |
+
$data->AffiliateLink = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/affiliate_link');
|
37 |
+
$data->AffiliateBadge = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/affiliate_badge');
|
38 |
|
39 |
+
return $data;
|
40 |
+
}
|
41 |
|
42 |
}
|
app/code/community/Optimiseweb/Getclicky/Model/System/Config/Source/Goaltypes.php
CHANGED
@@ -5,30 +5,29 @@
|
|
5 |
*
|
6 |
* @package Optimiseweb_Getclicky
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
-
* @copyright Copyright (c)
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Getclicky_Model_System_Config_Source_Goaltypes
|
12 |
{
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
{
|
18 |
-
if (!$this->_options)
|
19 |
{
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
30 |
}
|
31 |
-
return $this->_options;
|
32 |
-
}
|
33 |
|
34 |
}
|
5 |
*
|
6 |
* @package Optimiseweb_Getclicky
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Getclicky_Model_System_Config_Source_Goaltypes
|
12 |
{
|
13 |
|
14 |
+
protected $_options;
|
15 |
|
16 |
+
public function toOptionArray()
|
|
|
|
|
17 |
{
|
18 |
+
if (!$this->_options) {
|
19 |
+
$this->_options = array(
|
20 |
+
array(
|
21 |
+
'value' => 'dynamic',
|
22 |
+
'label' => 'Dynamic Goal'
|
23 |
+
),
|
24 |
+
array(
|
25 |
+
'value' => 'preconfigured_id',
|
26 |
+
'label' => 'Preconfigured Goal (ID Based)'
|
27 |
+
),
|
28 |
+
);
|
29 |
+
}
|
30 |
+
return $this->_options;
|
31 |
}
|
|
|
|
|
32 |
|
33 |
}
|
app/code/community/Optimiseweb/Getclicky/Model/System/Config/Source/Trackertypes.php
CHANGED
@@ -5,34 +5,33 @@
|
|
5 |
*
|
6 |
* @package Optimiseweb_Getclicky
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
-
* @copyright Copyright (c)
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Getclicky_Model_System_Config_Source_Trackertypes
|
12 |
{
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
{
|
18 |
-
if (!$this->_options)
|
19 |
{
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
34 |
}
|
35 |
-
return $this->_options;
|
36 |
-
}
|
37 |
|
38 |
}
|
5 |
*
|
6 |
* @package Optimiseweb_Getclicky
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Getclicky_Model_System_Config_Source_Trackertypes
|
12 |
{
|
13 |
|
14 |
+
protected $_options;
|
15 |
|
16 |
+
public function toOptionArray()
|
|
|
|
|
17 |
{
|
18 |
+
if (!$this->_options) {
|
19 |
+
$this->_options = array(
|
20 |
+
array(
|
21 |
+
'value' => 1,
|
22 |
+
'label' => 'Default'
|
23 |
+
),
|
24 |
+
array(
|
25 |
+
'value' => 2,
|
26 |
+
'label' => 'Asynchronous'
|
27 |
+
),
|
28 |
+
array(
|
29 |
+
'value' => 3,
|
30 |
+
'label' => 'Non-Javascript'
|
31 |
+
)
|
32 |
+
);
|
33 |
+
}
|
34 |
+
return $this->_options;
|
35 |
}
|
|
|
|
|
36 |
|
37 |
}
|
app/code/community/Optimiseweb/Getclicky/etc/adminhtml.xml
CHANGED
@@ -1,46 +1,46 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
<config>
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
<children>
|
18 |
-
<optimiseweball translate="title" module="getclicky">
|
19 |
-
<title>Optimise Web - Menu Group</title>
|
20 |
-
<sort_order>10</sort_order>
|
21 |
-
<children>
|
22 |
-
<getclicky translate="title" module="getclicky">
|
23 |
-
<title>Optimise Web - GetClicky Integration</title>
|
24 |
-
<sort_order>10</sort_order>
|
25 |
-
</getclicky>
|
26 |
-
</children>
|
27 |
-
</optimiseweball>
|
28 |
-
<system>
|
29 |
-
<children>
|
30 |
-
<config>
|
31 |
<children>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
</children>
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
</children>
|
43 |
-
</admin>
|
44 |
-
</resources>
|
45 |
-
</acl>
|
46 |
</config>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* @package Optimiseweb_Getclicky
|
5 |
+
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
<config>
|
11 |
+
<acl>
|
12 |
+
<resources>
|
13 |
+
<all>
|
14 |
+
<title>Allow Everything</title>
|
15 |
+
</all>
|
16 |
+
<admin>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
<children>
|
18 |
+
<optimiseweball translate="title" module="getclicky">
|
19 |
+
<title>Optimise Web - Menu Group</title>
|
20 |
+
<sort_order>10</sort_order>
|
21 |
+
<children>
|
22 |
+
<getclicky translate="title" module="getclicky">
|
23 |
+
<title>Optimise Web - GetClicky Integration</title>
|
24 |
+
<sort_order>10</sort_order>
|
25 |
+
</getclicky>
|
26 |
+
</children>
|
27 |
+
</optimiseweball>
|
28 |
+
<system>
|
29 |
+
<children>
|
30 |
+
<config>
|
31 |
+
<children>
|
32 |
+
<optimisewebconfig translate="title" module="getclicky">
|
33 |
+
<title>Optimise Web - System Configuration Group</title>
|
34 |
+
</optimisewebconfig>
|
35 |
+
<optimisewebgetclickyconfig translate="title" module="getclicky">
|
36 |
+
<title>Optimise Web - GetClicky Integration</title>
|
37 |
+
</optimisewebgetclickyconfig>
|
38 |
+
</children>
|
39 |
+
</config>
|
40 |
+
</children>
|
41 |
+
</system>
|
42 |
</children>
|
43 |
+
</admin>
|
44 |
+
</resources>
|
45 |
+
</acl>
|
|
|
|
|
|
|
|
|
46 |
</config>
|
app/code/community/Optimiseweb/Getclicky/etc/config.xml
CHANGED
@@ -1,95 +1,95 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
<config>
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
|
64 |
-
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
|
95 |
</config>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* @package Optimiseweb_Getclicky
|
5 |
+
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
<config>
|
11 |
|
12 |
+
<modules>
|
13 |
+
<Optimiseweb_Getclicky>
|
14 |
+
<version>0.1.8</version>
|
15 |
+
</Optimiseweb_Getclicky>
|
16 |
+
</modules>
|
17 |
|
18 |
+
<frontend>
|
19 |
+
<layout>
|
20 |
+
<updates>
|
21 |
+
<getclicky>
|
22 |
+
<file>optimiseweb_getclicky.xml</file>
|
23 |
+
</getclicky>
|
24 |
+
</updates>
|
25 |
+
</layout>
|
26 |
+
</frontend>
|
27 |
|
28 |
+
<adminhtml>
|
29 |
+
<menu>
|
30 |
+
<optimiseweball translate="title" module="getclicky">
|
31 |
+
<title>Optimise Web</title>
|
32 |
+
<sort_order>71</sort_order>
|
33 |
+
<children>
|
34 |
+
<getclicky translate="title" module="getclicky">
|
35 |
+
<title>GetClicky Integration</title>
|
36 |
+
<sort_order>5</sort_order>
|
37 |
+
<action>adminhtml/system_config/edit/section/optimisewebgetclickyconfig</action>
|
38 |
+
</getclicky>
|
39 |
+
</children>
|
40 |
+
</optimiseweball>
|
41 |
+
</menu>
|
42 |
+
</adminhtml>
|
43 |
|
44 |
+
<global>
|
45 |
|
46 |
+
<blocks>
|
47 |
+
<getclicky>
|
48 |
+
<class>Optimiseweb_Getclicky_Block</class>
|
49 |
+
</getclicky>
|
50 |
+
</blocks>
|
51 |
|
52 |
+
<helpers>
|
53 |
+
<getclicky>
|
54 |
+
<class>Optimiseweb_Getclicky_Helper</class>
|
55 |
+
</getclicky>
|
56 |
+
</helpers>
|
57 |
|
58 |
+
<models>
|
59 |
+
<getclicky>
|
60 |
+
<class>Optimiseweb_Getclicky_Model</class>
|
61 |
+
</getclicky>
|
62 |
+
</models>
|
63 |
|
64 |
+
</global>
|
65 |
|
66 |
+
<default>
|
67 |
+
<optimisewebgetclickyconfig>
|
68 |
+
<getclickygeneral>
|
69 |
+
<enabled>0</enabled>
|
70 |
+
<tracker_type>1</tracker_type>
|
71 |
+
<affiliate_display>1</affiliate_display>
|
72 |
+
<affiliate_link>http://getclicky.com/240502</affiliate_link>
|
73 |
+
<affiliate_badge>//static.getclicky.com/media/links/badge.gif</affiliate_badge>
|
74 |
+
<affiliate_title>GetClicky Web Analytics</affiliate_title>
|
75 |
+
</getclickygeneral>
|
76 |
+
<goal_checkout_onepage_success>
|
77 |
+
<enabled>0</enabled>
|
78 |
+
<goal_type>dynamic</goal_type>
|
79 |
+
<goal_name>Onepage Checkout Success</goal_name>
|
80 |
+
<goal_revenue>1</goal_revenue>
|
81 |
+
</goal_checkout_onepage_success>
|
82 |
+
<goal_checkout_onepage_entry>
|
83 |
+
<enabled>0</enabled>
|
84 |
+
<goal_type>dynamic</goal_type>
|
85 |
+
<goal_name>Onepage Checkout Entry</goal_name>
|
86 |
+
</goal_checkout_onepage_entry>
|
87 |
+
<goal_cart_page>
|
88 |
+
<enabled>0</enabled>
|
89 |
+
<goal_type>dynamic</goal_type>
|
90 |
+
<goal_name>Cart Page</goal_name>
|
91 |
+
</goal_cart_page>
|
92 |
+
</optimisewebgetclickyconfig>
|
93 |
+
</default>
|
94 |
|
95 |
</config>
|
app/code/community/Optimiseweb/Getclicky/etc/system.xml
CHANGED
@@ -1,289 +1,289 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
<config>
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
|
30 |
-
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
|
284 |
-
|
285 |
|
286 |
-
|
287 |
|
288 |
-
|
289 |
</config>
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* @package Optimiseweb_Getclicky
|
5 |
+
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
<config>
|
11 |
|
12 |
+
<tabs>
|
13 |
+
<optimisewebconfig translate="label comment" module="getclicky">
|
14 |
+
<label>Optimise Web</label>
|
15 |
+
<sort_order>0</sort_order>
|
16 |
+
</optimisewebconfig>
|
17 |
+
</tabs>
|
18 |
|
19 |
+
<sections>
|
20 |
|
21 |
+
<optimisewebgetclickyconfig translate="label comment" module="getclicky">
|
22 |
+
<label>GetClicky Integration</label>
|
23 |
+
<tab>optimisewebconfig</tab>
|
24 |
+
<frontend_type>text</frontend_type>
|
25 |
+
<sort_order>99999</sort_order>
|
26 |
+
<show_in_default>1</show_in_default>
|
27 |
+
<show_in_website>1</show_in_website>
|
28 |
+
<show_in_store>1</show_in_store>
|
29 |
|
30 |
+
<groups>
|
31 |
|
32 |
+
<getclickyabout translate="label comment">
|
33 |
+
<label>About - GetClicky Integration by Optimise Web</label>
|
34 |
+
<comment><![CDATA[This Magento extension is developed by <a href="http://optimiseweb.co.uk/" target="_optimiseweb" style="text-decoration: none;">Optimise Web</a>. If you do not have a GetClicky account, you can sign up here: <a href="http://getclicky.com/240502" target="_getclicky" style="text-decoration: none;">GetClicky</a><script type="text/javascript">$('optimisewebgetclickyconfig_getclickyabout').hide();</script>]]>
|
35 |
+
</comment>
|
36 |
+
<sort_order>1</sort_order>
|
37 |
+
<show_in_default>1</show_in_default>
|
38 |
+
<show_in_website>1</show_in_website>
|
39 |
+
<show_in_store>1</show_in_store>
|
40 |
+
<fields>
|
41 |
+
<ignored>
|
42 |
+
<label></label>
|
43 |
+
<comment><![CDATA[<div id="J5BhDU3P26384w8v"></div><script type="text/javascript">$('J5BhDU3P26384w8v').up('tr').remove();</script>]]>
|
44 |
+
</comment>
|
45 |
+
<frontend_type>text</frontend_type>
|
46 |
+
<sort_order>1</sort_order>
|
47 |
+
<show_in_default>1</show_in_default>
|
48 |
+
<show_in_website>1</show_in_website>
|
49 |
+
<show_in_store>1</show_in_store>
|
50 |
+
</ignored>
|
51 |
+
</fields>
|
52 |
+
</getclickyabout>
|
53 |
|
54 |
+
<getclickygeneral translate="label comment">
|
55 |
+
<label>General Settings</label>
|
56 |
+
<frontend_type>text</frontend_type>
|
57 |
+
<sort_order>2</sort_order>
|
58 |
+
<show_in_default>1</show_in_default>
|
59 |
+
<show_in_website>1</show_in_website>
|
60 |
+
<show_in_store>1</show_in_store>
|
61 |
+
<fields>
|
62 |
+
<enabled translate="label comment">
|
63 |
+
<label>Enable?</label>
|
64 |
+
<frontend_type>select</frontend_type>
|
65 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
66 |
+
<sort_order>1</sort_order>
|
67 |
+
<show_in_default>1</show_in_default>
|
68 |
+
<show_in_website>1</show_in_website>
|
69 |
+
<show_in_store>1</show_in_store>
|
70 |
+
</enabled>
|
71 |
+
<site_id translate="label comment">
|
72 |
+
<label>Site ID</label>
|
73 |
+
<comment>This can be found by visiting the Preferences >> Info section of the website account from your GetClicky dashboard.</comment>
|
74 |
+
<frontend_type>text</frontend_type>
|
75 |
+
<sort_order>2</sort_order>
|
76 |
+
<show_in_default>1</show_in_default>
|
77 |
+
<show_in_website>1</show_in_website>
|
78 |
+
<show_in_store>1</show_in_store>
|
79 |
+
</site_id>
|
80 |
+
<tracker_type translate="label comment">
|
81 |
+
<label>Type of tracker to use</label>
|
82 |
+
<comment>Use 'Default' unless you know what the other options mean.</comment>
|
83 |
+
<frontend_type>select</frontend_type>
|
84 |
+
<sort_order>3</sort_order>
|
85 |
+
<source_model>getclicky/system_config_source_trackertypes</source_model>
|
86 |
+
<show_in_default>1</show_in_default>
|
87 |
+
<show_in_website>1</show_in_website>
|
88 |
+
<show_in_store>1</show_in_store>
|
89 |
+
</tracker_type>
|
90 |
+
<affiliate_display translate="label comment">
|
91 |
+
<label>Affiliate - Show logo?</label>
|
92 |
+
<comment>Enables or disables the GetClicky image and affiliate link</comment>
|
93 |
+
<frontend_type>select</frontend_type>
|
94 |
+
<sort_order>4</sort_order>
|
95 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
96 |
+
<show_in_default>1</show_in_default>
|
97 |
+
<show_in_website>1</show_in_website>
|
98 |
+
<show_in_store>1</show_in_store>
|
99 |
+
</affiliate_display>
|
100 |
+
<affiliate_link translate="label comment">
|
101 |
+
<label>Affiliate Link</label>
|
102 |
+
<comment></comment>
|
103 |
+
<frontend_type>text</frontend_type>
|
104 |
+
<sort_order>5</sort_order>
|
105 |
+
<show_in_default>1</show_in_default>
|
106 |
+
<show_in_website>1</show_in_website>
|
107 |
+
<show_in_store>1</show_in_store>
|
108 |
+
</affiliate_link>
|
109 |
+
<affiliate_badge translate="label comment">
|
110 |
+
<label>Affiliate Badge Image</label>
|
111 |
+
<comment>Note: You may notice there is no "http:" at the beginning of this URL. This is called 'protocol relative'. In this mode, a browser will load the resources with HTTP or HTTPS automatically, depending on the context of the page it's loaded on.</comment>
|
112 |
+
<frontend_type>text</frontend_type>
|
113 |
+
<sort_order>6</sort_order>
|
114 |
+
<show_in_default>1</show_in_default>
|
115 |
+
<show_in_website>1</show_in_website>
|
116 |
+
<show_in_store>1</show_in_store>
|
117 |
+
</affiliate_badge>
|
118 |
+
<affiliate_title translate="label comment">
|
119 |
+
<label>Affiliate Link Title</label>
|
120 |
+
<comment>Used as the link 'title' and image 'alt'</comment>
|
121 |
+
<frontend_type>text</frontend_type>
|
122 |
+
<sort_order>7</sort_order>
|
123 |
+
<show_in_default>1</show_in_default>
|
124 |
+
<show_in_website>1</show_in_website>
|
125 |
+
<show_in_store>1</show_in_store>
|
126 |
+
</affiliate_title>
|
127 |
+
</fields>
|
128 |
+
</getclickygeneral>
|
129 |
|
130 |
+
<goal_checkout_onepage_success translate="label comment">
|
131 |
+
<label>Goal - Onepage Checkout Success</label>
|
132 |
+
<comment>Tracks every successful order that lands on the /checkout/onepage/success/ page.</comment>
|
133 |
+
<frontend_type>text</frontend_type>
|
134 |
+
<sort_order>3</sort_order>
|
135 |
+
<show_in_default>1</show_in_default>
|
136 |
+
<show_in_website>1</show_in_website>
|
137 |
+
<show_in_store>1</show_in_store>
|
138 |
+
<fields>
|
139 |
+
<enabled translate="label comment">
|
140 |
+
<label>Enable?</label>
|
141 |
+
<frontend_type>select</frontend_type>
|
142 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
143 |
+
<sort_order>1</sort_order>
|
144 |
+
<show_in_default>1</show_in_default>
|
145 |
+
<show_in_website>1</show_in_website>
|
146 |
+
<show_in_store>1</show_in_store>
|
147 |
+
</enabled>
|
148 |
+
<goal_type translate="label comment">
|
149 |
+
<label>Goal Type</label>
|
150 |
+
<frontend_type>select</frontend_type>
|
151 |
+
<source_model>getclicky/system_config_source_goaltypes</source_model>
|
152 |
+
<sort_order>2</sort_order>
|
153 |
+
<show_in_default>1</show_in_default>
|
154 |
+
<show_in_website>1</show_in_website>
|
155 |
+
<show_in_store>1</show_in_store>
|
156 |
+
</goal_type>
|
157 |
+
<goal_name translate="label comment">
|
158 |
+
<label>Goal Name</label>
|
159 |
+
<comment>If using the dynamic goal type, what is your goal name? Default's to 'Onepage Checkout Success' if left blank.</comment>
|
160 |
+
<frontend_type>text</frontend_type>
|
161 |
+
<sort_order>3</sort_order>
|
162 |
+
<show_in_default>1</show_in_default>
|
163 |
+
<show_in_website>1</show_in_website>
|
164 |
+
<show_in_store>1</show_in_store>
|
165 |
+
</goal_name>
|
166 |
+
<goal_id translate="label comment">
|
167 |
+
<label>Goal ID</label>
|
168 |
+
<comment>The goal management page in GetClicky lists the ID for each preconfigured goal next to the goal's name.</comment>
|
169 |
+
<frontend_type>text</frontend_type>
|
170 |
+
<sort_order>4</sort_order>
|
171 |
+
<show_in_default>1</show_in_default>
|
172 |
+
<show_in_website>1</show_in_website>
|
173 |
+
<show_in_store>1</show_in_store>
|
174 |
+
</goal_id>
|
175 |
+
<goal_revenue translate="label comment">
|
176 |
+
<label>Add Goal Revenue?</label>
|
177 |
+
<comment>Add order 'Grand Toal' as goal revenue?</comment>
|
178 |
+
<frontend_type>select</frontend_type>
|
179 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
180 |
+
<sort_order>5</sort_order>
|
181 |
+
<show_in_default>1</show_in_default>
|
182 |
+
<show_in_website>1</show_in_website>
|
183 |
+
<show_in_store>1</show_in_store>
|
184 |
+
</goal_revenue>
|
185 |
+
</fields>
|
186 |
+
</goal_checkout_onepage_success>
|
187 |
|
188 |
+
<goal_checkout_onepage_entry translate="label comment">
|
189 |
+
<label>Goal - Onepage Checkout Entry</label>
|
190 |
+
<comment>Tracks every landing on the /checkout/onepage/ page.</comment>
|
191 |
+
<frontend_type>text</frontend_type>
|
192 |
+
<sort_order>4</sort_order>
|
193 |
+
<show_in_default>1</show_in_default>
|
194 |
+
<show_in_website>1</show_in_website>
|
195 |
+
<show_in_store>1</show_in_store>
|
196 |
+
<fields>
|
197 |
+
<enabled translate="label comment">
|
198 |
+
<label>Enable?</label>
|
199 |
+
<frontend_type>select</frontend_type>
|
200 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
201 |
+
<sort_order>1</sort_order>
|
202 |
+
<show_in_default>1</show_in_default>
|
203 |
+
<show_in_website>1</show_in_website>
|
204 |
+
<show_in_store>1</show_in_store>
|
205 |
+
</enabled>
|
206 |
+
<goal_type translate="label comment">
|
207 |
+
<label>Goal Type</label>
|
208 |
+
<frontend_type>select</frontend_type>
|
209 |
+
<source_model>getclicky/system_config_source_goaltypes</source_model>
|
210 |
+
<sort_order>2</sort_order>
|
211 |
+
<show_in_default>1</show_in_default>
|
212 |
+
<show_in_website>1</show_in_website>
|
213 |
+
<show_in_store>1</show_in_store>
|
214 |
+
</goal_type>
|
215 |
+
<goal_name translate="label comment">
|
216 |
+
<label>Goal Name</label>
|
217 |
+
<comment>If using the dynamic goal type, what is your goal name? Default's to 'Onepage Checkout Entry' if left blank.</comment>
|
218 |
+
<frontend_type>text</frontend_type>
|
219 |
+
<sort_order>3</sort_order>
|
220 |
+
<show_in_default>1</show_in_default>
|
221 |
+
<show_in_website>1</show_in_website>
|
222 |
+
<show_in_store>1</show_in_store>
|
223 |
+
</goal_name>
|
224 |
+
<goal_id translate="label comment">
|
225 |
+
<label>Goal ID</label>
|
226 |
+
<comment>The goal management page in GetClicky lists the ID for each goal next to the goal's name.</comment>
|
227 |
+
<frontend_type>text</frontend_type>
|
228 |
+
<sort_order>4</sort_order>
|
229 |
+
<show_in_default>1</show_in_default>
|
230 |
+
<show_in_website>1</show_in_website>
|
231 |
+
<show_in_store>1</show_in_store>
|
232 |
+
</goal_id>
|
233 |
+
</fields>
|
234 |
+
</goal_checkout_onepage_entry>
|
235 |
|
236 |
+
<goal_cart_page translate="label comment">
|
237 |
+
<label>Goal - Cart Page</label>
|
238 |
+
<comment>Tracks every landing on the /checkout/cart/ page.</comment>
|
239 |
+
<frontend_type>text</frontend_type>
|
240 |
+
<sort_order>5</sort_order>
|
241 |
+
<show_in_default>1</show_in_default>
|
242 |
+
<show_in_website>1</show_in_website>
|
243 |
+
<show_in_store>1</show_in_store>
|
244 |
+
<fields>
|
245 |
+
<enabled translate="label comment">
|
246 |
+
<label>Enable?</label>
|
247 |
+
<frontend_type>select</frontend_type>
|
248 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
249 |
+
<sort_order>1</sort_order>
|
250 |
+
<show_in_default>1</show_in_default>
|
251 |
+
<show_in_website>1</show_in_website>
|
252 |
+
<show_in_store>1</show_in_store>
|
253 |
+
</enabled>
|
254 |
+
<goal_type translate="label comment">
|
255 |
+
<label>Goal Type</label>
|
256 |
+
<frontend_type>select</frontend_type>
|
257 |
+
<source_model>getclicky/system_config_source_goaltypes</source_model>
|
258 |
+
<sort_order>2</sort_order>
|
259 |
+
<show_in_default>1</show_in_default>
|
260 |
+
<show_in_website>1</show_in_website>
|
261 |
+
<show_in_store>1</show_in_store>
|
262 |
+
</goal_type>
|
263 |
+
<goal_name translate="label comment">
|
264 |
+
<label>Goal Name</label>
|
265 |
+
<comment>If using the dynamic goal type, what is your goal name? Default's to 'Cart Page' if left blank.</comment>
|
266 |
+
<frontend_type>text</frontend_type>
|
267 |
+
<sort_order>3</sort_order>
|
268 |
+
<show_in_default>1</show_in_default>
|
269 |
+
<show_in_website>1</show_in_website>
|
270 |
+
<show_in_store>1</show_in_store>
|
271 |
+
</goal_name>
|
272 |
+
<goal_id translate="label comment">
|
273 |
+
<label>Goal ID</label>
|
274 |
+
<comment>The goal management page in GetClicky lists the ID for each goal next to the goal's name.</comment>
|
275 |
+
<frontend_type>text</frontend_type>
|
276 |
+
<sort_order>4</sort_order>
|
277 |
+
<show_in_default>1</show_in_default>
|
278 |
+
<show_in_website>1</show_in_website>
|
279 |
+
<show_in_store>1</show_in_store>
|
280 |
+
</goal_id>
|
281 |
+
</fields>
|
282 |
+
</goal_cart_page>
|
283 |
|
284 |
+
</groups>
|
285 |
|
286 |
+
</optimisewebgetclickyconfig>
|
287 |
|
288 |
+
</sections>
|
289 |
</config>
|
app/design/frontend/base/default/layout/optimiseweb_getclicky.xml
CHANGED
@@ -1,56 +1,56 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
<layout version="0.1.0">
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
|
56 |
</layout>
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* @package Optimiseweb_Getclicky
|
5 |
+
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
<layout version="0.1.0">
|
11 |
|
12 |
+
<!-- Global Tracking Code -->
|
13 |
+
<default>
|
14 |
+
<reference name="before_body_end">
|
15 |
+
<block type="core/template" name="Optimiseweb.Getclicky.Tracker">
|
16 |
+
<action method="setTemplate" ifconfig="optimisewebgetclickyconfig/getclickygeneral/enabled">
|
17 |
+
<template>optimiseweb/getclicky/tracker.phtml</template>
|
18 |
+
</action>
|
19 |
+
</block>
|
20 |
+
</reference>
|
21 |
+
</default>
|
22 |
|
23 |
+
<!-- Onepage Checkout Success Page -->
|
24 |
+
<checkout_onepage_success>
|
25 |
+
<reference name="before_body_end">
|
26 |
+
<block type="core/template" name="Optimiseweb.Getclicky.Goals.Checkout.Onepage.Success" before="Optimiseweb.Getclicky.Tracker">
|
27 |
+
<action method="setTemplate" ifconfig="optimisewebgetclickyconfig/goal_checkout_onepage_success/enabled">
|
28 |
+
<template>optimiseweb/getclicky/goals/checkout-onepage-success.phtml</template>
|
29 |
+
</action>
|
30 |
+
</block>
|
31 |
+
</reference>
|
32 |
+
</checkout_onepage_success>
|
33 |
|
34 |
+
<!-- Onepage Checkout Entry Page -->
|
35 |
+
<checkout_onepage_index>
|
36 |
+
<reference name="before_body_end">
|
37 |
+
<block type="core/template" name="Optimiseweb.Getclicky.Goals.Checkout.Onepage.Entry" before="Optimiseweb.Getclicky.Tracker">
|
38 |
+
<action method="setTemplate" ifconfig="optimisewebgetclickyconfig/goal_checkout_onepage_entry/enabled">
|
39 |
+
<template>optimiseweb/getclicky/goals/checkout-onepage-entry.phtml</template>
|
40 |
+
</action>
|
41 |
+
</block>
|
42 |
+
</reference>
|
43 |
+
</checkout_onepage_index>
|
44 |
|
45 |
+
<!-- Cart Page -->
|
46 |
+
<checkout_cart_index>
|
47 |
+
<reference name="before_body_end">
|
48 |
+
<block type="core/template" name="Optimiseweb.Getclicky.Goals.Cart.Page" before="Optimiseweb.Getclicky.Tracker">
|
49 |
+
<action method="setTemplate" ifconfig="optimisewebgetclickyconfig/goal_cart_page/enabled">
|
50 |
+
<template>optimiseweb/getclicky/goals/cart-page.phtml</template>
|
51 |
+
</action>
|
52 |
+
</block>
|
53 |
+
</reference>
|
54 |
+
</checkout_cart_index>
|
55 |
|
56 |
</layout>
|
app/design/frontend/base/default/template/optimiseweb/getclicky/goals/cart-page.phtml
CHANGED
@@ -3,39 +3,30 @@
|
|
3 |
/**
|
4 |
* @package Optimiseweb_Getclicky
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
$getClickyGoalEnabled = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/enabled');
|
10 |
$getClickyGoalType = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/goal_type');
|
11 |
-
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/goal_name'))
|
12 |
-
|
13 |
-
|
|
|
14 |
}
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/goal_id'))
|
20 |
-
{
|
21 |
-
$getClickyGoalId = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/goal_id');
|
22 |
-
}
|
23 |
-
else
|
24 |
-
{
|
25 |
-
$getClickyGoalType = 'dynamic';
|
26 |
}
|
27 |
|
28 |
$js = "";
|
29 |
$js .= "<script type=\"text/javascript\">\n";
|
30 |
$js .= "var clicky_custom = clicky_custom || {};\n";
|
31 |
$js .= "clicky_custom.goal = {\n";
|
32 |
-
if ($getClickyGoalType == 'dynamic')
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
else
|
37 |
-
{
|
38 |
-
$js .= "id: \"" . $getClickyGoalId . "\"\n";
|
39 |
}
|
40 |
$js .= "};\n";
|
41 |
$js .= "</script>\n";
|
3 |
/**
|
4 |
* @package Optimiseweb_Getclicky
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
$getClickyGoalEnabled = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/enabled');
|
10 |
$getClickyGoalType = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/goal_type');
|
11 |
+
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/goal_name')) {
|
12 |
+
$getClickyGoalName = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/goal_name');
|
13 |
+
} else {
|
14 |
+
$getClickyGoalName = 'Cart Page';
|
15 |
}
|
16 |
+
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/goal_id')) {
|
17 |
+
$getClickyGoalId = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/goal_id');
|
18 |
+
} else {
|
19 |
+
$getClickyGoalType = 'dynamic';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
|
22 |
$js = "";
|
23 |
$js .= "<script type=\"text/javascript\">\n";
|
24 |
$js .= "var clicky_custom = clicky_custom || {};\n";
|
25 |
$js .= "clicky_custom.goal = {\n";
|
26 |
+
if ($getClickyGoalType == 'dynamic') {
|
27 |
+
$js .= "name: \"" . $getClickyGoalName . "\"\n";
|
28 |
+
} else {
|
29 |
+
$js .= "id: \"" . $getClickyGoalId . "\"\n";
|
|
|
|
|
|
|
30 |
}
|
31 |
$js .= "};\n";
|
32 |
$js .= "</script>\n";
|
app/design/frontend/base/default/template/optimiseweb/getclicky/goals/checkout-onepage-entry.phtml
CHANGED
@@ -8,34 +8,25 @@
|
|
8 |
*/
|
9 |
$getClickyGoalEnabled = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/enabled');
|
10 |
$getClickyGoalType = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/goal_type');
|
11 |
-
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/goal_name'))
|
12 |
-
|
13 |
-
|
|
|
14 |
}
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/goal_id'))
|
20 |
-
{
|
21 |
-
$getClickyGoalId = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/goal_id');
|
22 |
-
}
|
23 |
-
else
|
24 |
-
{
|
25 |
-
$getClickyGoalType = 'dynamic';
|
26 |
}
|
27 |
|
28 |
$js = "";
|
29 |
$js .= "<script type=\"text/javascript\">\n";
|
30 |
$js .= "var clicky_custom = clicky_custom || {};\n";
|
31 |
$js .= "clicky_custom.goal = {\n";
|
32 |
-
if ($getClickyGoalType == 'dynamic')
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
else
|
37 |
-
{
|
38 |
-
$js .= "id: \"" . $getClickyGoalId . "\"\n";
|
39 |
}
|
40 |
$js .= "};\n";
|
41 |
$js .= "</script>\n";
|
8 |
*/
|
9 |
$getClickyGoalEnabled = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/enabled');
|
10 |
$getClickyGoalType = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/goal_type');
|
11 |
+
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/goal_name')) {
|
12 |
+
$getClickyGoalName = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/goal_name');
|
13 |
+
} else {
|
14 |
+
$getClickyGoalName = 'Onepage Checkout Entry';
|
15 |
}
|
16 |
+
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/goal_id')) {
|
17 |
+
$getClickyGoalId = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/goal_id');
|
18 |
+
} else {
|
19 |
+
$getClickyGoalType = 'dynamic';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
|
22 |
$js = "";
|
23 |
$js .= "<script type=\"text/javascript\">\n";
|
24 |
$js .= "var clicky_custom = clicky_custom || {};\n";
|
25 |
$js .= "clicky_custom.goal = {\n";
|
26 |
+
if ($getClickyGoalType == 'dynamic') {
|
27 |
+
$js .= "name: \"" . $getClickyGoalName . "\"\n";
|
28 |
+
} else {
|
29 |
+
$js .= "id: \"" . $getClickyGoalId . "\"\n";
|
|
|
|
|
|
|
30 |
}
|
31 |
$js .= "};\n";
|
32 |
$js .= "</script>\n";
|
app/design/frontend/base/default/template/optimiseweb/getclicky/goals/checkout-onepage-success.phtml
CHANGED
@@ -3,26 +3,20 @@
|
|
3 |
/**
|
4 |
* @package Optimiseweb_Getclicky
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
$getClickyGoalEnabled = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/enabled');
|
10 |
$getClickyGoalType = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_type');
|
11 |
-
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_name'))
|
12 |
-
|
13 |
-
|
|
|
14 |
}
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_id'))
|
20 |
-
{
|
21 |
-
$getClickyGoalId = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_id');
|
22 |
-
}
|
23 |
-
else
|
24 |
-
{
|
25 |
-
$getClickyGoalType = 'dynamic';
|
26 |
}
|
27 |
|
28 |
$getClickyGoalRevenue = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_revenue');
|
@@ -30,10 +24,9 @@ $getClickyGoalRevenue = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_ch
|
|
30 |
$getClickyGrandTotal = FALSE;
|
31 |
|
32 |
/* Get Order Grand Total */
|
33 |
-
if ($getClickyGoalRevenue)
|
34 |
-
|
35 |
-
|
36 |
-
$getClickyGrandTotal = number_format($getClickyOrder->getGrandTotal(), 2, '.', '');
|
37 |
}
|
38 |
|
39 |
/* Build the Code */
|
@@ -41,18 +34,14 @@ $js = "";
|
|
41 |
$js .= "<script type=\"text/javascript\">\n";
|
42 |
$js .= "var clicky_custom = clicky_custom || {};\n";
|
43 |
$js .= "clicky_custom.goal = {\n";
|
44 |
-
if ($getClickyGoalType == 'dynamic')
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
{
|
50 |
-
|
51 |
-
|
52 |
-
if ($getClickyGoalRevenue AND $getClickyGrandTotal)
|
53 |
-
{
|
54 |
-
$js .= ",\n";
|
55 |
-
$js .= "revenue: \"" . $getClickyGrandTotal . "\"";
|
56 |
}
|
57 |
$js .= "\n";
|
58 |
$js .= "};\n";
|
3 |
/**
|
4 |
* @package Optimiseweb_Getclicky
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
$getClickyGoalEnabled = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/enabled');
|
10 |
$getClickyGoalType = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_type');
|
11 |
+
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_name')) {
|
12 |
+
$getClickyGoalName = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_name');
|
13 |
+
} else {
|
14 |
+
$getClickyGoalName = 'Onepage Checkout Success';
|
15 |
}
|
16 |
+
if (Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_id')) {
|
17 |
+
$getClickyGoalId = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_id');
|
18 |
+
} else {
|
19 |
+
$getClickyGoalType = 'dynamic';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
|
22 |
$getClickyGoalRevenue = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_revenue');
|
24 |
$getClickyGrandTotal = FALSE;
|
25 |
|
26 |
/* Get Order Grand Total */
|
27 |
+
if ($getClickyGoalRevenue) {
|
28 |
+
$getClickyOrder = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
|
29 |
+
$getClickyGrandTotal = number_format($getClickyOrder->getGrandTotal(), 2, '.', '');
|
|
|
30 |
}
|
31 |
|
32 |
/* Build the Code */
|
34 |
$js .= "<script type=\"text/javascript\">\n";
|
35 |
$js .= "var clicky_custom = clicky_custom || {};\n";
|
36 |
$js .= "clicky_custom.goal = {\n";
|
37 |
+
if ($getClickyGoalType == 'dynamic') {
|
38 |
+
$js .= "name: \"" . $getClickyGoalName . "\"";
|
39 |
+
} else {
|
40 |
+
$js .= "id: \"" . $getClickyGoalId . "\"";
|
41 |
+
}
|
42 |
+
if ($getClickyGoalRevenue AND $getClickyGrandTotal) {
|
43 |
+
$js .= ",\n";
|
44 |
+
$js .= "revenue: \"" . $getClickyGrandTotal . "\"";
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
$js .= "\n";
|
47 |
$js .= "};\n";
|
app/design/frontend/base/default/template/optimiseweb/getclicky/tracker.phtml
CHANGED
@@ -2,55 +2,57 @@
|
|
2 |
/**
|
3 |
* @package Optimiseweb_Getclicky
|
4 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
5 |
-
* @copyright Copyright (c)
|
6 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
*/
|
8 |
$clicky = Mage::helper('getclicky')->getClickyData();
|
9 |
|
10 |
-
|
11 |
-
switch ($clicky->TrackerType)
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
56 |
}
|
2 |
/**
|
3 |
* @package Optimiseweb_Getclicky
|
4 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
5 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
6 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
*/
|
8 |
$clicky = Mage::helper('getclicky')->getClickyData();
|
9 |
|
10 |
+
/* Tracker types */
|
11 |
+
switch ($clicky->TrackerType) {
|
12 |
+
case 1:
|
13 |
+
/* Default Tracker */
|
14 |
+
?>
|
15 |
+
<!-- GetClicky - Default -->
|
16 |
+
<?php if ($clicky->AffiliateDisplay): ?>
|
17 |
+
<a title="<?php echo $clicky->AffiliateTitle; ?>" href="<?php echo $clicky->AffiliateLink; ?>"><img alt="<?php echo $clicky->AffiliateTitle; ?>" src="<?php echo $clicky->AffiliateBadge; ?>" border="0" /></a>
|
18 |
+
<?php endif; ?>
|
19 |
+
<script src="//static.getclicky.com/js" type="text/javascript"></script>
|
20 |
+
<script type="text/javascript">try {
|
21 |
+
clicky.init(<?php echo $clicky->SiteId; ?>);
|
22 |
+
} catch (e) {
|
23 |
+
}</script>
|
24 |
+
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/<?php echo $clicky->SiteId; ?>ns.gif" /></p></noscript>
|
25 |
+
<?php
|
26 |
+
break;
|
27 |
+
/* Asynchronous Tracker */
|
28 |
+
case 2:
|
29 |
+
?>
|
30 |
+
<!-- GetClicky - Asynchronous -->
|
31 |
+
<?php if ($clicky->AffiliateDisplay): ?>
|
32 |
+
<a title="<?php echo $clicky->AffiliateTitle; ?>" href="<?php echo $clicky->AffiliateLink; ?>"><img alt="<?php echo $clicky->AffiliateTitle; ?>" src="<?php echo $clicky->AffiliateBadge; ?>" border="0" /></a>
|
33 |
+
<?php endif; ?>
|
34 |
+
<script type="text/javascript">
|
35 |
+
var clicky_site_ids = clicky_site_ids || [];
|
36 |
+
clicky_site_ids.push(<?php echo $clicky->SiteId; ?>);
|
37 |
+
(function() {
|
38 |
+
var s = document.createElement('script');
|
39 |
+
s.type = 'text/javascript';
|
40 |
+
s.async = true;
|
41 |
+
s.src = '//static.getclicky.com/js';
|
42 |
+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(s);
|
43 |
+
})();
|
44 |
+
</script>
|
45 |
+
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/<?php echo $clicky->SiteId; ?>ns.gif" /></p></noscript>
|
46 |
+
<?php
|
47 |
+
break;
|
48 |
+
/* Non-Javascript Tracker */
|
49 |
+
case 3:
|
50 |
+
?>
|
51 |
+
<!-- GetClicky - Non-Javascript -->
|
52 |
+
<?php if ($clicky->AffiliateDisplay): ?>
|
53 |
+
<a title="<?php echo $clicky->AffiliateTitle; ?>" href="<?php echo $clicky->AffiliateLink; ?>"><img alt="<?php echo $clicky->AffiliateTitle; ?>" src="<?php echo $clicky->AffiliateBadge; ?>" border="0" /></a>
|
54 |
+
<?php endif; ?>
|
55 |
+
<img alt="Clicky" width="1" height="1" src="//in.getclicky.com/<?php echo $clicky->SiteId; ?>ns.gif" />
|
56 |
+
<?php
|
57 |
+
break;
|
58 |
}
|
app/etc/modules/Optimiseweb_Getclicky.xml
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
<config>
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
</config>
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* @package Optimiseweb_Getclicky
|
5 |
+
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2013 Optimise Web Limited
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
<config>
|
11 |
+
<modules>
|
12 |
+
<Optimiseweb_Getclicky>
|
13 |
+
<active>true</active>
|
14 |
+
<codePool>community</codePool>
|
15 |
+
</Optimiseweb_Getclicky>
|
16 |
+
</modules>
|
17 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Optimiseweb_Getclicky</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -10,12 +10,11 @@
|
|
10 |
<description>GetClicky is a real time web analytics service. This extension is a GetClicky integration for the Magento eCommerce platform. Optimise Web's GetClicky integration extension allows store owners to enable GetClicky tracking for their websites. This extension can send checkout successes and revenues as dynamic goals to GetClicky.
|
11 |

|
12 |
This extension comes with a complete configuration screen where all options can be configured.</description>
|
13 |
-
<notes>*
|
14 |
-
* Working with GetClicky - added ability to switch between dynamic and ID based goals</notes>
|
15 |
<authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
|
16 |
-
<date>
|
17 |
-
<time>
|
18 |
-
<contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="Getclicky"><dir name="Helper"><file name="Data.php" hash="
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Optimiseweb_Getclicky</name>
|
4 |
+
<version>0.1.8</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
10 |
<description>GetClicky is a real time web analytics service. This extension is a GetClicky integration for the Magento eCommerce platform. Optimise Web's GetClicky integration extension allows store owners to enable GetClicky tracking for their websites. This extension can send checkout successes and revenues as dynamic goals to GetClicky.
|
11 |

|
12 |
This extension comes with a complete configuration screen where all options can be configured.</description>
|
13 |
+
<notes>* Code tidy and formatting</notes>
|
|
|
14 |
<authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
|
15 |
+
<date>2013-05-11</date>
|
16 |
+
<time>12:54:03</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="Getclicky"><dir name="Helper"><file name="Data.php" hash="9ce985eedaae64922fa5d3c8a139a275"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Goaltypes.php" hash="03a6bd916bf5e002bf38449872e131ac"/><file name="Trackertypes.php" hash="3956e621262d8e3e5f0558545b2ac1c7"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3c4690e86f2fa1c9dd36b5d10ffadfb4"/><file name="config.xml" hash="cbdd0042287b1cb0baca375b0c39d0c2"/><file name="system.xml" hash="173614573fc207ea7636184cf5f44e55"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_Getclicky.xml" hash="65e3cf1dd19ca9c4127acc764f25e887"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="optimiseweb_getclicky.xml" hash="a2321e9e66fbb8d835c0fe7164a8b25a"/></dir><dir name="template"><dir name="optimiseweb"><dir name="getclicky"><dir name="goals"><file name="cart-page.phtml" hash="accc867890fe3d154cfb6da6733be453"/><file name="checkout-onepage-entry.phtml" hash="f2b3f1d99c6f59d5aa8e549cd3adbbff"/><file name="checkout-onepage-success.phtml" hash="445302ce8798c93d89d9733630960c6d"/></dir><file name="tracker.phtml" hash="e34f1a74c6e49be6771cd5bfce12f80f"/></dir></dir></dir></dir></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|