Closed guiwestrup closed 3 years ago
I'm having the same problem. Changed to manual because I want to use custom dimensions. Duplicate.
How can i deactivate the automatic tracking?
I already use the manual way, in method mounted():
this.$ga.page({ page: this.$router.currentRoute.path, title: this.seo.title, location: window.location.href })
I uninstalled this module and installed the original vue-analytics, which solved this problem. https://github.com/MatteoGabriele/vue-analytics https://matteogabriele.gitbooks.io/vue-analytics/content/
I uninstalled this module and installed the original vue-analytics, which solved this problem. https://github.com/MatteoGabriele/vue-analytics https://matteogabriele.gitbooks.io/vue-analytics/content/
This fixed
To avoid duplication of routes, you can add the ignoreRoutes attribute to your configuration.
googleAnalytics: { ignoreRoutes: ['route_name', 'path_of_route'] },
this will ignore these routes during the automatic push. It will therefore be necessary to manage it manually for these paths Ex :
this.$ga.page(this.$route.fullPath)
I'm using in pages the this.$ga.page() on the mounted() function, every page change he's shoot two pageviews: Using this plugin for debug: https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna