Subversion Repositories SmartDukaan

Rev

Rev 1870 | Rev 11832 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1870 Rev 1922
Line 5... Line 5...
5
var _gaq = _gaq || [];
5
var _gaq = _gaq || [];
6
_gaq.push(['_setAccount', '${in.shop2020.gaAccountID}']);
6
_gaq.push(['_setAccount', '${in.shop2020.gaAccountID}']);
7
_gaq.push(['_trackPageview']);
7
_gaq.push(['_trackPageview']);
8
 
8
 
9
 
9
 
10
/**
-
 
11
 * Code to track user clicks on Product slides and 'Proceed to Payment' option
-
 
12
 */
-
 
13
$(function(){
-
 
14
	$('a.vt').click(function(){
-
 
15
		_gaq.push(['_trackEvent', 'Product', $(this).children('span').text(), $('title').text().split('|')[0].trim(), 1]);
-
 
16
	});
-
 
17
});
-
 
18
 
-
 
19
(function() {
10
(function() {
20
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
11
  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';
12
  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);
13
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
23
})();
14
})();