mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Avoid unneeded change_id event; id can be set as a Countly property, before initializing.
This commit is contained in:
parent
d53fa5de47
commit
68906cb0c5
1 changed files with 1 additions and 2 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue