GTM 'Wait for Tags' settings breaking AJAX forms

Why Google Tag Manager's native form triggers break modern React and AJAX checkouts, causing double submissions, and how to fix it with the data layer.

Your checkout relies on a modern React front end. The user fills in their details, clicks the button, and the system processes the order without reloading the page. The user gets a seamless experience. The marketing agency gets entirely empty reports, because the Google Tag Manager configuration just silently killed the tracking.

Tag Manager triggers respond to browser events. When you rely on built-in settings designed for classic websites, they collide with how modern JavaScript frameworks manage state. The dashboard misses the conversion. You get a fractured view of your most important commercial interactions.

We check what happens all the way through the form submission. Does the trigger intercept the submit event? Does it attempt to pause the browser? We follow the data from the button click to the moment the API actually returns a success message. Then we fix the timing conflicts and fragile DOM listeners along the way.

This matters when those invisible failures dictate your advertising spend. If your campaigns optimise towards zero conversions because a native trigger setting misunderstood your checkout architecture, you stop funding the channels that actually work.

How native triggers break modern forms

Historically, submitting a web form meant sending a request and waiting for the browser to load an entirely new page. Google Tag Manager's native Form Submission trigger was built for this era. It includes two features designed to make tracking reliable: Check Validation and Wait for Tags. On a modern Single Page Application built with React or Vue, these features do exactly the opposite.

When Check Validation is enabled, Tag Manager looks to see if the default submit event was prevented. If it was, the system assumes the form failed validation and refuses to fire the tracking tag. In a React application, developers deliberately prevent the default submit event on every form to stop the page from reloading. Tag Manager sees standard React behaviour, misinterprets it as an error, and silently abandons the tracking.

Wait for Tags is equally destructive. When enabled, Tag Manager intercepts the submit event, pauses the browser for up to two seconds to ensure tags fire, and then manually re-triggers the submission. In a modern framework, this manual re-triggering can cause double API calls. It bypasses the framework's internal state management, breaking the loading spinners and error handling your developers carefully built.

Why clicking the button is not a conversion

Agencies often attempt to bypass these form conflicts by tracking the button click instead. They set a trigger to fire whenever someone clicks an element with the text "Submit Order".

Clicking a button is a physical action, not a commercial outcome. If the user forgets to enter their credit card number, the form will fail. The button was still clicked. The dashboard gets a recorded conversion. You get absolutely nothing.

When your dashboard says you have generated fifty leads, there should be fifty actual records in your database. Your customers did not suddenly start generating phantom orders. The tracking simply confused an attempt with a success.

The cost of fragile form triggers

We evaluate the impact of these configuration conflicts by looking at the gap between the recorded attempts and the actual commercial results.

What the report saysWhat is happening underneathWhat it does to your spend
Form conversions drop to zeroReact prevented the default event, tripping the Check Validation rule.You assume your landing page is broken and pause the campaign.
Duplicate orders appearWait for Tags manually re-triggered the submission in the background.You inflate your revenue metrics and distort your attribution.
High conversion rate, empty CRMThe trigger fires on a button click regardless of form errors.You optimise your bidding algorithms to find more people who fail to complete the form.
Loading spinners freezeGTM intercepts the event and breaks the framework's internal state.You degrade the user experience at the most critical point of the journey.
Missing checkout stepsAJAX requests complete before the native trigger can capture the data.You lose visibility into where users abandon the process.

The data layer push solution

To track modern forms accurately, the tracking architecture has to decouple from native DOM events. The solution involves abandoning Tag Manager's built-in Form Submission trigger entirely.

Instead of asking Tag Manager to guess when a form succeeds, your development team manually notifies Tag Manager via a Data Layer push. When the user clicks submit, the React application sends the data to your server. Only when the server responds with a clear success message does the application push a custom event, such as form_submit_success, into the Data Layer.

This configuration guarantees accuracy. It never touches the browser's default behaviour, it never pauses the submission, and it only fires when a genuine commercial outcome has occurred.

Diagnosing the tracking conflict

When the analytics data contradicts the database, we check the specific trigger configurations.

Diagnostic symptomUnderlying causeRequired fix
Zero tracking on React formsCheck Validation interprets preventDefault() as an error.Disable the native Form Submission trigger entirely.
Double API submissionsWait for Tags intercepts and manually restarts the event.Rely on the application to handle state, not the tag manager.
Phantom conversionsTracking is tied to a CSS class or button text click.Move tracking to a Data Layer push on API success.
Unreliable AJAX trackingNative listeners cannot read dynamic DOM changes.Define an explicit event contract between the application and the container.

Frequently asked questions

Do we need a developer to implement the Data Layer push?

Yes. Pushing an event to the Data Layer after a successful server response requires adding a few lines of JavaScript to the application's form handler. It cannot be done reliably from within Tag Manager itself.

Can we just turn off Check Validation and keep using the native trigger?

Turning off Check Validation means the tag will fire every time the submit event triggers, regardless of whether the form actually succeeded or returned a validation error. You will end up recording failures as conversions.

Does this apply to standard WordPress or Shopify forms?

If the form relies on AJAX to submit data without reloading the page, yes. While some legacy forms still use traditional multi-page submissions, any modern checkout or lead flow that keeps the user on the same page will suffer from these native trigger conflicts.

What if we use a third-party form embed like HubSpot?

Most enterprise form providers offer built-in listeners or window events specifically designed to broadcast successful submissions to Tag Manager. You should use those dedicated listeners rather than attempting to attach a generic form trigger to the embedded iframe.

Related reading