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