From b1948af9ddde7228963794a4c767077c0d32b9e7 Mon Sep 17 00:00:00 2001 From: Nurul Sundarani Date: Thu, 18 Jun 2026 21:31:26 +0530 Subject: [PATCH] fix(analytics): load GTM via external script so CookieYes can activate it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GTM bootstrap was an inline `type="text/plain"` script. CookieYes only reliably re-activates external `src` scripts on consent — inline blocked scripts are left inert and never execute, so GTM never loaded and GA4 received no data even after visitors accepted analytics cookies. Split the loader into: - an inline bootstrap that always runs (dataLayer init + site_section + gtm.start) — sets no cookies and makes no network requests, safe pre-consent; - the GTM library loaded as an external, consent-gated `