Skip to content

Commit

Permalink
analytics: Fix broken mixpanel reporting
Browse files Browse the repository at this point in the history
Connects-to: #931
Change-type: patch
Signed-off-by: Dimitrios Lytras <dimitrios@balena.io>
  • Loading branch information
dimitrisnl committed Nov 16, 2018
1 parent f29f64f commit 441e478
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/_track.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

window.jQuery.get('https://api.resin.io/config', (config) => {
mixpanel.init(config.mixpanelToken, { host: 'https://api.resin.io/mixpanel' });
document.addEventListener("DOMContentLoaded", function(event) {
mixpanel.track('Docs', { page: location.href });
});
mixpanel.track('Docs', { page: location.href });
});
</script>
<!-- end Mixpanel -->
Expand Down

0 comments on commit 441e478

Please sign in to comment.