contact
Contents
form response
Priority low
When the user clicks "Send message" on the contact form.
This event is tracked by the form_tracker.
Examples
Data sent to the dataLayer
You can also view our complete schemas.
Data reports
- GA4 report for form_response events (access required)
- Looker studio report for form_response events (access required)
form error
Priority low
When the server's form validation fails, and returns the user to the contact form with errors.
This event is tracked by the auto_tracker.
Examples
Data sent to the dataLayer
- event: event_data
- event_data:
- action: error
- event_name: form_error
- section: Comma separated list of form inputs that errored, e.g. 'What's it to do with?, What are the details?, If you want a reply (optional), If you want a reply (optional)'
- text: Comma separated list of the error messages, e.g. 'The link field cannot be empty, The message field cannot be empty, The email address must be valid, The name field cannot be empty'
- tool_name: Contact GOV.UK
- type: contact
You can also view our complete schemas.
Data reports
- GA4 report for form_error events (access required)
- Looker studio report for form_error events (access required)
form complete
Priority low
When the submission has succeeded, and they are now on the "Thank you" page.
This event is tracked by the auto_tracker.
Examples
Data sent to the dataLayer
- event: event_data
- event_data:
You can also view our complete schemas.
Data reports
- GA4 report for form_error events (access required)
- Looker studio report for form_error events (access required)