GA4 wasn't built for Django. Here's what goes wrong.
The django-analytical package requires installation, INSTALLED_APPS configuration, template tags, context processors, and settings variables — too much ceremony for visitor counts
Django's template inheritance system means GA code often ends up duplicated or missing across different base templates
GA4 doesn't play well with Django's server-rendered pages — you need JavaScript event tracking for form submissions and AJAX views
Managing GA tracking IDs across Django's settings files (development.py, production.py, staging.py) adds configuration overhead
Built for speed, simplicity, and privacy.
One line in your base.html template — no pip install, no INSTALLED_APPS, no context processor
Works with Django's template inheritance perfectly — add once to base.html, every page is tracked
Same script tag across all environments — no settings.py management
Privacy-friendly by default, which simplifies compliance for Django apps handling user data
Add StatFast to your Django project with one snippet.
All the insights. None of the bloat.