From a464ecd0fa2fdaee811e2c5896754d0cdae1540f Mon Sep 17 00:00:00 2001 From: Evandro Fonseca Junior Date: Tue, 20 Jan 2026 21:31:48 -0300 Subject: [PATCH] refactor(analytics): update Google Analytics routes and enhance script handling - Renamed and updated Google Analytics script and collection endpoints in the Next.js configuration for better clarity and security. - Adjusted the GoogleAnalytics component to reflect new script sources and transport URLs, improving tracking accuracy and data handling. - Removed unnecessary meta tags and preload links in the layout component to streamline the codebase. --- app/components/GoogleAnalytics.tsx | 8 +++++--- app/layout.tsx | 4 ---- next.config.ts | 8 ++++---- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/app/components/GoogleAnalytics.tsx b/app/components/GoogleAnalytics.tsx index c4f09af..7bd46f6 100644 --- a/app/components/GoogleAnalytics.tsx +++ b/app/components/GoogleAnalytics.tsx @@ -8,7 +8,7 @@ export default function GoogleAnalytics() { return ( <> diff --git a/app/layout.tsx b/app/layout.tsx index c221798..faf20a1 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -166,15 +166,11 @@ export default function RootLayout({ children }: Readonly) { {/* Theme color for mobile browsers */} - - - {/* Performance hints */} -