WordPress AJAX Form Tracking: Why Contact Form 7, WPForms, and Elementor Forms Fail
Why standard GTM form and button-click triggers miscount WordPress leads, and how listening to verified AJAX success events keeps lead tracking accurate.
- Modern WordPress plugins (Contact Form 7, WPForms, Elementor Pro) submit forms in the background via AJAX without reloading the page, so GTM’s default Form Submission trigger often misses leads completely.
- Tracking “Submit” button clicks is even worse, because clicking with empty or invalid fields still counts as a fake conversion.
- Accurate tracking listens only for each plugin’s real server-confirmed event:
wpcf7mailsent,wpformsAjaxSubmitSuccess, orsubmit_success.
Every week I audit WordPress service websites where Google Ads reports 80 monthly leads, yet the business owner’s inbox only received 30 real inquiries. Other times, real leads arrive daily while GA4 and Meta show zero form conversions.
Both problems happen for the same reason: Contact Form 7, WPForms, and Elementor Forms submit in the background using AJAX instead of reloading the page. Standard GTM click and form triggers were never built to read whether an AJAX form actually succeeded or failed.
Why Default Form & Button Click Triggers Fail
- Default GTM Form Trigger: Listens for a traditional page-reloading form submit. Because WordPress AJAX forms stay on the same page, this trigger often fires zero times.
- Button Click Trigger: Fires every time someone taps “Send,” even if they forgot to enter an email or failed a required field. Your ad accounts count fake leads and optimize for low-intent clicks.
- Element Visibility on Thank-You Text: Can fire multiple times on mobile scroll or miss submissions if a theme changes CSS classes.
The Verified Success Events I Use Instead
Each major WordPress form plugin emits a clean browser event only after WordPress validates every field and confirms the message was actually saved or emailed:
| WordPress Plugin | Verified Success Event | What It Confirms |
|---|---|---|
| Contact Form 7 | wpcf7mailsent |
Validation passed and mail was sent cleanly |
| WPForms | wpformsAjaxSubmitSuccess |
AJAX submission succeeded on the server |
| Elementor Pro Forms | submit_success |
Elementor form saved and completed actions |
Once that confirmed event fires, I push a clean generate_lead event into the dataLayer with the form ID and lead details, then route it cleanly to GA4, Google Ads Enhanced Conversions, and Meta CAPI.
Common WordPress Form Tracking Mistakes I Catch
- Counting validation errors as conversions: Firing conversion tags on button clicks instead of server-confirmed success events.
- Tracking every form on the site as one goal: Treating newsletter signups or footer search boxes the same as high-intent quote requests instead of filtering by form ID.
- Not passing Enhanced Conversions data: Leaving out hashed email or phone details when a real lead submits, which weakens Google Ads and Meta match rates.
Frequently Asked Questions
Should I redirect every WordPress form to a thank-you page instead?
You do not have to redesign your site around thank-you redirects. Listening to verified AJAX success events keeps your smooth user experience while guaranteeing accurate lead counts.
What if someone refreshes a thank-you page?
Thank-you page URLs double-count leads whenever a visitor refreshes their browser or reopens the tab. Server-confirmed AJAX listeners only fire when the form itself is actually submitted.
Can I separate quote forms from general contact forms?
Yes. Each plugin passes its specific form ID inside the success event, so I can trigger high-value ad conversions only on your priority quote or booking forms.
Want this set up properly?
If your ad platforms report a different story than your real orders or leads, let’s inspect your tracking live.
Claim your free audit →