Skip to content
Snippets Groups Projects
Commit e851948a authored by Bhargav Mehta's avatar Bhargav Mehta
Browse files

Updated code to make it more efficient.

parent 149d08fb
No related merge requests found
......@@ -51,7 +51,6 @@ define([
if (config.pageTrackingData.isAnonymizedIpActive) {
ga('set', 'anonymizeIp', true);
}
ga('send', 'pageview' + config.pageTrackingData.optPageUrl);
// Process orders data
if (config.ordersTrackingData.length) {
......@@ -75,6 +74,9 @@ define([
}
ga('send', 'pageview');
}else{
// Process Data if not orders
ga('send', 'pageview' + config.pageTrackingData.optPageUrl);
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment