Skip to content

Commit

Permalink
hardcode prod GTM id while we work out a better solution (#3013)
Browse files Browse the repository at this point in the history
After bugs were found in PR 3001, this will point all environments to GTM. GTM will handle setting GA ID based on hostname
  • Loading branch information
doug-s-nava authored Nov 25, 2024
1 parent 749852c commit 662f4cc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frontend/src/constants/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ const {
API_URL,
API_AUTH_TOKEN = "",
NEXT_PUBLIC_BASE_URL,
// for deployed envs it will come from ECS task def env var
// it will not be populated locally, or in Jest or E2E tests
// if it is needed locally or tests, add it in .env.local or command line
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID = "",
} = process.env;

// home for all interpreted server side environment variables
Expand All @@ -28,5 +24,5 @@ export const environment: { [key: string]: string } = {
API_URL: API_URL || "",
API_AUTH_TOKEN,
NEXT_PUBLIC_BASE_URL: NEXT_PUBLIC_BASE_URL || "http://localhost:3000",
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID,
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID: "GTM-MV57HMHS",
};

0 comments on commit 662f4cc

Please sign in to comment.