@@ -12,7 +12,7 @@ This Readme will guide you through using Amplitude's Javascript SDK to track use
12
12
``` html
13
13
<script type =" text/javascript" >
14
14
(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.0 -min.gz.js" ;
15
+ r .async = true ;r .src = " https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.0.1 -min.gz.js" ;
16
16
r .onload = function (){e .amplitude .runQueuedFunctions ()};var i= t .getElementsByTagName (" script" )[0 ];
17
17
i .parentNode .insertBefore (r,i);function s (e ,t ){e .prototype [t]= function (){this ._q .push ([t].concat (Array .prototype .slice .call (arguments ,0 )));
18
18
return this }}var o = function (){this ._q = [];return this };var a= [" add" ," append" ," clearAll" ," prepend" ," set" ," setOnce" ," unset" ];
@@ -435,7 +435,7 @@ If you are using [RequireJS](http://requirejs.org/) to load your Javascript file
435
435
``` html
436
436
<script src =' scripts/require.js' ></script > <!-- loading RequireJS -->
437
437
<script >
438
- require ([' https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.0.0 -min.gz.js' ], function (amplitude ) {
438
+ require ([' https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.0.1 -min.gz.js' ], function (amplitude ) {
439
439
amplitude .init (' YOUR_API_KEY_HERE' ); // replace YOUR_API_KEY_HERE with your Amplitude api key.
440
440
window .amplitude = amplitude; // You can bind the amplitude object to window if you want to use it directly.
441
441
amplitude .getInstance ().logEvent (' Clicked Link A' );
@@ -449,7 +449,7 @@ You can also define the path in your RequireJS configuration like so:
449
449
<script >
450
450
requirejs .config ({
451
451
paths: {
452
- ' amplitude' : ' https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.0.0 -min.gz'
452
+ ' amplitude' : ' https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.0.1 -min.gz'
453
453
}
454
454
});
455
455
0 commit comments