diff --git a/packages/ui/src/components/google-tag-manager.tsx b/packages/ui/src/components/google-tag-manager.tsx index b98bad5ce8..244f93af11 100644 --- a/packages/ui/src/components/google-tag-manager.tsx +++ b/packages/ui/src/components/google-tag-manager.tsx @@ -1,32 +1,6 @@ -/** - * Consent-gated Google Tag Manager loader. - * - * Split into two parts on purpose: - * - * 1. An inline bootstrap that always runs. It only initialises `dataLayer` - * (a plain in-memory array) and pushes the page section + GTM start event. - * This sets no cookies and makes no network requests, so it is safe to run - * before consent. - * 2. The GTM library itself, loaded as an EXTERNAL `src` script tagged for - * CookieYes' analytics category. CookieYes only reliably re-activates - * external `src` scripts after consent — an inline `type="text/plain"` GTM - * bootstrap is left inert and never executes, so it must NOT be used here. - * This mirrors the working external-`src` pattern used for Tolt/PromptWatch. - * See https://www.cookieyes.com/documentation/implement-prior-consent-using-cookieyes/ - * - * Nothing contacts Google until CookieYes activates the external script once the - * visitor grants analytics consent (GDPR/ePrivacy compliant). No `