Subversion Repositories SmartDukaan

Rev

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

Rev 1780 Rev 1783
Line 9... Line 9...
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
$('a.vt').click(function(){
13
$('a.vt').click(function(){
14
	_gaq.push(['_trackEvent', 'Product', $(this).children('span').text(), 'ProductName', $('title').text().split('|')[0].trim()]);
14
	_gaq.push(['_trackEvent', 'Product', $(this).children('span').text(), $('title').text().split('|')[0].trim(), 1]);
15
});
15
});
16
$('#btnProceedToPay').click(function(){
-
 
17
	_gaq.push(['_trackEvent', 'Payment', 'Proceed to Payment', '', '']);
-
 
18
});
-
 
19
 
-
 
20
 
16
 
21
(function() {
17
(function() {
22
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
18
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
23
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
19
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
24
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
20
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);