Subversion Repositories SmartDukaan

Rev

Rev 1775 | Rev 1783 | 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 || [];
6
_gaq.push(['_setAccount', 'UA-21662919-1']);
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
 */
1780 varun.gupt 13
$('a.vt').click(function(){
1775 varun.gupt 14
	_gaq.push(['_trackEvent', 'Product', $(this).children('span').text(), 'ProductName', $('title').text().split('|')[0].trim()]);
1767 varun.gupt 15
});
1780 varun.gupt 16
$('#btnProceedToPay').click(function(){
1767 varun.gupt 17
	_gaq.push(['_trackEvent', 'Payment', 'Proceed to Payment', '', '']);
18
});
19
 
20
 
1516 chandransh 21
(function() {
22
  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';
24
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
25
})();