mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add user name.
This commit is contained in:
parent
fee22db567
commit
5d5bc57535
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
|
|
||||||
script(type="text/javascript")
|
script(type="text/javascript")
|
||||||
if (session && session.user)
|
if (session && session.user)
|
||||||
| Countly.q.push(['user_details', { email: '#{session.user.email}' }]);
|
- var name = session.user.first_name + (session.user.last_name ? ' ' + session.user.last_name : '');
|
||||||
|
| Countly.q.push(['user_details', { email: '#{session.user.email}', name: '#{name}' }]);
|
||||||
|
|
||||||
if (justRegistered)
|
if (justRegistered)
|
||||||
| Countly.q.push(['add_event',{ key: 'user-registered' }]);
|
| Countly.q.push(['add_event',{ key: 'user-registered' }]);
|
||||||
|
|
Loading…
Reference in a new issue