GA4 wasn't built for Svelte. Here's what goes wrong.
GA4's 45KB script adds more JavaScript than many entire Svelte apps ship — completely defeating the purpose of using a compiled framework
SvelteKit's file-based routing and server-side rendering require special handling for GA page tracking with afterNavigate or beforeNavigate
There's no official svelte-ga package — most developers cobble together their own solution with onMount and page stores
Svelte's tiny bundle size advantage disappears when you add GA's heavy tracking script to the page
Built for speed, simplicity, and privacy.
Sub-1KB script that respects Svelte's lightweight philosophy — your total page weight stays minimal
Automatic route tracking in SvelteKit without afterNavigate hooks or page store subscriptions
No npm package needed — just a script tag in app.html, keeping your node_modules lean
Privacy-first tracking that aligns with the Svelte community's values around user respect and simplicity
Add StatFast to your Svelte project with one snippet.
All the insights. None of the bloat.