Get started
vue-gtag documentation page
Install
npm install vue-gtagInstallation
import { configure } from "vue-gtag";
configure({
tagId: "GA_MEASUREMENT_ID"
})import { createApp } from 'vue'
import { createGtag } from "vue-gtag";
const gtag = createGtag({
tagId: "GA_MEASUREMENT_ID"
})
const app = createApp({ ... })
app.use(gtag)
Initial config parameters
Manual mode
Last updated