If you don't want to monitor SPA routes, then you can use our general script as follows.
Keep on mind:
- For non SPA application, use a script
atatus-js
- To monitor SPA routes, use a script
atatus-spa
With CDN
Copy & paste this code into the <head>
tag of your html (every page) to start using Atatus on your site. Please make sure that you add it before other script tags as well.
copy
<script src="//dmc1acwvwny3.cloudfront.net/atatus.js"></script>
<script type="text/javascript">atatus.config('YOUR_API_KEY').install();</script>
Replace the YOUR_API_KEY
string with the API Key that is assigned for your project. You're done.
With NPM
Install atatus-js from the npm registry:
copynpm install --save atatus-js
Import and initialize atatus to monitor your application:
copyimport * as atatus from 'atatus-js'; atatus.config('YOUR_API_KEY').install();