DEPRECATED: We have decided to not update this package to support GA4 and this is no longer maintained.
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.
To work on changes to this library, it’s recommended to install it in editable mode into a virtual environment, i.e. pip install --editable .
Use python -m tests to run all tests locally. Alternatively, you can use tox if you have multiple python versions.
[Only for GitHub team members] Distribute a new version to PyPI by:
updating the VERSION tuple in form_error_reporting.py
adding a note to the History
publishing a release on GitHub which triggers an upload to PyPI; alternatively, run python -m build; twine upload dist/* locally
History
- 0.12
Migrated test, build and release processes away from deprecated setuptools commands. No significant library changes.
- 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.
Release files for django-form-error-reporting 0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-form-error-reporting-0.12.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_form_error_reporting-0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / django-form-error-reporting-0.12.tar.gz
| Download URL | django-form-error-reporting-0.12.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea83aab7da052eb6db71df616d6080a90db87b5a30deb904cbbd4098cbc3af83
|
|
BLAKE2b-256 checksum How to use checksums |
226bdb45f567749b751b1bda075fb7f9f38281a003629cdccd16b6bb9d49314b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / django_form_error_reporting-0.12-py3-none-any.whl
| Download URL | django_form_error_reporting-0.12-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e4a906788134f67233ae325a69a3a9cf69a3bda9db5822fdfad4fb80fabbc02
|
|
BLAKE2b-256 checksum How to use checksums |
e583e7c53793d4986616d7ae34fb1e56c5d4f72cf7afaa09689f56f7b5835584
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|