From 68906cb0c599b103842008985e1ed8df953543ea Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Wed, 13 Jul 2016 16:29:53 +0100 Subject: [PATCH] Avoid unneeded change_id event; id can be set as a Countly property, before initializing. --- services/web/app/views/layout.jade | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/web/app/views/layout.jade b/services/web/app/views/layout.jade index 2c4178f9d3..771ffec1b8 100644 --- a/services/web/app/views/layout.jade +++ b/services/web/app/views/layout.jade @@ -54,6 +54,7 @@ html(itemscope, itemtype='http://schema.org/Product') Countly.q = Countly.q || []; Countly.app_key = '#{settings.analytics.countly.token}'; Countly.url = '#{settings.analytics.countly.server}'; + !{ session.user ? 'Countly.device_id = "' + session.user._id + '";' : '' } Countly.q.push(['track_sessions']); Countly.q.push(['track_pageview']); @@ -69,8 +70,6 @@ html(itemscope, itemtype='http://schema.org/Product') if (session && session.user) script(type="text/javascript"). - Countly.q.push(['change_id', '#{session.user._id}', true ]); - Countly.q.push(['user_details', { email: '#{session.user.email}', custom: {