Skip to content

Commit

Permalink
🧪 vue-gtag-next plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo committed Mar 21, 2023
1 parent b17bebe commit 27ee2b0
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 27ee2b0

Please sign in to comment.