GA4 wasn't built for Next.js. Here's what goes wrong.
GA's 45KB script tanks your Lighthouse score and hurts Core Web Vitals — especially LCP and TBT — in SSR and ISR pages
Configuring GA with Next.js requires the next/script component, environment variables, and often a custom _app or layout wrapper that's easy to get wrong
GA4's event-based model doesn't automatically track client-side route changes in Next.js SPAs, so you need extra code with usePathname and useEffect
Cookie consent banners break the clean UI that Next.js developers spend hours perfecting, and GDPR compliance adds legal overhead
Built for speed, simplicity, and privacy.
A sub-1KB script that adds zero measurable impact to your Lighthouse score — your Core Web Vitals stay green
Automatic client-side route tracking without any custom hooks or router event listeners
No cookies, no consent banners — fully GDPR, CCPA, and PECR compliant out of the box
AI-powered insights that tell you in plain English what changed, so you skip the GA4 learning curve entirely
Add StatFast to your Next.js project with one snippet.
All the insights. None of the bloat.