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!
Usage
Install using pip install django-form-error-reporting.
See examples in tests/forms.py
class ReportedForm(GAErrorReportingMixin, Form):
ga_tracking_id = 'UA-12345678-0'
...
Development
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.
History
- 0.11
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.
- 0.10
Add support for python 3.9 and 3.10. Improve testing and linting.
- 0.9
Drop support for python 3.5. Improve linting.
- 0.8
Drop python 2 support (now compatible with 3.5 - 3.8). Support Django 2.2 - 3.2 (both LTS).
- 0.7
Improve testing.
- 0.6
Fix versioning problem (module cannot be loaded until dependencies are installed).
- 0.5
Report user language preference. Better IP address tracking for proxied requests. Add error logging for failed requests. Fix large payload bug.
- 0.4
Ignore all errors when reporting to Google Analytics.
- 0.3
Add python 2 compatibility.
- 0.2
Add convenience form mixin to get Google Analytics ids from request and settings.
- 0.1
Original release.
Copyright
Copyright (C) 2023 HM Government (Ministry of Justice Digital & Technology). See LICENSE.txt for further details.
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
Built Distribution
Hashes for django-form-error-reporting-0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc2d11545f13e8426255f723ea8b5274178bc214005a6577c971bcfdfd9a16c |
|
MD5 | 8590874c18fc7e628973651b01ac353d |
|
BLAKE2b-256 | 4aa2cef6b576c5da8be30fb4b0a08dc74c2352063612c2cb82eca654f040bda1 |
Hashes for django_form_error_reporting-0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb9113bd0211f63d5d58ed08c71c26c258b181bc11da13911de050cd3223e596 |
|
MD5 | b786b3b5fbbf9c9b21dc91d637a7281f |
|
BLAKE2b-256 | c3e5171d37f155580ea7170f0c9f11ae65a2d3e661bcb1fca7401205f4874297 |