Skip to content

Commit

Permalink
Fix undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjalava authored Aug 23, 2017
1 parent 11b94e9 commit 22b769f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/ga.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] ||
Expand Down

0 comments on commit 22b769f

Please sign in to comment.