mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-02 13:31:54 +00:00
Add user info to correlate with events.
This commit is contained in:
parent
909f7c15b5
commit
c9b1faa1a1
1 changed files with 10 additions and 0 deletions
|
@ -67,6 +67,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
Countly.q = Countly.q || [];
|
Countly.q = Countly.q || [];
|
||||||
Countly.app_key = "#{settings.analytics.countly.token}";
|
Countly.app_key = "#{settings.analytics.countly.token}";
|
||||||
Countly.url = "https://try.count.ly";
|
Countly.url = "https://try.count.ly";
|
||||||
|
|
||||||
Countly.q.push(['track_sessions']);
|
Countly.q.push(['track_sessions']);
|
||||||
Countly.q.push(['track_pageview']);
|
Countly.q.push(['track_pageview']);
|
||||||
|
|
||||||
|
@ -79,6 +80,15 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(cly, s);
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(cly, s);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
if (session && session.user)
|
||||||
|
script(type="text/javascript").
|
||||||
|
Countly.q.push(['user_details', {
|
||||||
|
handle: "#{session.user._id}",
|
||||||
|
email: "#{session.user.email}",
|
||||||
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// End countly Analytics
|
// End countly Analytics
|
||||||
|
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
|
|
Loading…
Reference in a new issue