Subversion Repositories SmartDukaan

Rev

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

Rev 1516 Rev 1767
Line 4... Line 4...
4
 */
4
 */
5
var _gaq = _gaq || [];
5
var _gaq = _gaq || [];
6
_gaq.push(['_setAccount', 'UA-21662919-1']);
6
_gaq.push(['_setAccount', 'UA-21662919-1']);
7
_gaq.push(['_trackPageview']);
7
_gaq.push(['_trackPageview']);
8
 
8
 
-
 
9
 
-
 
10
/**
-
 
11
 * Code to track user clicks on Product slides and 'Proceed to Payment' option
-
 
12
 */
-
 
13
$('a.vt').live('click', function(){
-
 
14
	_gaq.push(['_trackEvent', 'Product', $(this).children('span').text(), '', '']);
-
 
15
});
-
 
16
$('#btnProceedToPay').live('click', function(){
-
 
17
	_gaq.push(['_trackEvent', 'Payment', 'Proceed to Payment', '', '']);
-
 
18
});
-
 
19
 
-
 
20
 
9
(function() {
21
(function() {
10
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
22
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
11
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
23
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
12
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
24
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
13
})();
25
})();