Skip to main content

A form mixin that reports form errors as events to Google Analytics

Project description

A form mixin that reports form errors as events to Google Analytics.

NB: Only Universal Analytics is supported, which is now deprecated!


Install using pip install django-form-error-reporting.

See examples in tests/

class ReportedForm(GAErrorReportingMixin, Form):
    ga_tracking_id = 'UA-12345678-0'



Please report bugs and open pull requests on GitHub.

Use python test to run all tests.

Distribute a new version to PyPi by updating the version argument in and publishing a release in GitHub (this triggers a GitHub Actions workflow to automatically upload it). Alternatively, run python sdist bdist_wheel upload locally. Remember to update History.



Warn that only Universal Analytics is supported at present. Drop support for python 3.6 and 3.7. Add support for python 3.11. Add experimental support for Django versions 4.0 & 4.1. Improve testing and linting.


Add support for python 3.9 and 3.10. Improve testing and linting.


Drop support for python 3.5. Improve linting.


Drop python 2 support (now compatible with 3.5 - 3.8). Support Django 2.2 - 3.2 (both LTS).


Improve testing.


Fix versioning problem (module cannot be loaded until dependencies are installed).


Report user language preference. Better IP address tracking for proxied requests. Add error logging for failed requests. Fix large payload bug.


Ignore all errors when reporting to Google Analytics.


Add python 2 compatibility.


Add convenience form mixin to get Google Analytics ids from request and settings.


Original release.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-form-error-reporting-0.11.tar.gz (5.8 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page