|
1 | | -(function(e,t){var n=e.amplitude||{};var r=t.createElement("script");r.type="text/javascript"; |
| 1 | +(function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script");r.type="text/javascript"; |
2 | 2 | r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.9.0-min.gz.js"; |
3 | | -r.onload=function(){e.amplitude.runQueuedFunctions()};var s=t.getElementsByTagName("script")[0]; |
4 | | -s.parentNode.insertBefore(r,s);var i=function(){this._q=[];return this};function a(e){ |
5 | | -i.prototype[e]=function(){this._q.push([e].concat(Array.prototype.slice.call(arguments,0))); |
| 3 | +r.onload=function(){e.amplitude.runQueuedFunctions()};var i=t.getElementsByTagName("script")[0]; |
| 4 | +i.parentNode.insertBefore(r,i);var s=function(){this._q=[];return this};function a(e){ |
| 5 | +s.prototype[e]=function(){this._q.push([e].concat(Array.prototype.slice.call(arguments,0))); |
6 | 6 | return this}}var o=["add","append","clearAll","set","setOnce","unset"];for(var c=0;c<o.length;c++){ |
7 | | -a(o[c])}n.Identify=i;n._q=[];function u(e){n[e]=function(){n._q.push([e].concat(Array.prototype.slice.call(arguments,0))); |
8 | | -}}var l=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties"]; |
9 | | -for(var p=0;p<l.length;p++){u(l[p])}e.amplitude=n})(window,document); |
| 7 | +a(o[c])}n.Identify=s;var u=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties"]; |
| 8 | +function l(e){function t(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0))); |
| 9 | +}}for(var n=0;n<u.length;n++){t(u[n])}}l(n);n.getInstance=function(e){e=(!e||e.length===0?"$default_instance":e).toLowerCase(); |
| 10 | +if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};l(n._iq[e])}return n._iq[e]};e.amplitude=n; |
| 11 | +})(window,document); |
0 commit comments