Skip to content

Commit 1b51d5c

Browse files
author
Stanislav Idolov
authored
ENGCOM-1872: [Up-port] check if order data is available to incl ec #15847
2 parents d6d758f + c77d3cb commit 1b51d5c

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
ga('set', 'currencyCode', config.ordersTrackingData.currency);

0 commit comments

Comments
 (0)