Version Notes
* Added Checkout Entry Goal
* Working with GetClicky - added ability to switch between dynamic and ID based goals
Download this release
Release Info
Developer | Kathir Vel |
Extension | Optimiseweb_Getclicky |
Version | 0.1.7 |
Comparing to | |
See all releases |
Code changes from version 0.1.6 to 0.1.7
- app/code/community/Optimiseweb/Getclicky/Model/System/Config/Source/Goaltypes.php +34 -0
- app/code/community/Optimiseweb/Getclicky/etc/config.xml +14 -4
- app/code/community/Optimiseweb/Getclicky/etc/system.xml +91 -8
- app/design/frontend/base/default/layout/optimiseweb_getclicky.xml +11 -0
- app/design/frontend/base/default/template/optimiseweb/getclicky/goals/cart-page.phtml +25 -3
- app/design/frontend/base/default/template/optimiseweb/getclicky/goals/checkout-onepage-entry.phtml +43 -0
- app/design/frontend/base/default/template/optimiseweb/getclicky/goals/checkout-onepage-success.phtml +27 -5
- package.xml +5 -5
app/code/community/Optimiseweb/Getclicky/Model/System/Config/Source/Goaltypes.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Optimiseweb Getclicky Model Config Goaltypes
|
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_Goaltypes
|
12 |
+
{
|
13 |
+
|
14 |
+
protected $_options;
|
15 |
+
|
16 |
+
public function toOptionArray()
|
17 |
+
{
|
18 |
+
if (!$this->_options)
|
19 |
+
{
|
20 |
+
$this->_options = array(
|
21 |
+
array(
|
22 |
+
'value' => 'dynamic',
|
23 |
+
'label' => 'Dynamic Goal'
|
24 |
+
),
|
25 |
+
array(
|
26 |
+
'value' => 'preconfigured_id',
|
27 |
+
'label' => 'Preconfigured Goal (ID Based)'
|
28 |
+
),
|
29 |
+
);
|
30 |
+
}
|
31 |
+
return $this->_options;
|
32 |
+
}
|
33 |
+
|
34 |
+
}
|
app/code/community/Optimiseweb/Getclicky/etc/config.xml
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
|
12 |
<modules>
|
13 |
<Optimiseweb_Getclicky>
|
14 |
-
<version>0.1.
|
15 |
</Optimiseweb_Getclicky>
|
16 |
</modules>
|
17 |
|
@@ -73,12 +73,22 @@
|
|
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 |
-
<
|
80 |
-
<
|
|
|
81 |
</goal_checkout_onepage_success>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
</optimisewebgetclickyconfig>
|
83 |
</default>
|
84 |
|
11 |
|
12 |
<modules>
|
13 |
<Optimiseweb_Getclicky>
|
14 |
+
<version>0.1.7</version>
|
15 |
</Optimiseweb_Getclicky>
|
16 |
</modules>
|
17 |
|
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 |
|
app/code/community/Optimiseweb/Getclicky/etc/system.xml
CHANGED
@@ -145,21 +145,39 @@
|
|
145 |
<show_in_website>1</show_in_website>
|
146 |
<show_in_store>1</show_in_store>
|
147 |
</enabled>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
<goal_id translate="label comment">
|
149 |
<label>Goal ID</label>
|
150 |
-
<comment>The goal management page in GetClicky lists the ID for each goal next to the goal's name.</comment>
|
151 |
<frontend_type>text</frontend_type>
|
152 |
-
<
|
153 |
-
<sort_order>2</sort_order>
|
154 |
<show_in_default>1</show_in_default>
|
155 |
<show_in_website>1</show_in_website>
|
156 |
<show_in_store>1</show_in_store>
|
157 |
</goal_id>
|
158 |
<goal_revenue translate="label comment">
|
159 |
-
<label>Add
|
|
|
160 |
<frontend_type>select</frontend_type>
|
161 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
162 |
-
<sort_order>
|
163 |
<show_in_default>1</show_in_default>
|
164 |
<show_in_website>1</show_in_website>
|
165 |
<show_in_store>1</show_in_store>
|
@@ -167,11 +185,59 @@
|
|
167 |
</fields>
|
168 |
</goal_checkout_onepage_success>
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
<goal_cart_page translate="label comment">
|
171 |
<label>Goal - Cart Page</label>
|
172 |
<comment>Tracks every landing on the /checkout/cart/ page.</comment>
|
173 |
<frontend_type>text</frontend_type>
|
174 |
-
<sort_order>
|
175 |
<show_in_default>1</show_in_default>
|
176 |
<show_in_website>1</show_in_website>
|
177 |
<show_in_store>1</show_in_store>
|
@@ -185,12 +251,29 @@
|
|
185 |
<show_in_website>1</show_in_website>
|
186 |
<show_in_store>1</show_in_store>
|
187 |
</enabled>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
<goal_id translate="label comment">
|
189 |
<label>Goal ID</label>
|
190 |
<comment>The goal management page in GetClicky lists the ID for each goal next to the goal's name.</comment>
|
191 |
<frontend_type>text</frontend_type>
|
192 |
-
<
|
193 |
-
<sort_order>2</sort_order>
|
194 |
<show_in_default>1</show_in_default>
|
195 |
<show_in_website>1</show_in_website>
|
196 |
<show_in_store>1</show_in_store>
|
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>
|
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>
|
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>
|
app/design/frontend/base/default/layout/optimiseweb_getclicky.xml
CHANGED
@@ -31,6 +31,17 @@
|
|
31 |
</reference>
|
32 |
</checkout_onepage_success>
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
<!-- Cart Page -->
|
35 |
<checkout_cart_index>
|
36 |
<reference name="before_body_end">
|
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">
|
app/design/frontend/base/default/template/optimiseweb/getclicky/goals/cart-page.phtml
CHANGED
@@ -7,14 +7,36 @@
|
|
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 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
/* Build the Code */
|
13 |
$js = "";
|
14 |
$js .= "<script type=\"text/javascript\">\n";
|
15 |
$js .= "var clicky_custom = clicky_custom || {};\n";
|
16 |
$js .= "clicky_custom.goal = {\n";
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
$js .= "};\n";
|
19 |
$js .= "</script>\n";
|
20 |
|
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 |
+
$getClickyGoalName = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_cart_page/goal_name');
|
14 |
+
}
|
15 |
+
else
|
16 |
+
{
|
17 |
+
$getClickyGoalName = 'Cart Page';
|
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 |
+
$js .= "name: \"" . $getClickyGoalName . "\"\n";
|
35 |
+
}
|
36 |
+
else
|
37 |
+
{
|
38 |
+
$js .= "id: \"" . $getClickyGoalId . "\"\n";
|
39 |
+
}
|
40 |
$js .= "};\n";
|
41 |
$js .= "</script>\n";
|
42 |
|
app/design/frontend/base/default/template/optimiseweb/getclicky/goals/checkout-onepage-entry.phtml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_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 |
+
$getClickyGoalName = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_entry/goal_name');
|
14 |
+
}
|
15 |
+
else
|
16 |
+
{
|
17 |
+
$getClickyGoalName = 'Onepage Checkout Entry';
|
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 |
+
$js .= "name: \"" . $getClickyGoalName . "\"\n";
|
35 |
+
}
|
36 |
+
else
|
37 |
+
{
|
38 |
+
$js .= "id: \"" . $getClickyGoalId . "\"\n";
|
39 |
+
}
|
40 |
+
$js .= "};\n";
|
41 |
+
$js .= "</script>\n";
|
42 |
+
|
43 |
+
echo $js;
|
app/design/frontend/base/default/template/optimiseweb/getclicky/goals/checkout-onepage-success.phtml
CHANGED
@@ -7,7 +7,24 @@
|
|
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 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
$getClickyGoalRevenue = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_revenue');
|
12 |
|
13 |
$getClickyGrandTotal = FALSE;
|
@@ -24,15 +41,20 @@ $js = "";
|
|
24 |
$js .= "<script type=\"text/javascript\">\n";
|
25 |
$js .= "var clicky_custom = clicky_custom || {};\n";
|
26 |
$js .= "clicky_custom.goal = {\n";
|
27 |
-
if ($
|
28 |
{
|
29 |
-
$js .= "
|
30 |
-
$js .= "revenue: \"" . $getClickyGrandTotal . "\"\n";
|
31 |
}
|
32 |
else
|
33 |
{
|
34 |
-
$js .= "id: \"" . $getClickyGoalId . "\"
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
|
|
36 |
$js .= "};\n";
|
37 |
$js .= "</script>\n";
|
38 |
|
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 |
+
$getClickyGoalName = Mage::getStoreConfig('optimisewebgetclickyconfig/goal_checkout_onepage_success/goal_name');
|
14 |
+
}
|
15 |
+
else
|
16 |
+
{
|
17 |
+
$getClickyGoalName = 'Onepage Checkout Success';
|
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');
|
29 |
|
30 |
$getClickyGrandTotal = FALSE;
|
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 |
+
$js .= "name: \"" . $getClickyGoalName . "\"";
|
|
|
47 |
}
|
48 |
else
|
49 |
{
|
50 |
+
$js .= "id: \"" . $getClickyGoalId . "\"";
|
51 |
+
}
|
52 |
+
if ($getClickyGoalRevenue AND $getClickyGrandTotal)
|
53 |
+
{
|
54 |
+
$js .= ",\n";
|
55 |
+
$js .= "revenue: \"" . $getClickyGrandTotal . "\"";
|
56 |
}
|
57 |
+
$js .= "\n";
|
58 |
$js .= "};\n";
|
59 |
$js .= "</script>\n";
|
60 |
|
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,12 @@
|
|
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>* Added
|
14 |
-
*
|
15 |
<authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
|
16 |
<date>2012-10-16</date>
|
17 |
-
<time>
|
18 |
-
<contents><target name="magecommunity"><dir name="Optimiseweb"><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="70ba2544fa4b175ac9421645c3d80066"/><file name="config.xml" 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.7</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>* Added Checkout Entry Goal
|
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>2012-10-16</date>
|
17 |
+
<time>23:24:46</time>
|
18 |
+
<contents><target name="magecommunity"><dir name="Optimiseweb"><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="Goaltypes.php" hash="25fda711c6fe6e671b92206610cea2ad"/><file name="Trackertypes.php" hash="f7d8f1aba638867d8525f6f5a6f7f21a"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="70ba2544fa4b175ac9421645c3d80066"/><file name="config.xml" hash="c18bafd34cceb71c885e28339a40ec8f"/><file name="system.xml" hash="fdd02fdae7813999996e270bcfde8ca4"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_Getclicky.xml" hash="992d5e0b030267e568d63769e70c68f7"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="optimiseweb_getclicky.xml" hash="e5347f46422c1b57572ad3f44cca6b69"/></dir><dir name="template"><dir name="optimiseweb"><dir name="getclicky"><dir name="goals"><file name="cart-page.phtml" hash="3d0be6151e4eece72e2dc7e82125d366"/><file name="checkout-onepage-entry.phtml" hash="1cdffe05bb189abe400e1d75b56b11cd"/><file name="checkout-onepage-success.phtml" hash="b8d079b47018ff8cc5ae6dee12f7e3ee"/></dir><file name="tracker.phtml" hash="60416d94ac711841873fdae739076f1c"/></dir></dir></dir></dir></dir></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|