Version Notes
This is a stable release. This module has been used for our clients who have GetClicky tracking. We have tested it fully and now releasing it for the community.
Download this release
Release Info
Developer | Kathir Vel |
Extension | Optimiseweb_Getclicky |
Version | 0.1.1 |
Comparing to | |
See all releases |
Version 0.1.1
- app/code/community/Optimiseweb/All/Helper/Data.php +14 -0
- app/code/community/Optimiseweb/All/etc/adminhtml.xml +29 -0
- app/code/community/Optimiseweb/All/etc/config.xml +55 -0
- app/code/community/Optimiseweb/All/etc/system.xml +9 -0
- app/code/community/Optimiseweb/Getclicky/Helper/Data.php +49 -0
- app/code/community/Optimiseweb/Getclicky/Model/System/Config/Source/Trackertypes.php +38 -0
- app/code/community/Optimiseweb/Getclicky/etc/adminhtml.xml +39 -0
- app/code/community/Optimiseweb/Getclicky/etc/config.xml +86 -0
- app/code/community/Optimiseweb/Getclicky/etc/system.xml +158 -0
- app/design/frontend/base/default/layout/optimiseweb_getclicky.xml +26 -0
- app/design/frontend/base/default/template/optimiseweb/getclicky/goals/checkout-onepage-success.phtml +39 -0
- app/design/frontend/base/default/template/optimiseweb/getclicky/tracker.phtml +56 -0
- app/etc/modules/Optimiseweb_All.xml +9 -0
- app/etc/modules/Optimiseweb_Getclicky.xml +9 -0
- package.xml +20 -0
app/code/community/Optimiseweb/All/Helper/Data.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Optimiseweb All Data Helper
|
5 |
+
*
|
6 |
+
* @package Optimiseweb_All
|
7 |
+
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2012 Optimiseweb Ltd
|
9 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
+
*/
|
11 |
+
class Optimiseweb_All_Helper_Data extends Mage_Core_Helper_Abstract
|
12 |
+
{
|
13 |
+
|
14 |
+
}
|
app/code/community/Optimiseweb/All/etc/adminhtml.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<all>
|
6 |
+
<title>Allow Everything</title>
|
7 |
+
</all>
|
8 |
+
<admin>
|
9 |
+
<children>
|
10 |
+
<optimiseweball>
|
11 |
+
<title>Optimise Web - Menu Group</title>
|
12 |
+
<sort_order>10</sort_order>
|
13 |
+
</optimiseweball>
|
14 |
+
<system>
|
15 |
+
<children>
|
16 |
+
<config>
|
17 |
+
<children>
|
18 |
+
<optimisewebconfig>
|
19 |
+
<title>Optimise Web - System Configuration Group</title>
|
20 |
+
</optimisewebconfig>
|
21 |
+
</children>
|
22 |
+
</config>
|
23 |
+
</children>
|
24 |
+
</system>
|
25 |
+
</children>
|
26 |
+
</admin>
|
27 |
+
</resources>
|
28 |
+
</acl>
|
29 |
+
</config>
|
app/code/community/Optimiseweb/All/etc/config.xml
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
|
4 |
+
<modules>
|
5 |
+
<Optimiseweb_All>
|
6 |
+
<version>0.1.0</version>
|
7 |
+
</Optimiseweb_All>
|
8 |
+
</modules>
|
9 |
+
|
10 |
+
<frontend>
|
11 |
+
|
12 |
+
<translate>
|
13 |
+
<modules>
|
14 |
+
<Optimiseweb_All>
|
15 |
+
<files>
|
16 |
+
<default>Optimiseweb_All.csv</default>
|
17 |
+
</files>
|
18 |
+
</Optimiseweb_All>
|
19 |
+
</modules>
|
20 |
+
</translate>
|
21 |
+
|
22 |
+
</frontend>
|
23 |
+
|
24 |
+
<global>
|
25 |
+
|
26 |
+
<blocks>
|
27 |
+
<optimiseweball>
|
28 |
+
<class>Optimiseweb_All_Block</class>
|
29 |
+
</optimiseweball>
|
30 |
+
</blocks>
|
31 |
+
|
32 |
+
<helpers>
|
33 |
+
<optimiseweball>
|
34 |
+
<class>Optimiseweb_All_Helper</class>
|
35 |
+
</optimiseweball>
|
36 |
+
</helpers>
|
37 |
+
|
38 |
+
<models>
|
39 |
+
<optimiseweball>
|
40 |
+
<class>Optimiseweb_All_Model</class>
|
41 |
+
</optimiseweball>
|
42 |
+
</models>
|
43 |
+
|
44 |
+
</global>
|
45 |
+
|
46 |
+
<adminhtml>
|
47 |
+
<menu>
|
48 |
+
<optimiseweball>
|
49 |
+
<title>Optimise Web</title>
|
50 |
+
<sort_order>71</sort_order>
|
51 |
+
</optimiseweball>
|
52 |
+
</menu>
|
53 |
+
</adminhtml>
|
54 |
+
|
55 |
+
</config>
|
app/code/community/Optimiseweb/All/etc/system.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<optimisewebconfig translate="label comment">
|
5 |
+
<label>Optimise Web</label>
|
6 |
+
<sort_order>0</sort_order>
|
7 |
+
</optimisewebconfig>
|
8 |
+
</tabs>
|
9 |
+
</config>
|
app/code/community/Optimiseweb/Getclicky/Helper/Data.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Optimiseweb Getclicky Data Helper
|
5 |
+
*
|
6 |
+
* @package Optimiseweb_Getclicky
|
7 |
+
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2012 Optimiseweb Ltd
|
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 |
+
if (Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/enabled') == 1)
|
22 |
+
{
|
23 |
+
return TRUE;
|
24 |
+
}
|
25 |
+
else
|
26 |
+
{
|
27 |
+
return FALSE;
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Returns all system configuration data for Optimiseweb Getclicky
|
33 |
+
*
|
34 |
+
* @return object $data
|
35 |
+
*/
|
36 |
+
public function getClickyData()
|
37 |
+
{
|
38 |
+
$data = new stdClass();
|
39 |
+
$data->SiteId = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/site_id');
|
40 |
+
$data->TrackerType = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/tracker_type');
|
41 |
+
$data->AffiliateDisplay = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/affiliate_display');
|
42 |
+
$data->AffiliateTitle = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/affiliate_title');
|
43 |
+
$data->AffiliateLink = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/affiliate_link');
|
44 |
+
$data->AffiliateBadge = Mage::getStoreConfig('optimisewebgetclickyconfig/getclickygeneral/affiliate_badge');
|
45 |
+
|
46 |
+
return $data;
|
47 |
+
}
|
48 |
+
|
49 |
+
}
|
app/code/community/Optimiseweb/Getclicky/Model/System/Config/Source/Trackertypes.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Optimiseweb Getclicky Model Config Trackertypes
|
5 |
+
*
|
6 |
+
* @package Optimiseweb_Getclicky
|
7 |
+
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2012 Optimiseweb Ltd
|
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 |
+
{
|
20 |
+
$this->_options = array(
|
21 |
+
array(
|
22 |
+
'value' => 1,
|
23 |
+
'label' => 'Default'
|
24 |
+
),
|
25 |
+
array(
|
26 |
+
'value' => 2,
|
27 |
+
'label' => 'Asynchronous'
|
28 |
+
),
|
29 |
+
array(
|
30 |
+
'value' => 3,
|
31 |
+
'label' => 'Non-Javascript'
|
32 |
+
)
|
33 |
+
);
|
34 |
+
}
|
35 |
+
return $this->_options;
|
36 |
+
}
|
37 |
+
|
38 |
+
}
|
app/code/community/Optimiseweb/Getclicky/etc/adminhtml.xml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<all>
|
6 |
+
<title>Allow Everything</title>
|
7 |
+
</all>
|
8 |
+
<admin>
|
9 |
+
<children>
|
10 |
+
<optimiseweball>
|
11 |
+
<children>
|
12 |
+
<getclicky translate="title" module="getclicky">
|
13 |
+
<title>Optimise Web - GetClicky Integration</title>
|
14 |
+
<sort_order>10</sort_order>
|
15 |
+
<children>
|
16 |
+
<settings translate="title" module="getclicky">
|
17 |
+
<title>Optimise Web - GetClicky Settings</title>
|
18 |
+
<sort_order>10</sort_order>
|
19 |
+
</settings>
|
20 |
+
</children>
|
21 |
+
</getclicky>
|
22 |
+
</children>
|
23 |
+
</optimiseweball>
|
24 |
+
<system>
|
25 |
+
<children>
|
26 |
+
<config>
|
27 |
+
<children>
|
28 |
+
<optimisewebgetclickyconfig translate="title" module="getclicky">
|
29 |
+
<title>Optimise Web - GetClicky Integration</title>
|
30 |
+
</optimisewebgetclickyconfig>
|
31 |
+
</children>
|
32 |
+
</config>
|
33 |
+
</children>
|
34 |
+
</system>
|
35 |
+
</children>
|
36 |
+
</admin>
|
37 |
+
</resources>
|
38 |
+
</acl>
|
39 |
+
</config>
|
app/code/community/Optimiseweb/Getclicky/etc/config.xml
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
|
4 |
+
<modules>
|
5 |
+
<Optimiseweb_Getclicky>
|
6 |
+
<version>0.1.1</version>
|
7 |
+
</Optimiseweb_Getclicky>
|
8 |
+
</modules>
|
9 |
+
|
10 |
+
<frontend>
|
11 |
+
|
12 |
+
<layout>
|
13 |
+
<updates>
|
14 |
+
<getclicky>
|
15 |
+
<file>optimiseweb_getclicky.xml</file>
|
16 |
+
</getclicky>
|
17 |
+
</updates>
|
18 |
+
</layout>
|
19 |
+
|
20 |
+
</frontend>
|
21 |
+
|
22 |
+
<adminhtml>
|
23 |
+
|
24 |
+
<menu>
|
25 |
+
<optimiseweball>
|
26 |
+
<children>
|
27 |
+
<getclicky module="getclicky">
|
28 |
+
<title>GetClicky Integration</title>
|
29 |
+
<sort_order>5</sort_order>
|
30 |
+
<children>
|
31 |
+
<settings>
|
32 |
+
<title>Settings</title>
|
33 |
+
<action>adminhtml/system_config/edit/section/optimisewebgetclickyconfig</action>
|
34 |
+
</settings>
|
35 |
+
</children>
|
36 |
+
</getclicky>
|
37 |
+
</children>
|
38 |
+
</optimiseweball>
|
39 |
+
</menu>
|
40 |
+
|
41 |
+
</adminhtml>
|
42 |
+
|
43 |
+
<global>
|
44 |
+
|
45 |
+
<blocks>
|
46 |
+
<getclicky>
|
47 |
+
<class>Optimiseweb_Getclicky_Block</class>
|
48 |
+
</getclicky>
|
49 |
+
</blocks>
|
50 |
+
|
51 |
+
<helpers>
|
52 |
+
<getclicky>
|
53 |
+
<class>Optimiseweb_Getclicky_Helper</class>
|
54 |
+
</getclicky>
|
55 |
+
</helpers>
|
56 |
+
|
57 |
+
<models>
|
58 |
+
<getclicky>
|
59 |
+
<class>Optimiseweb_Getclicky_Model</class>
|
60 |
+
</getclicky>
|
61 |
+
</models>
|
62 |
+
|
63 |
+
</global>
|
64 |
+
|
65 |
+
<default>
|
66 |
+
|
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 |
+
|
77 |
+
<goal_checkout_onepage_success>
|
78 |
+
<enabled>0</enabled>
|
79 |
+
<goal_name>Checkout Success</goal_name>
|
80 |
+
<goal_revenue>0</goal_revenue>
|
81 |
+
</goal_checkout_onepage_success>
|
82 |
+
</optimisewebgetclickyconfig>
|
83 |
+
|
84 |
+
</default>
|
85 |
+
|
86 |
+
</config>
|
app/code/community/Optimiseweb/Getclicky/etc/system.xml
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
|
5 |
+
<optimisewebgetclickyconfig translate="label comment" module="getclicky">
|
6 |
+
<label>GetClicky Integration</label>
|
7 |
+
<tab>optimisewebconfig</tab>
|
8 |
+
<frontend_type>text</frontend_type>
|
9 |
+
<sort_order>99999</sort_order>
|
10 |
+
<show_in_default>1</show_in_default>
|
11 |
+
<show_in_website>1</show_in_website>
|
12 |
+
<show_in_store>1</show_in_store>
|
13 |
+
|
14 |
+
<groups>
|
15 |
+
|
16 |
+
<getclickyabout translate="label comment">
|
17 |
+
<label>About - GetClicky Integration by Optimise Web</label>
|
18 |
+
<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>]]>
|
19 |
+
</comment>
|
20 |
+
<sort_order>1</sort_order>
|
21 |
+
<show_in_default>1</show_in_default>
|
22 |
+
<show_in_website>1</show_in_website>
|
23 |
+
<show_in_store>1</show_in_store>
|
24 |
+
<fields>
|
25 |
+
<ignored>
|
26 |
+
<label></label>
|
27 |
+
<comment><![CDATA[<div id="J5BhDU3P26384w8v"></div><script type="text/javascript">$('J5BhDU3P26384w8v').up('tr').remove();</script>]]>
|
28 |
+
</comment>
|
29 |
+
<frontend_type>text</frontend_type>
|
30 |
+
<sort_order>1</sort_order>
|
31 |
+
<show_in_default>1</show_in_default>
|
32 |
+
<show_in_website>1</show_in_website>
|
33 |
+
<show_in_store>1</show_in_store>
|
34 |
+
</ignored>
|
35 |
+
</fields>
|
36 |
+
</getclickyabout>
|
37 |
+
|
38 |
+
<getclickygeneral translate="label comment">
|
39 |
+
<label>General Settings</label>
|
40 |
+
<frontend_type>text</frontend_type>
|
41 |
+
<sort_order>2</sort_order>
|
42 |
+
<show_in_default>1</show_in_default>
|
43 |
+
<show_in_website>1</show_in_website>
|
44 |
+
<show_in_store>1</show_in_store>
|
45 |
+
<fields>
|
46 |
+
<enabled translate="label comment">
|
47 |
+
<label>Enable?</label>
|
48 |
+
<frontend_type>select</frontend_type>
|
49 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
50 |
+
<sort_order>1</sort_order>
|
51 |
+
<show_in_default>1</show_in_default>
|
52 |
+
<show_in_website>1</show_in_website>
|
53 |
+
<show_in_store>1</show_in_store>
|
54 |
+
</enabled>
|
55 |
+
<site_id translate="label comment">
|
56 |
+
<label>Site ID</label>
|
57 |
+
<comment>This can be found by visiting the Preferences >> Info section of the website account from your GetClicky dashboard.</comment>
|
58 |
+
<frontend_type>text</frontend_type>
|
59 |
+
<sort_order>2</sort_order>
|
60 |
+
<show_in_default>1</show_in_default>
|
61 |
+
<show_in_website>1</show_in_website>
|
62 |
+
<show_in_store>1</show_in_store>
|
63 |
+
</site_id>
|
64 |
+
<tracker_type translate="label comment">
|
65 |
+
<label>Type of tracker to use</label>
|
66 |
+
<comment>Use 'Default' unless you know what the other options mean.</comment>
|
67 |
+
<frontend_type>select</frontend_type>
|
68 |
+
<sort_order>3</sort_order>
|
69 |
+
<source_model>getclicky/system_config_source_trackertypes</source_model>
|
70 |
+
<show_in_default>1</show_in_default>
|
71 |
+
<show_in_website>1</show_in_website>
|
72 |
+
<show_in_store>1</show_in_store>
|
73 |
+
</tracker_type>
|
74 |
+
<affiliate_display translate="label comment">
|
75 |
+
<label>Affiliate - Show logo?</label>
|
76 |
+
<comment>Enables or disables the GetClicky image and affiliate link</comment>
|
77 |
+
<frontend_type>select</frontend_type>
|
78 |
+
<sort_order>4</sort_order>
|
79 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
80 |
+
<show_in_default>1</show_in_default>
|
81 |
+
<show_in_website>1</show_in_website>
|
82 |
+
<show_in_store>1</show_in_store>
|
83 |
+
</affiliate_display>
|
84 |
+
<affiliate_link translate="label comment">
|
85 |
+
<label>Affiliate Link</label>
|
86 |
+
<comment></comment>
|
87 |
+
<frontend_type>text</frontend_type>
|
88 |
+
<sort_order>5</sort_order>
|
89 |
+
<show_in_default>1</show_in_default>
|
90 |
+
<show_in_website>1</show_in_website>
|
91 |
+
<show_in_store>1</show_in_store>
|
92 |
+
</affiliate_link>
|
93 |
+
<affiliate_badge translate="label comment">
|
94 |
+
<label>Affiliate Badge Image</label>
|
95 |
+
<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>
|
96 |
+
<frontend_type>text</frontend_type>
|
97 |
+
<sort_order>6</sort_order>
|
98 |
+
<show_in_default>1</show_in_default>
|
99 |
+
<show_in_website>1</show_in_website>
|
100 |
+
<show_in_store>1</show_in_store>
|
101 |
+
</affiliate_badge>
|
102 |
+
<affiliate_title translate="label comment">
|
103 |
+
<label>Affiliate Link Title</label>
|
104 |
+
<comment>Used as the link 'title' and image 'alt'</comment>
|
105 |
+
<frontend_type>text</frontend_type>
|
106 |
+
<sort_order>7</sort_order>
|
107 |
+
<show_in_default>1</show_in_default>
|
108 |
+
<show_in_website>1</show_in_website>
|
109 |
+
<show_in_store>1</show_in_store>
|
110 |
+
</affiliate_title>
|
111 |
+
</fields>
|
112 |
+
</getclickygeneral>
|
113 |
+
|
114 |
+
<goal_checkout_onepage_success translate="label comment">
|
115 |
+
<label>Goal - Success Checkout Onepage</label>
|
116 |
+
<comment>Tracks every successful order that lands on the /checkout/onepage/success/ page.</comment>
|
117 |
+
<frontend_type>text</frontend_type>
|
118 |
+
<sort_order>3</sort_order>
|
119 |
+
<show_in_default>1</show_in_default>
|
120 |
+
<show_in_website>1</show_in_website>
|
121 |
+
<show_in_store>1</show_in_store>
|
122 |
+
<fields>
|
123 |
+
<enabled translate="label comment">
|
124 |
+
<label>Enable?</label>
|
125 |
+
<frontend_type>select</frontend_type>
|
126 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
127 |
+
<sort_order>1</sort_order>
|
128 |
+
<show_in_default>1</show_in_default>
|
129 |
+
<show_in_website>1</show_in_website>
|
130 |
+
<show_in_store>1</show_in_store>
|
131 |
+
</enabled>
|
132 |
+
<goal_name translate="label comment">
|
133 |
+
<label>Goal Name</label>
|
134 |
+
<frontend_type>text</frontend_type>
|
135 |
+
<validate>required-entry</validate>
|
136 |
+
<sort_order>2</sort_order>
|
137 |
+
<show_in_default>1</show_in_default>
|
138 |
+
<show_in_website>1</show_in_website>
|
139 |
+
<show_in_store>1</show_in_store>
|
140 |
+
</goal_name>
|
141 |
+
<goal_revenue translate="label comment">
|
142 |
+
<label>Add order 'Grand Toal' as goal revenue?</label>
|
143 |
+
<frontend_type>select</frontend_type>
|
144 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
145 |
+
<sort_order>3</sort_order>
|
146 |
+
<show_in_default>1</show_in_default>
|
147 |
+
<show_in_website>1</show_in_website>
|
148 |
+
<show_in_store>1</show_in_store>
|
149 |
+
</goal_revenue>
|
150 |
+
</fields>
|
151 |
+
</goal_checkout_onepage_success>
|
152 |
+
|
153 |
+
</groups>
|
154 |
+
|
155 |
+
</optimisewebgetclickyconfig>
|
156 |
+
|
157 |
+
</sections>
|
158 |
+
</config>
|
app/design/frontend/base/default/layout/optimiseweb_getclicky.xml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
|
4 |
+
<!-- Global Tracking Code -->
|
5 |
+
<default>
|
6 |
+
<reference name="before_body_end">
|
7 |
+
<block type="core/template" name="Optimiseweb.Getclicky.Tracker">
|
8 |
+
<action method="setTemplate" ifconfig="optimisewebgetclickyconfig/getclickygeneral/enabled">
|
9 |
+
<template>optimiseweb/getclicky/tracker.phtml</template>
|
10 |
+
</action>
|
11 |
+
</block>
|
12 |
+
</reference>
|
13 |
+
</default>
|
14 |
+
|
15 |
+
<!-- Onepage Checkout Success Page -->
|
16 |
+
<checkout_onepage_success>
|
17 |
+
<reference name="before_body_end">
|
18 |
+
<block type="core/template" name="Optimiseweb.Getclicky.Goals.Checkout.Onepage.Success" before="Optimiseweb.Getclicky.Tracker">
|
19 |
+
<action method="setTemplate" ifconfig="optimisewebgetclickyconfig/goal_checkout_onepage_success/enabled">
|
20 |
+
<template>optimiseweb/getclicky/goals/checkout-onepage-success.phtml</template>
|
21 |
+
</action>
|
22 |
+
</block>
|
23 |
+
</reference>
|
24 |
+
</checkout_onepage_success>
|
25 |
+
|
26 |
+
</layout>
|
app/design/frontend/base/default/template/optimiseweb/getclicky/goals/checkout-onepage-success.phtml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @package Optimiseweb_Getclicky
|
5 |
+
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2012 Optimiseweb Ltd
|
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 |
+
$getClickyGoalName = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_name');
|
11 |
+
$getClickyGoalRevenue = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_revenue');
|
12 |
+
|
13 |
+
/* Get Order Grand Total */
|
14 |
+
if ($getClickyGoalRevenue)
|
15 |
+
{
|
16 |
+
$getClickyOrder = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
|
17 |
+
$getClickyGrandTotal = number_format($getClickyOrder->getGrandTotal(), 2);
|
18 |
+
}
|
19 |
+
|
20 |
+
/* Build the Code */
|
21 |
+
$js = '<script>';
|
22 |
+
$js .= 'var clicky_custom = {};';
|
23 |
+
$js .= 'clicky_custom.goal = {';
|
24 |
+
if ($getClickyGrandTotal)
|
25 |
+
{
|
26 |
+
$js .= 'name: \'' . $getClickyGoalName . '\',';
|
27 |
+
$js .= 'revenue: \'' . $getClickyGrandTotal . '\'';
|
28 |
+
}
|
29 |
+
else
|
30 |
+
{
|
31 |
+
$js .= 'name: \'' . $getClickyGoalName . '\'';
|
32 |
+
}
|
33 |
+
$js .= '};';
|
34 |
+
$js .= '</script>';
|
35 |
+
echo $js;
|
36 |
+
|
37 |
+
/* $subTotal = $order->getSubtotal(); */
|
38 |
+
/* $order->getId(); */
|
39 |
+
/* $order->getIncrementId(); */
|
app/design/frontend/base/default/template/optimiseweb/getclicky/tracker.phtml
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Optimiseweb_Getclicky
|
4 |
+
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
5 |
+
* @copyright Copyright (c) 2012 Optimiseweb Ltd
|
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 |
+
{
|
13 |
+
case 1:
|
14 |
+
// Default Tracker
|
15 |
+
?>
|
16 |
+
<!-- GetClicky - Default -->
|
17 |
+
<?php if ($clicky->AffiliateDisplay): ?>
|
18 |
+
<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>
|
19 |
+
<?php endif; ?>
|
20 |
+
<script src="//static.getclicky.com/js" type="text/javascript"></script>
|
21 |
+
<script type="text/javascript">try{ clicky.init(<?php echo $clicky->SiteId; ?>); }catch(e){}</script>
|
22 |
+
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/<?php echo $clicky->SiteId; ?>ns.gif" /></p></noscript>
|
23 |
+
<?php
|
24 |
+
break;
|
25 |
+
// Asynchronous Tracker
|
26 |
+
case 2:
|
27 |
+
?>
|
28 |
+
<!-- GetClicky - Asynchronous -->
|
29 |
+
<?php if ($clicky->AffiliateDisplay): ?>
|
30 |
+
<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>
|
31 |
+
<?php endif; ?>
|
32 |
+
<script type="text/javascript">
|
33 |
+
var clicky_site_ids = clicky_site_ids || [];
|
34 |
+
clicky_site_ids.push(<?php echo $clicky->SiteId; ?>);
|
35 |
+
(function() {
|
36 |
+
var s = document.createElement('script');
|
37 |
+
s.type = 'text/javascript';
|
38 |
+
s.async = true;
|
39 |
+
s.src = '//static.getclicky.com/js';
|
40 |
+
( document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] ).appendChild( s );
|
41 |
+
})();
|
42 |
+
</script>
|
43 |
+
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/<?php echo $clicky->SiteId; ?>ns.gif" /></p></noscript>
|
44 |
+
<?php
|
45 |
+
break;
|
46 |
+
// Non-Javascript Tracker
|
47 |
+
case 3:
|
48 |
+
?>
|
49 |
+
<!-- GetClicky - Non-Javascript -->
|
50 |
+
<?php if ($clicky->AffiliateDisplay): ?>
|
51 |
+
<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>
|
52 |
+
<?php endif; ?>
|
53 |
+
<img alt="Clicky" width="1" height="1" src="//in.getclicky.com/<?php echo $clicky->SiteId; ?>ns.gif" />
|
54 |
+
<?php
|
55 |
+
break;
|
56 |
+
}
|
app/etc/modules/Optimiseweb_All.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Optimiseweb_All>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Optimiseweb_All>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/etc/modules/Optimiseweb_Getclicky.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Optimiseweb_Getclicky>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Optimiseweb_Getclicky>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Optimiseweb_Getclicky</name>
|
4 |
+
<version>0.1.1</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>
|
8 |
+
<extends/>
|
9 |
+
<summary>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.</summary>
|
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>This is a stable release. This module has been used for our clients who have GetClicky tracking. We have tested it fully and now releasing it for the community.</notes>
|
14 |
+
<authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>sid@optimiseweb.co.uk</email></author></authors>
|
15 |
+
<date>2012-10-10</date>
|
16 |
+
<time>13:55:36</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="All"><dir name="Helper"><file name="Data.php" hash="f313a1ea2cc6d5d8fb74987fe94be72f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7af37ec5af3c743fe5c969c6d72ef851"/><file name="config.xml" hash="a51e5f5b17e1d2a135620277f8a0059b"/><file name="system.xml" hash="7691682d549c83966619516d714493bb"/></dir></dir><dir name="Getclicky"><dir name="Helper"><file name="Data.php" hash="f9d9d294ad02c05b31d259bc8151ad26"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Trackertypes.php" hash="f7d8f1aba638867d8525f6f5a6f7f21a"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="9150d85a1e44ae0f42e200d0302b22b0"/><file name="config.xml" hash="203e7796a1ba88027449eb69ba20eec2"/><file name="system.xml" hash="25cfb12ec7f977e67685d5293d9bd1e5"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_All.xml" hash="f553c1dc235d920050cfe13d796c77aa"/><file name="Optimiseweb_Getclicky.xml" hash="72a085b4f02582a11b2490643b34439a"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="optimiseweb_getclicky.xml" hash="1e8fd6b42b3e6ea08928fde2e749d1f8"/></dir><dir name="template"><dir name="optimiseweb"><dir name="getclicky"><dir name="goals"><file name="checkout-onepage-success.phtml" hash="2775e82d101de25109d24e6f753161b2"/></dir><file name="tracker.phtml" hash="60416d94ac711841873fdae739076f1c"/></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>
|