purchase event not being sent on successful webform submission

Created on 6 December 2023, 12 months ago
Updated 8 June 2024, 5 months ago

Problem/Motivation

Google Tag provides a custom webform submission handler called "Google Tag: Purchase event". Adding this handler to a webform should result in a purchase event being emitted to the dataLayer upon successful form submission.

However, this event is never emitted.

Steps to reproduce

  1. Enable the custom webform submission handler "Google Tag: Purchase event": /admin/structure/webform/config/handlers
  2. Add the handler to a webform, for example "Contact": /admin/structure/webform/manage/contact/handlers
  3. Monitor events: via Google Tag Manager Preview and Debug Mode or Google Analytics 4 Debug View
  4. Open Contact form and complete successful submission
  5. Note that the purchase event does not appear
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024