mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Track user log in and sign up.
This commit is contained in:
parent
7e1c1f7414
commit
5c121a5f05
1 changed files with 12 additions and 0 deletions
|
@ -74,6 +74,18 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
handle: '#{session.user._id}',
|
||||
email: '#{session.user.email}',
|
||||
}]);
|
||||
|
||||
if (justRegistered)
|
||||
script(type="text/javascript").
|
||||
Countly.q.push(['add_event',{
|
||||
key: 'user-registered'
|
||||
});
|
||||
|
||||
if (justLoggedIn)
|
||||
script(type="text/javascript").
|
||||
Countly.q.push(['add_event',{
|
||||
key: 'user-logged-in'
|
||||
});
|
||||
// End countly Analytics
|
||||
|
||||
script(type="text/javascript").
|
||||
|
|
Loading…
Reference in a new issue