|
5 | 5 | e.amplitude.runQueuedFunctions()}else{ |
6 | 6 | console.log("[Amplitude] Error: could not load SDK")}} |
7 | 7 | ;var i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i) |
8 | | -;function o(e,t){e.prototype[t]=function(){ |
| 8 | +;function s(e,t){e.prototype[t]=function(){ |
9 | 9 | this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));return this}} |
10 | | -var s=function(){this._q=[];return this} |
| 10 | +var o=function(){this._q=[];return this} |
11 | 11 | ;var a=["add","append","clearAll","prepend","set","setOnce","unset"] |
12 | | -;for(var u=0;u<a.length;u++){o(s,a[u])}n.Identify=s;var c=function(){this._q=[] |
| 12 | +;for(var u=0;u<a.length;u++){s(o,a[u])}n.Identify=o;var c=function(){this._q=[] |
13 | 13 | ;return this} |
14 | 14 | ;var l=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"] |
15 | | -;for(var p=0;p<l.length;p++){o(c,l[p])}n.Revenue=c |
16 | | -;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","logEventWithTimestamp","logEventWithGroups"] |
| 15 | +;for(var p=0;p<l.length;p++){s(c,l[p])}n.Revenue=c |
| 16 | +;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","logEventWithTimestamp","logEventWithGroups","setSessionId"] |
17 | 17 | ;function v(e){function t(t){e[t]=function(){ |
18 | 18 | e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}} |
19 | 19 | for(var n=0;n<d.length;n++){t(d[n])}}v(n);n.getInstance=function(e){ |
|
0 commit comments