From 149d08fbae7a0c747e816fb47752581486c27677 Mon Sep 17 00:00:00 2001
From: Bhargav Mehta <bhargavmehta44@gmail.com>
Date: Sun, 7 Jan 2018 13:10:18 +0530
Subject: [PATCH] Fix 12221

---
 .../GoogleAnalytics/view/frontend/web/js/google-analytics.js    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/code/Magento/GoogleAnalytics/view/frontend/web/js/google-analytics.js b/app/code/Magento/GoogleAnalytics/view/frontend/web/js/google-analytics.js
index 324881cdc50..4f6f3e9ae88 100644
--- a/app/code/Magento/GoogleAnalytics/view/frontend/web/js/google-analytics.js
+++ b/app/code/Magento/GoogleAnalytics/view/frontend/web/js/google-analytics.js
@@ -54,7 +54,7 @@ define([
             ga('send', 'pageview' + config.pageTrackingData.optPageUrl);
 
             // Process orders data
-            if (config.ordersTrackingData) {
+            if (config.ordersTrackingData.length) {
                 ga('require', 'ec', 'ec.js');
 
                 //Set currency code
-- 
GitLab