From 7a3d3d3ffd8a0b62fa73a669b453b94fd58b74bc Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Wed, 6 Jul 2016 14:44:28 +0100 Subject: [PATCH] Make Countly track by internal ids. --- services/web/app/views/layout.jade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/web/app/views/layout.jade b/services/web/app/views/layout.jade index 4b38d67bd8..14e4aa6107 100644 --- a/services/web/app/views/layout.jade +++ b/services/web/app/views/layout.jade @@ -70,10 +70,12 @@ 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: { - handle: '#{session.user._id}', + userId: '#{session.user._id}', } }]); @@ -85,6 +87,7 @@ html(itemscope, itemtype='http://schema.org/Product') if (justLoggedIn) script(type="text/javascript"). + Countly.q.push(['add_event',{ key: 'user-logged-in' }]);