Skip to content

Commit

Permalink
Add action to GA4 form event error
Browse files Browse the repository at this point in the history
- adds a missing attribute for 'action' to the GA4 tracking event on the contact form error message ('error')
  • Loading branch information
andysellick committed Mar 28, 2024
1 parent f90082a commit de5383a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/contact/govuk/new.html.erb
Expand Up @@ -45,6 +45,7 @@
ga4_auto_tracker_json = {
event_name: 'form_error',
type: 'contact',
action: 'error',
text: @errors.values.map { | error_hash | error_hash.first }.join(', '),
section: ga4_erroring_sections,
tool_name: ga4_english_strings[:page_title]
Expand Down

0 comments on commit de5383a

Please sign in to comment.