From eaf6da1a71dfba5f7b7df5fd5f5700df72e36705 Mon Sep 17 00:00:00 2001 From: Eric Gauzens Date: Wed, 9 Oct 2024 13:46:29 -0400 Subject: [PATCH] disable metrics for all environments except for prod --- nuxt.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 73c41c6d..25b540fe 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -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,