Subversion Repositories SmartDukaan

Rev

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

Rev 1783 Rev 1794
Line 8... Line 8...
8
 
8
 
9
 
9
 
10
/**
10
/**
11
 * Code to track user clicks on Product slides and 'Proceed to Payment' option
11
 * Code to track user clicks on Product slides and 'Proceed to Payment' option
12
 */
12
 */
-
 
13
$(function(){
13
$('a.vt').click(function(){
14
	$('a.vt').click(function(){
14
	_gaq.push(['_trackEvent', 'Product', $(this).children('span').text(), $('title').text().split('|')[0].trim(), 1]);
15
		_gaq.push(['_trackEvent', 'Product', $(this).children('span').text(), $('title').text().split('|')[0].trim(), 1]);
-
 
16
	});
15
});
17
});
16
 
18
 
17
(function() {
19
(function() {
18
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
20
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
19
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
21
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';