We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bd0104 + e851948 commit 6c58188Copy full SHA for 6c58188
app/code/Magento/GoogleAnalytics/view/frontend/web/js/google-analytics.js
@@ -51,10 +51,9 @@ define([
51
if (config.pageTrackingData.isAnonymizedIpActive) {
52
ga('set', 'anonymizeIp', true);
53
}
54
- ga('send', 'pageview' + config.pageTrackingData.optPageUrl);
55
56
// Process orders data
57
- if (config.ordersTrackingData) {
+ if (config.ordersTrackingData.length) {
58
ga('require', 'ec', 'ec.js');
59
60
//Set currency code
@@ -75,6 +74,9 @@ define([
75
74
76
77
ga('send', 'pageview');
+ }else{
78
+ // Process Data if not orders
79
+ ga('send', 'pageview' + config.pageTrackingData.optPageUrl);
80
81
82
0 commit comments