docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Configure a Nuxt.js 2 application to automatically track page views when users navigate between routes.
Your implementation should:
UA-123456789-1Configure the analytics integration in nuxt.config.js:
export default {
buildModules: [
// Your configuration here
]
}/home to /about automatically records a page view for /about @test// Plugin should inject $ga instance globally
// this.$ga - available in Vue components
// ctx.$ga - available in Nuxt context (asyncData, plugins, middleware)
// Manual page tracking
this.$ga.page(route)Provides Google Analytics integration for Nuxt.js applications