fix(01): CR-01 move gtag ID to runtime config env var

This commit is contained in:
2026-04-08 15:16:50 +02:00
parent 47c816d5c0
commit f50d4b0e6f
2 changed files with 10 additions and 2 deletions
+9 -2
View File
@@ -18,8 +18,15 @@ export default defineNuxtConfig({
locales: ['fr', 'en'],
defaultLocale: 'fr'
},
runtimeConfig: {
public: {
gtag: {
id: '',
},
},
},
gtag: {
id: 'G-CDVVNFY6MV',
enabled: false
id: '',
enabled: process.env.NODE_ENV === 'production',
}
})