Using as plugin with Nuxt and record each page view
dcrabbeYapily opened this issue · 1 comments
dcrabbeYapily commented
Description
Trying to setup page tracking and eventually event tracking for a Nuxt project.
I can see a user in Google analytics but can't setup any code (or find documentation) that will track pages/routes etc.
When
Environment
vue-gtag@1.16.1
macOS, Chrom
Its a private Nuxt application
import Vue from 'vue';
import VueGtag from 'vue-gtag';
const gid = 'G-123';
Vue.use(VueGtag, {
config: { id: gid },
bootstrap: 'true',
appName: 'xxx',
enabled: true,
pageTrackerScreenviewEnabled: true,
});
How can I setup page/rout tracking and events?
thanks.
TitanFighter commented
https://matteo-gabriele.gitbook.io/vue-gtag/#initial-config-parameters
Try
params: {
send_page_view: true
}