Skip to content

Commit c77d3cb

Browse files
ENGCOM-1872: [Up-port] check if order data is available to incl ec #15847
- Merge Pull Request #15847 from torhoehn/magento2:up-port-pull-15765 - Merged commits: 1. e46e5a5
2 parents 0ad656d + e46e5a5 commit c77d3cb

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)