Skip to content

Commit 1bbf83d

Browse files
committed
update readme
1 parent c32464d commit 1bbf83d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,10 @@ If you are using [RequireJS](http://requirejs.org/) to load your Javascript file
364364
<script src='scripts/require.js'></script> <!-- loading RequireJS -->
365365
<script>
366366
require(['https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.9.0-min.gz.js'], function(amplitude) {
367-
amplitude.init('YOUR_API_KEY_HERE');
367+
amplitude.init('YOUR_API_KEY_HERE'); // replace YOUR_API_KEY_HERE with your Amplitude api key.
368368
window.amplitude = amplitude; // You can bind the amplitude object to window if you want to use it directly.
369+
370+
// once amplitude is loaded you can log events
369371
amplitude.logEvent('Clicked Link A');
370372
});
371373
</script>

0 commit comments

Comments
 (0)