From 340aa93c4e46028d0a8ad8f8bb2f7a2d15468ac7 Mon Sep 17 00:00:00 2001 From: soufiane Date: Fri, 5 Dec 2025 13:46:28 +0100 Subject: [PATCH] fix: use beforeInteractive strategy for GTM and GA4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed GTM script from afterInteractive to beforeInteractive - Changed GA4 scripts to beforeInteractive for earlier loading - Hardcoded IDs to avoid template literal issues 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/layout.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 5c348da..6de5a97 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -45,8 +45,8 @@ export default function RootLayout({ children }: { children: React.ReactNode }) return ( - {/* Google Tag Manager */} - {/* Google Analytics 4 */} @@ -78,7 +78,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }) {/* Google Tag Manager (noscript) */}