Closed hslee2008 closed 9 months ago
What about you keep the id
property if the module configuration empty and add the Gtag ID via a runtime config variable only in production? Does this solve your issue?
// Only add this in production
NUXT_PUBLIC_GTAG_ID=G-XXXXXXXXXX
Oh! I guess that is the best way. Thank you.
Describe the feature
Maybe in
nuxt.config.ts
, definedisableDuringDevelopment
module option to disable gtag tracking during development.I'm not sure if there is any other ways of doing this, so if you know how to disable tracking with another way, please tell me.
Additional information
Final checks