Webform preview button triggers dataLayer push

Created on 21 June 2024, 3 months ago

Problem/Motivation

After enabling the dataLayer Webform module I can see that it is pushed when clicking on the preview button as well as submit button.
It should only happening once as it will corrupt the reports.

Steps to reproduce

Create webform with various pages.
Enable preview.
Add dataLayer Webform module to Settings > Handlers and configure.
Verify dataLayer push when clicking on Preview button in the form (GTM preview shows it clearly).

Proposed resolution

Ideally having a setting under Settings > Emails/Handlers > dataLayer Webform configuration to choose which button class will trigger the dataLayer push.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

User interface

Created by

🇦🇺Australia Jemy09

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

Comments & Activities

Production build 0.71.5 2024