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.

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

https://github.com/ministryofjustice/django-form-error-reporting/workflows/Run%20tests/badge.svg?branch=main

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.

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.10.tar.gz (5.2 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page