Cookie Consent for SvelteKit: CookieScript, GA4 and Client-Side Navigation
SvelteKit’s mix of server rendering and client-side navigation can complicate Cookie Consent and analytics. CookieScript, GA4, Google Consent Mode and GTM need to work together without missing page views, duplicating tracking or applying the wrong consent state as visitors move between routes.