A form mixin that reports form errors as events to Google Analytics
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/forms.py
class ReportedForm(GAErrorReportingMixin, Form): ga_tracking_id = 'UA-12345678-0' ...
Please report bugs and open pull requests on GitHub.
Use python setup.py test to run all tests.
Distribute a new version to PyPi by updating the version argument in setup.py:setup and publishing a release in GitHub (this triggers a GitHub Actions workflow to automatically upload it). Alternatively, run python setup.py 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).
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.
Copyright (C) 2023 HM Government (Ministry of Justice Digital & Technology). See LICENSE.txt for further details.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for django-form-error-reporting-0.11.tar.gz
Hashes for django_form_error_reporting-0.11-py3-none-any.whl