Subversion Repositories SmartDukaan

Rev

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

Rev 2038 Rev 2110
Line 17... Line 17...
17
function trackEventWithGA(eventCategory, actionName, label)	{
17
function trackEventWithGA(eventCategory, actionName, label)	{
18
	if(typeof _gaq != "undefined" && _gaq != null)	{
18
	if(typeof _gaq != "undefined" && _gaq != null)	{
19
		_gaq.push(['_trackEvent', eventCategory, actionName, label, 2]);
19
		_gaq.push(['_trackEvent', eventCategory, actionName, label, 2]);
20
	}
20
	}
21
}
21
}
-
 
22
 
-
 
23
function trackPageWithGA(page)	{
-
 
24
	if(typeof _gaq != "undefined" && _gaq != null)	{
-
 
25
		_gaq.push(['_trackPageview', page]);
-
 
26
	}
-
 
27
}
22
	
28
	
23
$(function() {
29
$(function() {
24
	$("a.addtocart").live('click', function() {
30
	$("a.addtocart").live('click', function() {
25
		var catalogid = $(this).attr('catalogid');
31
		var catalogid = $(this).attr('catalogid');
26
 
32