Skip to content

Commit

Permalink
fix(segment-tracker): fix analytics check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutierrezpa committed Jan 18, 2022
1 parent 00a5ab7 commit 6d8a74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segment-tracker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ $(document).ready(function () {
}
});
// Fire Segment event
if ("analytics" in document) analytics.track(event, properties);
if ("analytics" in window) analytics.track(event, properties);
});
});

0 comments on commit 6d8a74a

Please sign in to comment.