We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c32464d commit 1bbf83dCopy full SHA for 1bbf83d
README.md
@@ -364,8 +364,10 @@ If you are using [RequireJS](http://requirejs.org/) to load your Javascript file
364
<script src='scripts/require.js'></script> <!-- loading RequireJS -->
365
<script>
366
require(['https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.9.0-min.gz.js'], function(amplitude) {
367
- amplitude.init('YOUR_API_KEY_HERE');
+ amplitude.init('YOUR_API_KEY_HERE'); // replace YOUR_API_KEY_HERE with your Amplitude api key.
368
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
371
amplitude.logEvent('Clicked Link A');
372
});
373
</script>
0 commit comments