From 7e1c1f7414d208d92885928fb23ba518d6c023d9 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Wed, 6 Jul 2016 12:12:22 +0100 Subject: [PATCH] Remove heap integration. --- services/web/app/views/layout.jade | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/services/web/app/views/layout.jade b/services/web/app/views/layout.jade index 3a5b227fac..76b6df7f78 100644 --- a/services/web/app/views/layout.jade +++ b/services/web/app/views/layout.jade @@ -48,31 +48,19 @@ html(itemscope, itemtype='http://schema.org/Product') script(type='text/javascript'). 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