Last updated
Last updated
If you are using inside your application, you can simply pass the VueRouter instance as the third parameter of the Vue.use method and the plugin will start tracking all your pages automatically
By default, the tracking system uses pageviews with the following template
To be able to use screenview you need to first enable the feature and pass the app name using the plugin global settings
The automatic tracker system can use a custom template, instead of the default one: this will apply whether you are using pageviews or screenviews.
In this example, on every page change, we will send the exact properties inside our event.
The pageTrackerTemplate
method will have both the to
and the from
route instances passed as parameters.
pass routes path or routes name that you want to exclude from the automatic tracking