GA4 wasn't built for React. Here's what goes wrong.
The react-ga4 library requires manual initialization, route change listeners, and hooks into React Router — adding boilerplate to every project
React StrictMode double-fires useEffect hooks, causing duplicate GA pageview events that skew your data
GA doesn't automatically track client-side route changes in React SPAs — you need custom code for every navigation event
GA4's measurement protocol and event model add unnecessary complexity for React developers who just want page-level analytics
Built for speed, simplicity, and privacy.
Zero React code needed — the script tag handles SPA route changes automatically via the History API
No double-counting in StrictMode, no race conditions, no useEffect cleanup issues
Works with React Router, TanStack Router, Wouter, or any routing library without configuration
AI insights tell you what matters without needing to learn GA4's event-based data model
Add StatFast to your React project with one snippet.
All the insights. None of the bloat.