Difference between revisions of "MediaWiki:Common.js"

From Exilent
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: <script type="text/javascript"> window.heap=window.heap||[],heap.load=function(e,t){window.heap...")
 
 
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
<script type="text/javascript">
 
    window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=t.forceSSL||"https:"===document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=(r?"https:":"http:")+"//cdn.heapanalytics.com/js/heap-"+e+".js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n);for(var o=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],c=0;c<p.length;c++)heap[p[c]]=o(p[c])};
 
      heap.load("1894565645");
 
</script>
 

Latest revision as of 19:48, 15 July 2019

/* Any JavaScript here will be loaded for all users on every page load. */