Subversion Repositories SmartDukaan

Rev

Rev 11922 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11922 Rev 12530
Line 1... Line 1...
1
/*
1
/*
2
 * Invocation of Google Analytics code.
2
 * Invocation of Google Analytics code.
3
 * Don't change anything here.
3
 * Don't change anything here.
4
 */
4
 */
5
var _gaq = _gaq || [];
5
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
6
_gaq.push(['_setAccount', '${in.shop2020.gaAccountID}']);
6
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
7
_gaq.push(['_setDomainName', '${in.shop2020.gaDomain}']);
7
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
8
_gaq.push(['_trackPageview']);
8
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
9
 
9
 
10
 
-
 
11
(function() {
-
 
12
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
10
ga('create', '${in.shop2020.gaAccountID}', 'auto');
13
//  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-
 
14
  ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
11
ga('send', 'pageview');
15
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
12
ga('require', 'ecommerce');   // Load the ecommerce plug-in.
16
})();
-