Skip to content

Commit

Permalink
check if order data is available to incl ec
Browse files Browse the repository at this point in the history
  • Loading branch information
torhoehn committed Jun 5, 2018
1 parent 0ad656d commit e46e5a5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -53,7 +53,7 @@ define([
}

// Process orders data
if (config.ordersTrackingData.length) {
if (config.ordersTrackingData.hasOwnProperty('currency')) {
ga('require', 'ec', 'ec.js');

ga('set', 'currencyCode', config.ordersTrackingData.currency);
Expand Down

0 comments on commit e46e5a5

Please sign in to comment.