Skip to content

Commit

Permalink
disable metrics for all environments except for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
egauzens committed Oct 9, 2024
1 parent af94150 commit eaf6da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ export default defineNuxtConfig({
SHOW_REHYDRATION_FEATURE: process.env.SHOW_REHYDRATION_FEATURE || 'false',
SHOW_DEVICE_TYPE: process.env.SHOW_DEVICE_TYPE || 'false',
gtm: {
id: process.env.GOOGLE_TAG_MANAGER_ID || 'GTM-TPT2CVCS',
id: process.env.GOOGLE_TAG_MANAGER_ID || '',
defer: true,
compatibility: false,
source: 'https://www.googletagmanager.com/gtm.js',
enabled: process.env.ROOT_URL == 'http://localhost:3000' ? false : true,
enabled: process.env.ROOT_URL == 'https://sparc.science' ? true : false,
debug: true,
loadScript: true,
enableRouterSync: true,
Expand Down

0 comments on commit eaf6da1

Please sign in to comment.