@@ -10,12 +10,13 @@ Amplitude-Javascript
1010 <script type="text/javascript">
1111 (function(t,e){var n=t.amplitude||{};var r=e.createElement("script");r.type="text/javascript";
1212 r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.4.1-min.gz.js";
13- var s=e.getElementsByTagName("script")[0];s.parentNode.insertBefore(r,s);var i=function(){
14- this._q=[];return this};function a(t){i.prototype[t]=function(){this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
15- return this}}var o=["add","set","setOnce","unset"];for(var c=0;c<o.length;c++){a(o[c]);
16- }n.Identify=i;n._q=[];function u(t){n[t]=function(){n._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
17- }}var p=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify"];
18- for(var l=0;l<p.length;l++){u(p[l])}t.amplitude=n})(window,document);
13+ r.onload=function(){t.amplitude.runQueuedFunctions()};var s=e.getElementsByTagName("script")[0];
14+ s.parentNode.insertBefore(r,s);var i=function(){this._q=[];return this};function o(t){
15+ i.prototype[t]=function(){this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
16+ return this}}var a=["add","set","setOnce","unset"];for(var u=0;u<a.length;u++){o(a[u]);
17+ }n.Identify=i;n._q=[];function c(t){n[t]=function(){n._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
18+ }}var l=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify"];
19+ for(var p=0;p<l.length;p++){c(l[p])}t.amplitude=n})(window,document);
1920
2021 amplitude.init("YOUR_API_KEY_HERE");
2122 </script>
0 commit comments