Subversion Repositories SmartDukaan

Rev

Rev 1516 | Rev 1780 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
 * Invocation of Google Analytics code.
 * Don't change anything here.
 */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21662919-1']);
_gaq.push(['_trackPageview']);


/**
 * Code to track user clicks on Product slides and 'Proceed to Payment' option
 */
$('a.vt').live('click', function(){
        _gaq.push(['_trackEvent', 'Product', $(this).children('span').text(), '', '']);
});
$('#btnProceedToPay').live('click', function(){
        _gaq.push(['_trackEvent', 'Payment', 'Proceed to Payment', '', '']);
});


(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();