Subversion Repositories SmartDukaan

Rev

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

Rev 6264 Rev 6303
Line 66... Line 66...
66
		"<b>Q)</b> When will the product be available for pickup ?<br /><br />" +
66
		"<b>Q)</b> When will the product be available for pickup ?<br /><br />" +
67
		"<b>A)</b> You can enter your pin code on the Product Page to find estimated time to deliver. After placing the order we will also give you the estimated date for pickup.</a><br /><br />",
67
		"<b>A)</b> You can enter your pin code on the Product Page to find estimated time to deliver. After placing the order we will also give you the estimated date for pickup.</a><br /><br />",
68
		
68
		
69
			onComplete: function(){
69
			onComplete: function(){
70
				var ev = "Product Page";
70
				var ev = "Product Page";
71
				var label = document.URL.substring(document.URL.lastIndexOf('/')+1);
71
				var label = window.location.pathname;
72
				if (label=="" || label=="#")
72
				if (label=="" || label=="#")
73
				{
73
				{
-
 
74
					label = "";
74
					ev = "Home Page";
75
					ev = "Home Page";
75
				}
76
				}
76
				else if (label.indexOf("shipping") != -1){
77
				else if (label.indexOf("shipping") != -1){
77
					ev = "Shipping Page";
78
					ev = "Shipping Page";
78
					var blkstr = [];
79
					var blkstr = [];
79
					jQuery("#cartDetail").find("span.cart-item-name").each(function(key,str){
80
					jQuery("#cartDetail").find("span.cart-item-name").each(function(key,str){
80
						blkstr.push(str);
81
						blkstr.push(str);
81
					});
82
					});
82
					label = blkstr.join(", ");;
83
					label = blkstr.join(", ");
-
 
84
				} else if (label.substr(label.lastIndexOf('/') + 1).length==5 && typeof label.substr(label.lastIndexOf('/') + 1) =="number") {
-
 
85
					ev = "Category Page";
-
 
86
				} else if (label.substr(label.lastIndexOf('-') + 1).length==7  && typeof label.substr(label.lastIndexOf('-') + 1) =="number") {
-
 
87
					ev = "Product Page";
83
				}
88
				}
84
				trackEventWithGA('Pickup in Store LightBox', ev, label);
89
				trackEventWithGA('Pickup in Store LightBox', ev, label);
85
			}
90
			}
86
    	});
91
    	});
87
	});
92
	});