From 441e478e60554087ace5919d870aa8f8ef719d94 Mon Sep 17 00:00:00 2001 From: Dimitrios Lytras Date: Thu, 15 Nov 2018 15:40:33 +0200 Subject: [PATCH] analytics: Fix broken mixpanel reporting Connects-to: #931 Change-type: patch Signed-off-by: Dimitrios Lytras --- templates/_track.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/_track.html b/templates/_track.html index e93ae3f066..2b20abe16b 100644 --- a/templates/_track.html +++ b/templates/_track.html @@ -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 }); });