From 7a790f528b3ec7763fc901de81c8a4ce65279d57 Mon Sep 17 00:00:00 2001 From: Tom Hackshaw <42124348+et0and@users.noreply.github.com> Date: Sun, 12 Oct 2025 22:48:46 +0000 Subject: [PATCH] feat(web): move GA to next/third-parties --- apps/web/app/layout.tsx | 22 ++-------------------- apps/web/package.json | 1 + yarn.lock | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 20 deletions(-) diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index 2f41f8b6d83..bd8c64d88b1 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -5,16 +5,7 @@ import AppProviders from 'apps/web/app/AppProviders'; import localFont from 'next/font/local'; import DatadogInit from 'apps/web/app/datadog'; import { Inter, Inter_Tight, Roboto_Mono } from 'next/font/google'; - -const GOOGLE_ANALYTICS_ID = 'G-D1QGEV3B07'; -const googleAnalyticsInitScriptContent = { - __html: ` - window.dataLayer = window.dataLayer || []; - function gtag(){dataLayer.push(arguments);} - gtag('js', new Date()); - gtag('config', '${GOOGLE_ANALYTICS_ID}'); - `, -}; +import { GoogleAnalytics } from '@next/third-parties/google' const coinbaseDisplay = localFont({ src: [ @@ -220,16 +211,6 @@ export default function RootLayout({ children }: { children: React.ReactNode }) name="google-site-verification" content="lqwNRCxYlFLIcX9EiKAvE4k4ZT8JGpdWgehEIPA7y1Y" /> -