From c00a74814822731cbf4e481876fea0b27d92a8bd Mon Sep 17 00:00:00 2001 From: Guilherme Biff Zarelli Date: Sun, 25 Oct 2026 15:04:23 -0300 Subject: [PATCH] fix(analytics): initialize GA directly in page HTML --- src/app/components/GoogleAnalytics.tsx | 22 ++++++++++++---------- src/app/layout.tsx | 4 +++- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/app/components/GoogleAnalytics.tsx b/src/app/components/GoogleAnalytics.tsx index 201493c..0cd6b72 100644 --- a/src/app/components/GoogleAnalytics.tsx +++ b/src/app/components/GoogleAnalytics.tsx @@ -1,20 +1,22 @@ -import Script from "next/script"; - const measurementId = process.env.NEXT_PUBLIC_GA_ID || "G-VWDH18RX25"; export default function GoogleAnalytics() { return ( <> - ); } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 574d3fd..75df5b8 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -75,8 +75,10 @@ export default function RootLayout({ }) { return ( - + + +