GA4 wasn't built for HTML. Here's what goes wrong.
GA4's tracking code is a multi-line JavaScript snippet that must be copy-pasted into every single HTML file — no template system to help
Static HTML sites are inherently fast and lightweight, but GA's 45KB script doubles or triples the total JavaScript on the page
Without a build system or CMS, updating the GA tracking code means editing every HTML file manually
Cookie consent banners add JavaScript complexity to what should be the simplest possible website architecture
Built for speed, simplicity, and privacy.
One script tag — shorter than GA's snippet and easier to add to every HTML page
Sub-1KB keeps your static HTML site at the blazing-fast speed it was designed for
No cookies means no consent banner, which is critical for simple HTML sites that have no JavaScript to manage cookie state
Works with multi-page static sites, single-page HTML, and sites hosted anywhere — Netlify, Vercel, GitHub Pages, or a basic web server
Add StatFast to your HTML project with one snippet.
All the insights. None of the bloat.