mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 14:03:37 -05:00
Make Countly track by internal ids.
This commit is contained in:
parent
8e2475afdc
commit
7a3d3d3ffd
1 changed files with 4 additions and 1 deletions
|
@ -70,10 +70,12 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
|
|
||||||
if (session && session.user)
|
if (session && session.user)
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
|
Countly.q.push(['change_id', '#{session.user._id}', true ]);
|
||||||
|
|
||||||
Countly.q.push(['user_details', {
|
Countly.q.push(['user_details', {
|
||||||
email: '#{session.user.email}',
|
email: '#{session.user.email}',
|
||||||
custom: {
|
custom: {
|
||||||
handle: '#{session.user._id}',
|
userId: '#{session.user._id}',
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
@ -85,6 +87,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
|
|
||||||
if (justLoggedIn)
|
if (justLoggedIn)
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
|
|
||||||
Countly.q.push(['add_event',{
|
Countly.q.push(['add_event',{
|
||||||
key: 'user-logged-in'
|
key: 'user-logged-in'
|
||||||
}]);
|
}]);
|
||||||
|
|
Loading…
Reference in a new issue