| 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 |
*/
|
|
|
13 |
$('a.vt').live('click', function(){
|
| 1775 |
varun.gupt |
14 |
_gaq.push(['_trackEvent', 'Product', $(this).children('span').text(), 'ProductName', $('title').text().split('|')[0].trim()]);
|
| 1767 |
varun.gupt |
15 |
});
|
|
|
16 |
$('#btnProceedToPay').live('click', function(){
|
|
|
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 |
})();
|