How to Track Form Submissions Reliably (and Why Thank-You Pages and Click Triggers Miss Leads)
Your ad platform says 80 leads, your CRM says 52, and nobody can explain the gap. This guide explains the common ways form tracking goes wrong, from click triggers to thank-you page refreshes, and how to track submissions on confirmed success so every number lines up.
In short
Track a form submission at the moment the server confirms it succeeded, not when the button is clicked or a page loads. In practice that means firing your conversion from the form's success callback or a data layer event pushed on success, with a unique ID for deduplication, then testing valid, invalid and repeated submissions before you trust the numbers.
Form fills are the conversion most lead generation accounts optimise for, and they are also the conversion most often tracked badly. The symptoms are familiar: ad platforms report more leads than the CRM received, or fewer; numbers jump after a site update; a campaign looks great until sales asks where the leads are. Almost all of it comes down to when and how the conversion fires. This guide explains the common methods, where each fails, and how to track submissions reliably.
Four ways to detect a form submission
| Method | How it works | Main weakness |
|---|---|---|
| Button click trigger | Fires when the submit button is clicked | Counts failed validation, double clicks and abandoned attempts |
| Form submit trigger | Listens for the browser's submit event | Misses forms that submit through JavaScript or sit in iframes |
| Thank-you page view | Fires when the confirmation URL loads | Counts refreshes, bookmarks and direct visits; fails if there is no separate page |
| Success callback or data layer event | Fires after the server confirms the submission | Needs developer access or a form tool that exposes a callback |
The first three are popular because they need no code. The fourth is the one that matches what your CRM records, because it fires at the same moment the lead is created.
Why click triggers over-count
A click on the submit button is an attempt, not a lead. If a required field is empty, the email is invalid, or a spam check fails, the visitor clicked but nothing was submitted. People also double click, or click, fix an error and click again. Each of those fires a click-based conversion. The result is a lead count that looks healthy in the ad platform and inflated cost-per-lead efficiency that does not survive contact with the CRM. Bidding algorithms then optimise for people who click submit, which is not the same as people who become leads.
Why submit triggers under-count
Google Tag Manager's Form Submission trigger listens for the browser's standard submit event. Its Check Validation option makes it fire only when the form is successfully sent, which is better than a click trigger. But many modern forms never send a standard submission: a JavaScript handler intercepts the submit, sends the data in the background and shows a message without loading a new page. Depending on how that handler is written, the trigger may never fire, or may fire even when the server rejects the data. Forms embedded from other services inside an iframe are invisible to it altogether, which is covered in our guide to tracking embedded forms and iframes.
Why thank-you pages are not a complete answer
Firing a conversion when a confirmation page loads is simple and still widely used. It fails in predictable ways: visitors refresh the page, bookmark it, return through the back button, or land on it from a search engine if it is indexed. Each visit counts as another conversion unless the platform deduplicates. And if your form shows an inline success message instead of redirecting, there is no page to track. Our comparison of thank-you page and event-based conversion tracking covers when a confirmation page is still fine.
The reliable pattern: fire on confirmed success
- 1Find the moment of truth. This is when your backend or form service accepts the submission and returns a success response.
- 2At that moment, push a data layer event such as generate_lead with the form name and a unique submission ID, or call your tracker directly from the form's success callback.
- 3Trigger every conversion tag from that one event: GA4, Meta, TikTok and anything else. One event, many destinations, the same ID everywhere.
- 4Send the submission ID as the event ID or transaction ID so platforms that deduplicate can drop repeats.
- 5Attach the visitor's campaign data, captured on landing, so the lead record says where it came from.
If you are not sure what a data layer push is, our plain-English guide to what a data layer is explains it. For the campaign data in the last step, see capturing UTM parameters in hidden form fields.
Do not lose the event when the page changes
If a successful submission immediately redirects the visitor, a tag that sends a normal request may be cancelled as the page unloads. GTM's Wait for Tags option on the Form Submission trigger delays the submission briefly to give tags a chance to fire. In custom code, the browser's sendBeacon method is designed for exactly this case: it queues a small request that the browser delivers even as the page goes away. Server-side delivery removes the problem entirely, because the conversion is sent from your server after it saves the lead, regardless of what the browser does next.
Multi-step forms and partial submissions
Long forms are often split into steps, with an email on step one and qualification questions after. Decide which moment is the conversion and fire it only there, usually on the final successful step. If you also want to measure drop-off, send the earlier steps as separate events with distinct names, such as form_step_1, and keep them out of your ad platforms' primary conversions. Otherwise the algorithm learns to find people who start forms, not people who finish them. Some form tools save partial entries as leads in their own database; check whether those records reach your CRM, because they will not match your tracked conversions.
Spam, bots and internal tests
A conversion that fires for every accepted submission will also fire for spam that gets past your filters and for your own team's tests. Both distort cost per lead and teach bidding the wrong lesson. Fire the event after your spam checks rather than before them, so rejected submissions never count. Use a consistent test email domain or a hidden test flag for internal submissions, and filter them out in your CRM and analytics. If spam volume rises sharply, fix the form protection first; trying to clean it out of the reports afterwards rarely works.
Test before you trust it
- Submit a valid form. One conversion should fire, with the right form name and a unique ID.
- Submit with a required field empty. No conversion should fire.
- Submit twice quickly. Either the form should block the second attempt or the second conversion should carry the same ID and be deduplicated.
- Refresh any confirmation page. No new conversion should fire.
- Compare a week of tracked conversions against leads created in the CRM. A small gap from consent and blockers is normal; a large or growing one is a bug.
If counts are too high rather than too low, our guide to duplicate conversions and how to fix them lists the usual causes on each platform.
Where EndFrame fits
EndFrame's tracker captures form submissions together with the visitor's UTMs and click IDs, stores them as leads, and delivers the conversion server-side to Meta's Conversions API, GA4 and TikTok's Events API with a shared event ID for deduplication. A free tracking audit is a quick way to see which tracking tags a page loads today before you change anything.
Frequently asked questions
Why does my GTM form submission trigger not fire?
The Form Submission trigger listens for the browser's standard submit event. Forms built with JavaScript frameworks or third-party widgets often handle submission themselves without a standard submit, or render inside an iframe GTM cannot see. In those cases, use the form's own success callback or ask your developer to push a data layer event when the submission succeeds.
Does GA4 enhanced measurement track form submissions?
GA4's enhanced measurement includes form interactions, which can send form_start and form_submit events automatically. It relies on the browser detecting a submission, so it can miss custom forms and cannot tell a successful submission from a failed one. Test it against your real leads before treating it as a key event.
How do I stop the same lead being counted twice?
Give each submission a unique ID and send it with the conversion as the event or transaction ID, so platforms that support deduplication can discard repeats. Fire the conversion once, on success, rather than on page load of a thank-you page that can be refreshed or revisited.
Sources
Try EndFrame
Add a server-side path for your conversions.
EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.
No credit card required