@@ -12,7 +12,7 @@ This Readme will guide you through using Amplitude's Javascript SDK to track use
1212 ``` html
1313 <script type =" text/javascript" >
1414 (function (e ,t ){var n= e .amplitude || {_q: [],_iq: {}};var r= t .createElement (" script" );r .type = " text/javascript" ;
15- r .async = true ;r .src = " https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.0.2 -min.gz.js" ;
15+ r .async = true ;r .src = " https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.1.0 -min.gz.js" ;
1616 r .onload = function (){e .amplitude .runQueuedFunctions ()};var i= t .getElementsByTagName (" script" )[0 ];
1717 i .parentNode .insertBefore (r,i);function s (e ,t ){e .prototype [t]= function (){this ._q .push ([t].concat (Array .prototype .slice .call (arguments ,0 )));
1818 return this }}var o = function (){this ._q = [];return this };var a= [" add" ," append" ," clearAll" ," prepend" ," set" ," setOnce" ," unset" ];
@@ -436,7 +436,7 @@ If you are using [RequireJS](http://requirejs.org/) to load your Javascript file
436436``` html
437437 <script src =' scripts/require.js' ></script > <!-- loading RequireJS -->
438438 <script >
439- require ([' https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.0.2 -min.gz.js' ], function (amplitude ) {
439+ require ([' https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.1.0 -min.gz.js' ], function (amplitude ) {
440440 amplitude .init (' YOUR_API_KEY_HERE' ); // replace YOUR_API_KEY_HERE with your Amplitude api key.
441441 window .amplitude = amplitude; // You can bind the amplitude object to window if you want to use it directly.
442442 amplitude .getInstance ().logEvent (' Clicked Link A' );
@@ -450,7 +450,7 @@ You can also define the path in your RequireJS configuration like so:
450450 <script >
451451 requirejs .config ({
452452 paths: {
453- ' amplitude' : ' https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.0.2 -min.gz'
453+ ' amplitude' : ' https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.1.0 -min.gz'
454454 }
455455 });
456456
0 commit comments