Add user name.

This commit is contained in:
Paulo Reis 2016-07-14 09:55:11 +01:00
parent fee22db567
commit 5d5bc57535

View file

@ -70,7 +70,8 @@ html(itemscope, itemtype='http://schema.org/Product')
script(type="text/javascript")
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)
| Countly.q.push(['add_event',{ key: 'user-registered' }]);