Subversion Repositories SmartDukaan

Rev

Rev 11850 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11850 Rev 12530
Line 10... Line 10...
10
     
10
     
11
     NOTE: incase reqtype=list then refdivid should be product id
11
     NOTE: incase reqtype=list then refdivid should be product id
12
*/
12
*/
13
 
13
 
14
function trackEventWithGA(eventCategory, actionName, label)	{
14
function trackEventWithGA(eventCategory, actionName, label)	{
15
	if(typeof _gaq != "undefined" && _gaq != null)	{
-
 
16
		_gaq.push(['_trackEvent', eventCategory, actionName, label, 2]);
15
	ga('send', 'event', eventCategory, actionName, label);
17
	}
-
 
18
}
16
}
19
 
17
 
20
function trackPageWithGA(page)	{
18
function trackPageWithGA(page)	{
21
	if(typeof _gaq != "undefined" && _gaq != null)	{
19
	if(typeof _gaq != "undefined" && _gaq != null)	{
22
		_gaq.push(['_trackPageview', page]);
20
		_gaq.push(['_trackPageview', page]);