@@ -13,13 +13,14 @@ This Readme will guide you through using Amplitude's Javascript SDK to track use
1313 <script type =" text/javascript" >
1414 (function (e ,t ){var n= e .amplitude || {_q: []};var r= t .createElement (" script" );r .type = " text/javascript" ;
1515 r .async = true ;r .src = " https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz.js" ;
16- r .onload = function (){e .amplitude .runQueuedFunctions ()};var i= t .getElementsByTagName (" script" )[0 ];
17- i .parentNode .insertBefore (r,i);var s = function (){this ._q = [];return this };function o (e ){
18- s .prototype [e]= function (){this ._q .push ([e].concat (Array .prototype .slice .call (arguments ,0 )));
19- return this }}var a= [" add" ," append" ," clearAll" ," prepend" ," set" ," setOnce" ," unset" ];for (var c= 0 ;c< a .length ;c++ ){
20- o (a[c])}n .Identify = s;var u= [" init" ," logEvent" ," logRevenue" ," setUserId" ," setUserProperties" ," setOptOut" ," setVersionName" ," setDomain" ," setDeviceId" ," setGlobalUserProperties" ," identify" ," clearUserProperties" ];
21- function p (e ){function t (t ){e[t]= function (){e ._q .push ([t].concat (Array .prototype .slice .call (arguments ,0 )));
22- }}for (var n= 0 ;n< u .length ;n++ ){t (u[n])}}p (n);e .amplitude = n})(window ,document );
16+ r .onload = function (){e .amplitude .runQueuedFunctions ()};var s= t .getElementsByTagName (" script" )[0 ];
17+ s .parentNode .insertBefore (r,s);function i (e ,t ){e .prototype [t]= function (){this ._q .push ([t].concat (Array .prototype .slice .call (arguments ,0 )));
18+ return this }}var o = function (){this ._q = [];return this };var a= [" add" ," append" ," clearAll" ," prepend" ," set" ," setOnce" ," unset" ];
19+ for (var u= 0 ;u< a .length ;u++ ){i (o,a[u])}n .Identify = o;var c = function (){this ._q = [];return this ;
20+ };var p= [" setProductId" ," setQuantity" ," setPrice" ," setRevenueType" ," setRevenueProperties" ];
21+ 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" ];
22+ function v (e ){function t (t ){e[t]= function (){e ._q .push ([t].concat (Array .prototype .slice .call (arguments ,0 )));
23+ }}for (var n= 0 ;n< d .length ;n++ ){t (d[n])}}v (n);e .amplitude = n})(window ,document );
2324
2425 amplitude .init (" YOUR_API_KEY_HERE" );
2526 </script >
0 commit comments