From aa9770271ebfd9a50b107e0cda71b494b54f2a5a Mon Sep 17 00:00:00 2001 From: oceans404 Date: Wed, 15 Jul 2026 11:33:04 -0700 Subject: [PATCH] chore(site): update analytics to new GTM container and add GA4 Replace GTM container GTM-KCNDDL3 with GTM-KPV99TKH and add GA4 (G-6PQ8C6FJSR) via @next/third-parties. Both stay behind the existing production-only GA_TRACKING_ENABLED gate. Co-Authored-By: Claude Opus 4.8 (1M context) --- site/src/app/layout.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/site/src/app/layout.tsx b/site/src/app/layout.tsx index cda37fe..26f5b1e 100644 --- a/site/src/app/layout.tsx +++ b/site/src/app/layout.tsx @@ -1,5 +1,5 @@ import type { Metadata, Viewport } from "next"; -import { GoogleTagManager } from "@next/third-parties/google"; +import { GoogleTagManager, GoogleAnalytics } from "@next/third-parties/google"; import "@stellar/design-system/build/styles.min.css"; import "@/styles/globals.scss"; @@ -74,7 +74,12 @@ export default function RootLayout({
{children}
- {GA_TRACKING_ENABLED && } + {GA_TRACKING_ENABLED && ( + <> + + + + )} );