From 22b769f198bb0de9b9ef9589ff593e114cf6f3ae Mon Sep 17 00:00:00 2001 From: Teppo Jalava Date: Wed, 23 Aug 2017 11:18:50 +0300 Subject: [PATCH] Fix undefined error --- src/api/ga.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/ga.js b/src/api/ga.js index 4f7da47..028b088 100644 --- a/src/api/ga.js +++ b/src/api/ga.js @@ -2,7 +2,7 @@ let gaTrackingId = sizeme_options.gaTrackingId; let gaEnabled = gaTrackingId !== null; -if (gaEnabled && !ga) { +if (gaEnabled && !window["ga"]) { (function (i, s, o, g, r) { i["GoogleAnalyticsObject"] = r; i[r] = i[r] ||