Vue.js is a library for building interactive web interfaces. The goal of Vue.js is to provide the benefits of reactive data binding view components with an API that is as simple as possible. Atatus integrates into Vue.js with just a few lines of code.

Agent Installation

For NPM and YARN

If you want to include Atatus script with your source, you can add it through package managers such as YARN and NPM. Install atatus-spa from the npm or yarn registry:
Import and initialize atatus to monitor your application:

For 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.
Replace the YOUR_API_KEY string with the API Key that is assigned for your project. You’re done. For more advanced options on installing your monitoring code, view customizing agent.

Test Integration

To verify that your integration is working, call notify() in your application:
Within few seconds, performance metrics and errors will appear in your project dashboard.

Track exceptions in Vue 3 apps

To collect errors from Vue 3 app, you need to set up the app.config.errorHandler handler for your app.

Track exceptions in Vue 2 apps

To collect errors from Vue 2 app, you need to set up the Vue.config.errorHandler handler for your app.