Avoid unneeded change_id event; id can be set as a Countly property, before initializing.

This commit is contained in:
Paulo Reis 2016-07-13 16:29:53 +01:00
parent d53fa5de47
commit 68906cb0c5

View file

@ -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: {