Track user log in and sign up.

This commit is contained in:
Paulo Reis 2016-07-06 12:12:54 +01:00
parent 7e1c1f7414
commit 5c121a5f05

View file

@ -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").