Subversion Repositories SmartDukaan

Rev

Rev 1794 | Rev 1922 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1516 chandransh 1
/*
2
 * Invocation of Google Analytics code.
3
 * Don't change anything here.
4
 */
5
var _gaq = _gaq || [];
1870 varun.gupt 6
_gaq.push(['_setAccount', '${in.shop2020.gaAccountID}']);
1516 chandransh 7
_gaq.push(['_trackPageview']);
8
 
1767 varun.gupt 9
 
10
/**
11
 * Code to track user clicks on Product slides and 'Proceed to Payment' option
12
 */
1794 varun.gupt 13
$(function(){
14
	$('a.vt').click(function(){
15
		_gaq.push(['_trackEvent', 'Product', $(this).children('span').text(), $('title').text().split('|')[0].trim(), 1]);
16
	});
1767 varun.gupt 17
});
18
 
1516 chandransh 19
(function() {
20
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
21
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
22
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
23
})();