Method for disabling tracking on localhost? #20
-
Is there a way to quickly disable this plugin for localhost? Otherwise it's working great! The first gtag implementation that actually shows the correct page titles. Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
johannschopplich
Oct 22, 2023
Replies: 2 comments
-
What I did was to keep the |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can unset the Gtag ID during development: // `nuxt.config.ts`
export default defineNuxtConfig({
modules: ["nuxt-gtag"],
$development: {
gtag: {
id: undefined,
},
},
gtag: {
id: "G-XXXXXXXXXX",
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
johannschopplich
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can unset the Gtag ID during development: