Woopra_Analytics_Event_And_Visitor_Tracking - Version 1.0.1

Version Notes

Updated reserved properties customer_name, customer_email, customer_company to name, email, company.
Moved page view track to before custom event track.

Download this release

Release Info

Developer Woopra
Extension Woopra_Analytics_Event_And_Visitor_Tracking
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/design/frontend/base/default/template/woopra/script.phtml CHANGED
@@ -57,9 +57,9 @@ function woopraReady(tracker) {
57
  <?php if ($this->getSetting('visitor_timeout') != NULL) { ?> tracker.setIdleTimeout(<?php echo $this->getSetting('visitor_timeout') * 60 * 1000; ?>);<?php echo "\n"; ?>
58
  <?php } else { ?> tracker.setIdleTimeout(1800000);<?php echo "\n"; } ?>
59
  <?php if ($this->getSetting('subdomain') != NULL) { ?> tracker.option(<?php echo $this->getSetting('subdomain'); ?>);<?php echo "\n"; } ?>
60
- <?php if ($this->getSetting('customer_name') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerName(); ?>', '<?php echo $this->getSetting('customer_name'); ?>');<?php echo "\n"; } ?>
61
- <?php if ($this->getSetting('customer_email') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerEmail(); ?>', '<?php echo $this->getSetting('customer_email'); ?>');<?php echo "\n"; } ?>
62
- <?php if ($this->getSetting('customer_company') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerCompany(); ?>', '<?php echo $this->getSetting('customer_company'); ?>');<?php echo "\n"; } ?>
63
  <?php if ($this->getSetting('customer_location') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerLocation(); ?>', '<?php echo $this->getSetting('customer_location'); ?>');<?php echo "\n"; } ?>
64
  <?php if ($this->getSetting('customer_phone') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerPhone(); ?>', '<?php echo $this->getSetting('customer_phone'); ?>');<?php echo "\n"; } ?>
65
  <?php if ($this->getSetting('customer_group') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerGroup(); ?>', '<?php echo $this->getSetting('customer_group'); ?>');<?php echo "\n"; } ?>
@@ -70,6 +70,8 @@ function woopraReady(tracker) {
70
  <?php if ($this->getSetting('customer_cart_total') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerCartTotal(); ?>', '<?php echo $this->getSetting('customer_cart_total'); ?>');<?php echo "\n"; } ?>
71
  <?php if ($this->getSetting('customer_wishlist_items') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerWishlistItems(); ?>', '<?php echo $this->getSetting('customer_wishlist_items'); ?>');<?php echo "\n"; } ?>
72
  <?php if ($this->getSetting('customer_wishlist_total') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerWishlistTotal(); ?>', '<?php echo $this->getSetting('customer_wishlist_total'); ?>');<?php echo "\n"; } ?>
 
 
73
  <?php if ($this->getSetting('woopra_cart_wishlist_trigger') == 1) { ?> tracker.pushEvent({<?php echo "\n";?>
74
  name: '<?php echo $this->getSetting('woopra_cart_wishlist_status'); ?>',
75
  product_name: '<?php echo $this->getSetting('woopra_cart_wishlist_name'); ?>',
@@ -152,8 +154,6 @@ function woopraReady(tracker) {
152
  shipping_method: '<?php echo $this->getSetting('woopra_checkout_success_shipping_description'); ?>',
153
  total_items_ordered: '<?php echo $this->getSetting('woopra_checkout_success_total_items_ordered'); ?>'
154
  <?php echo " });\n"; } ?>
155
- <?php if ($this->getSetting('track_url_parameters') == 1) { ?> tracker.trackPageview({type:'pageview',url:window.location.pathname+window.location.search,title:document.title});<?php echo "\n"; ?>
156
- <?php } else { ?> tracker.track();<?php echo "\n"; } ?>
157
  return false;
158
  }
159
  (function(){
57
  <?php if ($this->getSetting('visitor_timeout') != NULL) { ?> tracker.setIdleTimeout(<?php echo $this->getSetting('visitor_timeout') * 60 * 1000; ?>);<?php echo "\n"; ?>
58
  <?php } else { ?> tracker.setIdleTimeout(1800000);<?php echo "\n"; } ?>
59
  <?php if ($this->getSetting('subdomain') != NULL) { ?> tracker.option(<?php echo $this->getSetting('subdomain'); ?>);<?php echo "\n"; } ?>
60
+ <?php if ($this->getSetting('name') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerName(); ?>', '<?php echo $this->getSetting('customer_name'); ?>');<?php echo "\n"; } ?>
61
+ <?php if ($this->getSetting('email') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerEmail(); ?>', '<?php echo $this->getSetting('customer_email'); ?>');<?php echo "\n"; } ?>
62
+ <?php if ($this->getSetting('company') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerCompany(); ?>', '<?php echo $this->getSetting('customer_company'); ?>');<?php echo "\n"; } ?>
63
  <?php if ($this->getSetting('customer_location') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerLocation(); ?>', '<?php echo $this->getSetting('customer_location'); ?>');<?php echo "\n"; } ?>
64
  <?php if ($this->getSetting('customer_phone') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerPhone(); ?>', '<?php echo $this->getSetting('customer_phone'); ?>');<?php echo "\n"; } ?>
65
  <?php if ($this->getSetting('customer_group') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerGroup(); ?>', '<?php echo $this->getSetting('customer_group'); ?>');<?php echo "\n"; } ?>
70
  <?php if ($this->getSetting('customer_cart_total') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerCartTotal(); ?>', '<?php echo $this->getSetting('customer_cart_total'); ?>');<?php echo "\n"; } ?>
71
  <?php if ($this->getSetting('customer_wishlist_items') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerWishlistItems(); ?>', '<?php echo $this->getSetting('customer_wishlist_items'); ?>');<?php echo "\n"; } ?>
72
  <?php if ($this->getSetting('customer_wishlist_total') != NULL) { ?> tracker.addVisitorProperty('<?php echo Mage::helper('woopra')->getCustomerWishlistTotal(); ?>', '<?php echo $this->getSetting('customer_wishlist_total'); ?>');<?php echo "\n"; } ?>
73
+ <?php if ($this->getSetting('track_url_parameters') == 1) { ?> tracker.trackPageview({type:'pageview',url:window.location.pathname+window.location.search,title:document.title});<?php echo "\n"; ?>
74
+ <?php } else { ?> tracker.track();<?php echo "\n"; } ?>
75
  <?php if ($this->getSetting('woopra_cart_wishlist_trigger') == 1) { ?> tracker.pushEvent({<?php echo "\n";?>
76
  name: '<?php echo $this->getSetting('woopra_cart_wishlist_status'); ?>',
77
  product_name: '<?php echo $this->getSetting('woopra_cart_wishlist_name'); ?>',
154
  shipping_method: '<?php echo $this->getSetting('woopra_checkout_success_shipping_description'); ?>',
155
  total_items_ordered: '<?php echo $this->getSetting('woopra_checkout_success_total_items_ordered'); ?>'
156
  <?php echo " });\n"; } ?>
 
 
157
  return false;
158
  }
159
  (function(){
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Woopra_Analytics_Event_And_Visitor_Tracking</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -18,11 +18,12 @@ Access custom reports instantly. No more bugging IT. No old-school interfaces. N
18
  &lt;br /&gt;&#xD;
19
  &lt;a href="http://www.k3live.com/magento-extensions/magento-woopra-tracking"&gt;&lt;img src="http://www.magentocommerce.com/magento-connect/media/catalog/product/w/o/woopra_tracking_5_1_1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&#xD;
20
  Note: This module will not work without a subscription to the &lt;a href="http://www.woopra.com/?woo_campaign=affiliate&amp;woo_medium=referral&amp;woo_source=k3live"&gt;Woopra&lt;/a&gt; service.</description>
21
- <notes>Initial Public Release</notes>
 
22
  <authors><author><name>Woopra</name><user>Woopra</user><email>support@k3live.com</email></author><author><name>K3Live</name><user>K3Live</user><email>support@k3live.com</email></author></authors>
23
- <date>2013-05-25</date>
24
- <time>07:17:26</time>
25
- <contents><target name="magecommunity"><dir><dir name="Woopra"><dir name="Analytics"><dir name="Block"><file name="Script.php" hash="a63b357f5c16bbed150b6bc3042b685a"/></dir><dir name="Helper"><file name="Data.php" hash="be8537fcc78c89b27604ac914f071e7b"/></dir><dir name="Model"><file name="Observer.php" hash="d0fa66a3110f759206bf39572fa10276"/></dir><dir name="etc"><file name="config.xml" hash="fe6ba38e23d9e35e4a1843fe9273acb6"/><file name="system.xml" hash="526dceb67dcbeda11aad1d4648ff105e"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="woopra.xml" hash="2e2a05eaee9dc48e9aba6f24b66fd9e3"/></dir><dir name="template"><dir name="woopra"><file name="script.phtml" hash="c07f622dfcdb07f8a3119140c2fd65ea"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Woopra_Analytics.xml" hash="a4715864833c0024017692871431cb91"/></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Woopra_Analytics_Event_And_Visitor_Tracking</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License (OSL)</license>
7
  <channel>community</channel>
18
  &lt;br /&gt;&#xD;
19
  &lt;a href="http://www.k3live.com/magento-extensions/magento-woopra-tracking"&gt;&lt;img src="http://www.magentocommerce.com/magento-connect/media/catalog/product/w/o/woopra_tracking_5_1_1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&#xD;
20
  Note: This module will not work without a subscription to the &lt;a href="http://www.woopra.com/?woo_campaign=affiliate&amp;woo_medium=referral&amp;woo_source=k3live"&gt;Woopra&lt;/a&gt; service.</description>
21
+ <notes>Updated reserved properties customer_name, customer_email, customer_company to name, email, company.&#xD;
22
+ Moved page view track to before custom event track.</notes>
23
  <authors><author><name>Woopra</name><user>Woopra</user><email>support@k3live.com</email></author><author><name>K3Live</name><user>K3Live</user><email>support@k3live.com</email></author></authors>
24
+ <date>2013-07-09</date>
25
+ <time>13:58:51</time>
26
+ <contents><target name="magecommunity"><dir><dir name="Woopra"><dir name="Analytics"><dir name="Block"><file name="Script.php" hash="a63b357f5c16bbed150b6bc3042b685a"/></dir><dir name="Helper"><file name="Data.php" hash="be8537fcc78c89b27604ac914f071e7b"/></dir><dir name="Model"><file name="Observer.php" hash="d0fa66a3110f759206bf39572fa10276"/></dir><dir name="etc"><file name="config.xml" hash="fe6ba38e23d9e35e4a1843fe9273acb6"/><file name="system.xml" hash="526dceb67dcbeda11aad1d4648ff105e"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="woopra.xml" hash="2e2a05eaee9dc48e9aba6f24b66fd9e3"/></dir><dir name="template"><dir name="woopra"><file name="script.phtml" hash="98050f39056a4ddc3926f8c3be06e662"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Woopra_Analytics.xml" hash="a4715864833c0024017692871431cb91"/></dir></dir></target></contents>
27
  <compatible/>
28
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
29
  </package>