Skip to content

Commit

Permalink
Merge branch 'main' into issue-5310
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarsen136 authored Mar 21, 2023
2 parents 055c5ab + 423181a commit 0e82378
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/vue-gtag.client.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import VueGtag from 'vue-gtag-next'
import VueGtag, { trackRouter } from 'vue-gtag-next'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueGtag, {
property: {
id: nuxtApp.$config.public.googleAnalyticsId,
isEnabled: false,
// isEnabled: false,
},
})
trackRouter(useRouter())
})

0 comments on commit 0e82378

Please sign in to comment.