Google_Universal_Analytics - Version 1.1.0

Version Notes

Small tweaks

Download this release

Release Info

Developer SaveTheMage
Extension Google_Universal_Analytics
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.0 to 1.1.0

app/code/local/SaveTheMage/GoogleUniversalAnalytics/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <SaveTheMage_GoogleUniversalAnalytics>
5
- <version>1.0.0</version>
6
  </SaveTheMage_GoogleUniversalAnalytics>
7
  </modules>
8
  <frontend>
2
  <config>
3
  <modules>
4
  <SaveTheMage_GoogleUniversalAnalytics>
5
+ <version>1.1.0</version>
6
  </SaveTheMage_GoogleUniversalAnalytics>
7
  </modules>
8
  <frontend>
app/design/frontend/base/default/template/SaveTheMage/GoogleUniversalAnalytics/index.phtml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $path = 'GUA_options/Settings/TrackingID';
3
+ $trackingId = Mage::getStoreConfig($path);
4
+
5
+ $path = 'GUA_options/Settings/Domain';
6
+ $domain = Mage::getStoreConfig($path);
7
+
8
+ if( !empty( $trackingId ) && !empty( $domain ) ){
9
+ ?>
10
+ <!--start of Google Universal Analytics js code-->
11
+ <script>
12
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
13
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
14
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
15
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
16
+ ga('create', '<?php echo $trackingId; ?>', '<?php echo $domain; ?>');
17
+ ga('send', 'pageview');
18
+ </script>
19
+ <!--end of Google Universal Analytics js code-->
20
+ <?php } ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Google_Universal_Analytics</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -36,11 +36,11 @@ Read more about all the benefits of &lt;a href="https://support.google.com/analy
36
  &lt;h1&gt;Developer Highlight&lt;/h1&gt;&#xD;
37
  &lt;p&gt;We are working hard to provide quality magento extensions that pack amazing value. With over 20 years combined programming, design and webmaster experience, we are hitting the Magento scene hard. We will do everything to make sure you are 110% satisfied. Check out our other Magento extensions and services at &lt;a href="http://www.savethemage.com/" title="Magento Extensions"&gt;www.SaveTheMage.com&lt;/a&gt;&#xD;
38
  &lt;/p&gt;</description>
39
- <notes>1st Official Release</notes>
40
  <authors><author><name>SaveTheMage</name><user>SaveTheMage</user><email>support@savethemage.com</email></author></authors>
41
- <date>2013-07-24</date>
42
- <time>23:16:58</time>
43
- <contents><target name="magelocal"><dir name="SaveTheMage"><dir name="GoogleUniversalAnalytics"><dir name="Helper"><file name="Data.php" hash="2380046ab15f2f2841d3302f87270724"/></dir><dir name="etc"><file name="adminhtml.xml" hash="44fe3393b878c1e84759d6b64532fb0a"/><file name="config.xml" hash="4427ed9de0b9a09913f7dd20c2f57763"/><file name="system.xml" hash="933eca708f0becf88bfded0842530569"/></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="SaveTheMage"><dir name="GoogleUniversalAnalytics"><file name="index.phtml" hash=""/></dir></dir></dir></dir></dir></dir><dir name="modules"><file name="SaveTheMage_GoogleUniversalAnalytics.xml" hash=""/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="SaveTheMage"><file name="GoogleUniversalAnalytics.xml" hash="22ffead97c9d7b67c8b8b3fe10e72faa"/></dir></dir></dir></dir></dir></target></contents>
44
  <compatible/>
45
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
46
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Google_Universal_Analytics</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
36
  &lt;h1&gt;Developer Highlight&lt;/h1&gt;&#xD;
37
  &lt;p&gt;We are working hard to provide quality magento extensions that pack amazing value. With over 20 years combined programming, design and webmaster experience, we are hitting the Magento scene hard. We will do everything to make sure you are 110% satisfied. Check out our other Magento extensions and services at &lt;a href="http://www.savethemage.com/" title="Magento Extensions"&gt;www.SaveTheMage.com&lt;/a&gt;&#xD;
38
  &lt;/p&gt;</description>
39
+ <notes>Small tweaks</notes>
40
  <authors><author><name>SaveTheMage</name><user>SaveTheMage</user><email>support@savethemage.com</email></author></authors>
41
+ <date>2014-01-15</date>
42
+ <time>01:40:20</time>
43
+ <contents><target name="magelocal"><dir name="SaveTheMage"><dir name="GoogleUniversalAnalytics"><dir name="Helper"><file name="Data.php" hash="2380046ab15f2f2841d3302f87270724"/></dir><dir name="etc"><file name="adminhtml.xml" hash="44fe3393b878c1e84759d6b64532fb0a"/><file name="config.xml" hash="b823bb1329b22ca000d6e56aec1d22af"/><file name="system.xml" hash="933eca708f0becf88bfded0842530569"/></dir></dir></dir><dir name="modules"><file name="SaveTheMage_GoogleUniversalAnalytics.xml" hash=""/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="SaveTheMage"><file name="GoogleUniversalAnalytics.xml" hash="22ffead97c9d7b67c8b8b3fe10e72faa"/></dir></dir><dir name="template"><dir name="SaveTheMage"><dir name="GoogleUniversalAnalytics"><file name="index.phtml" hash="a3db749e2f3dba291baedee2756f4052"/></dir></dir></dir></dir></dir></dir></target></contents>
44
  <compatible/>
45
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
46
  </package>