Skip to content

Commit 54ff9db

Browse files
ENGCOM-1825: check if order data is available to incl ec #15765
2 parents e5add7e + 9cbeb44 commit 54ff9db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/GoogleAnalytics/view/frontend/web/js/google-analytics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ define([
5353
}
5454

5555
// Process orders data
56-
if (config.ordersTrackingData.length) {
56+
if (config.ordersTrackingData.hasOwnProperty('currency')) {
5757
ga('require', 'ec', 'ec.js');
5858

5959
//Set currency code

0 commit comments

Comments
 (0)