Aromicon_Google_Universal_Analytics - Version 1.0.3

Version Notes

Fixing missing template

Download this release

Release Info

Developer Stefan Richter
Extension Aromicon_Google_Universal_Analytics
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/design/frontend/base/default/template/aromicon/gua/gua.phtml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php /** */?>
2
+ <?php if($this->isActive()): ?>
3
+ <script type="text/javascript">
4
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
6
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
7
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
8
+
9
+ ga('create', '<?php echo $this->_getAccountId(); ?>', '<?php echo $this->getRequest()->getHttpHost() ?>');
10
+ ga('set', 'anonymizeIp', <?php echo $this->_isAnonymizeIp()?>);
11
+ ga('send', 'pageview');
12
+ <?php if($this->_isEcommerce()): ?>
13
+ ga('require', 'ecommerce', 'ecommerce.js');
14
+ <?php $_order = $this->getOrder();?>
15
+ ga('set', 'currencyCode', '<?php echo $_order->getOrderCurrencyCode();?>');
16
+ ga('ecommerce:addTransaction', { 'id': '<?php echo $_order->getData($this->getTransactionIdField())?>', 'affiliation': '<?php echo Mage::app()->getStore()->getName() ?>', 'revenue': '<?php echo $_order->getGrandTotal()?>', 'shipping': '<?php echo $_order->getShippingInclTax()?>', 'tax': '<?php echo $_order->getTaxAmount()?>'});
17
+ <?php foreach($_order->getAllItems() as $_item): ?>
18
+ <?php if($_item->getParentItem()) continue; ?>
19
+ ga('ecommerce:addItem', {'id': '<?php echo $_order->getData($this->getTransactionIdField()) ?>', 'name': '<?php echo str_replace('\'','', $_item->getName()) ?>', 'sku': '<?php echo $_item->getSku() ?>', 'price': '<?php echo $_item->getPrice() ?>', 'quantity': '<?php echo (int) $_item->getQtyOrdered() ?>'});
20
+ <?php endforeach;?>
21
+ ga('ecommerce:send');
22
+ <?php endif;?>
23
+ </script>
24
+ <?php echo $this->getChildHtml(); ?>
25
+ <?php endif; ?>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aromicon_Google_Universal_Analytics</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.aromicon.de/magento-download-extensions-modules/de/license">COMMERCIAL SOFTWARE LICENSE (v1.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Adds new Google Universal Analytics to Magento Store.</summary>
10
  <description>Adds new Google Universal Analytics to Magento Store.</description>
11
- <notes>Fixing Ecommerce Tracking.</notes>
12
  <authors><author><name>Stefan Richter</name><user>aromicon_de</user><email>kontakt@aromicon.com</email></author></authors>
13
- <date>2013-07-12</date>
14
- <time>13:14:56</time>
15
- <contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Aromicon"><dir name="Gua"><dir><dir name="Block"><file name="Gua.php" hash="988cfee0ffe6b681435e11f913bdceea"/></dir><dir name="Helper"><file name="Data.php" hash="892999bec44a25b0e58c9e00373c0d7d"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Addto.php" hash="14d18fae25ecee83c1a5e872c33db83b"/><file name="Orderid.php" hash="90fcb94f06e986d19cc0c050f655d0c0"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="e749ec6457d1aaddc9e7cb38ec61dc35"/><file name="system.xml" hash="2c8c2425e79e2d15ea1f4028220aa337"/></dir><dir name="sql"><dir name="aromicon_gua_setup"><file name="mysql4-install-1.0.0.php" hash="4bbce7f9d21a131d0aefc73156c87e36"/></dir></dir></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="aromicon"><file name="gua" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir><dir name="layout"><file name="aromicon_gua.xml" hash="884de73b75c9e8ff9144dbf7b936225e"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Aromicon_Gua.xml" hash="cbaa405a82a74fe32c6821e3342a3b7d"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aromicon_Google_Universal_Analytics</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.aromicon.de/magento-download-extensions-modules/de/license">COMMERCIAL SOFTWARE LICENSE (v1.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Adds new Google Universal Analytics to Magento Store.</summary>
10
  <description>Adds new Google Universal Analytics to Magento Store.</description>
11
+ <notes>Fixing missing template</notes>
12
  <authors><author><name>Stefan Richter</name><user>aromicon_de</user><email>kontakt@aromicon.com</email></author></authors>
13
+ <date>2013-09-06</date>
14
+ <time>11:00:05</time>
15
+ <contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Aromicon"><dir name="Gua"><dir><dir name="Block"><file name="Gua.php" hash="988cfee0ffe6b681435e11f913bdceea"/></dir><dir name="Helper"><file name="Data.php" hash="892999bec44a25b0e58c9e00373c0d7d"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Addto.php" hash="14d18fae25ecee83c1a5e872c33db83b"/><file name="Orderid.php" hash="90fcb94f06e986d19cc0c050f655d0c0"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="e749ec6457d1aaddc9e7cb38ec61dc35"/><file name="system.xml" hash="2c8c2425e79e2d15ea1f4028220aa337"/></dir><dir name="sql"><dir name="aromicon_gua_setup"><file name="mysql4-install-1.0.0.php" hash="4bbce7f9d21a131d0aefc73156c87e36"/></dir></dir></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="aromicon"><dir name="gua"><file name="gua.phtml" hash="83d56071c238ea4bbc381871ce5e9c83"/></dir></dir></dir><dir name="layout"><file name="aromicon_gua.xml" hash="884de73b75c9e8ff9144dbf7b936225e"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Aromicon_Gua.xml" hash="cbaa405a82a74fe32c6821e3342a3b7d"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>