templates/geo/parts/amplitude.html.twig line 1

Open in your IDE?
  1. <script type="text/javascript">
  2.     (function(e,t){
  3.         var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script");
  4.         r.type="text/javascript";
  5.         r.integrity="sha384-tzcaaCH5+KXD4sGaDozev6oElQhsVfbJvdi3//c2YvbY02LrNlbpGdt3Wq4rWonS";
  6.         r.crossOrigin="anonymous";
  7.         r.async=true;
  8.         r.src="https://cdn.amplitude.com/libs/amplitude-8.5.0-min.gz.js";
  9.         r.onload=function(){
  10.             if(!e.amplitude.runQueuedFunctions){
  11.                 console.log("[Amplitude] Error: could not load SDK")
  12.             }
  13.         };
  14.         var i=t.getElementsByTagName("script")[0];
  15.         i.parentNode.insertBefore(r,i);
  16.         function s(e,t){
  17.             e.prototype[t]=function(){
  18.                 this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
  19.                 return this
  20.             }
  21.         }
  22.         var o=function(){this._q=[];return this};
  23.         var a=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove"];
  24.         for(var c=0;c<a.length;c++){s(o,a[c])}n.Identify=o;var u=function(){this._q=[];
  25.             return this
  26.         };
  27.         var l=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"];
  28.         for(var p=0;p<l.length;p++){
  29.             s(u,l[p])
  30.         }
  31.         n.Revenue=u;
  32.         var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"];
  33.         function v(e){
  34.             function t(t){
  35.                 e[t]=function(){
  36.                     e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))
  37.                 }
  38.             }
  39.             for(var n=0;n<d.length;n++){t(d[n])}}v(n);n.getInstance=function(e){
  40.             e=(!e||e.length===0?"$default_instance":e).toLowerCase();
  41.             if(!Object.prototype.hasOwnProperty.call(n._iq,e)){
  42.                 n._iq[e]={_q:[]};v(n._iq[e])
  43.             }
  44.             return n._iq[e]
  45.         };
  46.         e.amplitude=n
  47.     })(window,document);
  48.     amplitude.getInstance().init("80be9250993cea82417e2ffef5e857a0");
  49. </script>