mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Remove heap integration.
This commit is contained in:
parent
c9b1faa1a1
commit
7e1c1f7414
1 changed files with 5 additions and 20 deletions
|
@ -48,25 +48,13 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
script(type='text/javascript').
|
script(type='text/javascript').
|
||||||
window.ga = function() { console.log("Sending to GA", arguments) };
|
window.ga = function() { console.log("Sending to GA", arguments) };
|
||||||
|
|
||||||
// Heap Analytics
|
|
||||||
if (settings.analytics && settings.analytics.heap && session && session.user)
|
|
||||||
script(type="text/javascript").
|
|
||||||
window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var n=t.forceSSL||"https:"===document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=(n?"https:":"http:")+"//cdn.heapanalytics.com/js/heap-"+e+".js";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(a,o);for(var r=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["clearEventProperties","identify","setEventProperties","track","unsetEventProperty"],c=0;c<p.length;c++)heap[p[c]]=r(p[c])};
|
|
||||||
heap.load("#{settings.analytics.heap.token}");
|
|
||||||
script(type="text/javascript").
|
|
||||||
heap.identify({
|
|
||||||
handle: "#{session.user._id}",
|
|
||||||
email: "#{session.user.email}",
|
|
||||||
})
|
|
||||||
// End Heap Analytics
|
|
||||||
|
|
||||||
// Countly Analytics
|
// Countly Analytics
|
||||||
if (settings.analytics && settings.analytics.countly && settings.analytics.countly.token)
|
if (settings.analytics && settings.analytics.countly && settings.analytics.countly.token)
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
var Countly = Countly || {};
|
var Countly = Countly || {};
|
||||||
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']);
|
||||||
|
@ -83,12 +71,9 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
if (session && session.user)
|
if (session && session.user)
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
Countly.q.push(['user_details', {
|
Countly.q.push(['user_details', {
|
||||||
handle: "#{session.user._id}",
|
handle: '#{session.user._id}',
|
||||||
email: "#{session.user.email}",
|
email: '#{session.user.email}',
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// End countly Analytics
|
// End countly Analytics
|
||||||
|
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
|
|
Loading…
Reference in a new issue