The reliable way to do Elementor form tracking in Google Tag Manager is to listen for the submit_success event that Elementor Pro triggers on the form after the server accepts a submission, push your own event into the dataLayer with the form name and ID, and fire GA4, Google Ads and Meta tags from that one Custom Event trigger. The event is a jQuery event, so the listener has to use jQuery. Skip the built-in Form Submission trigger and the Element Visibility workaround: both count the wrong things on Elementor forms.
This guide is for agency owners, PPC managers and developers who look after WordPress sites built with Elementor Pro. It covers how the classic Form widget actually submits, a listener you can paste into GTM, telling several forms apart, popups, the redirect action, passing the email for enhanced conversions, spam and validation failures, double fires, and the newer Atomic Form element in Elementor 4. Everything here was checked against the Elementor Pro 4.4 front-end code and the free Elementor source on GitHub in November 2026.
How an Elementor Pro form actually submits
The classic Form widget never does a normal page submit. When the visitor clicks the button, Elementor's handler cancels the native submit with preventDefault(), collects the fields into a FormData object and posts it with jQuery.ajax to admin-ajax.php with the action elementor_pro_forms_send_form. It also appends a referrer field with the current URL.
The server runs your Actions After Submit (email, collect submissions, webhook, CRM integrations, redirect) and returns JSON. The browser code then branches on the success flag in that response.
| Response | What Elementor does in the browser | Events triggered on the form |
success: true | Removes the spinner, appends the success message if one is set, redirects if a Redirect action returned a URL | submit_success, then form_destruct, then reset |
success: false with field errors | Marks each failing field, adds inline error text, appends the general error message | error |
| Request failed (timeout, 500, blocked) | Appends an error message and re-enables the button | error |
Two details matter for tracking. submit_success is triggered before reset, so field values are still in the form when your listener runs, which is how you read the email for enhanced conversions. And the redirect is done by a separate handler listening for form_destruct, so your listener always runs before the page navigates away.
Does Elementor still fire submit_success, and does it need jQuery?
Yes on both counts for the classic Form widget. In the Elementor Pro 4.4 front-end bundle, the success branch still calls trigger("submit_success", data) on the jQuery-wrapped form. Elementor Pro's own popup module listens for the same event to open or close popups after a submit, which is a good sign it is not going away quietly.
The catch is that it is a jQuery event, not a native DOM event. jQuery's trigger() runs handlers bound through jQuery. It does not dispatch a real CustomEvent for a custom name like this one. So this does nothing:
document.addEventListener('submit_success', function () {
// never runs for the classic Elementor form
});
And this works:
jQuery(document).on('submit_success', function (event, response) {
console.log('Elementor form success', event.target, response);
});
Because trigger() bubbles through the DOM, a single delegated listener on document catches every Elementor form on the page, including ones added later in popups. The second argument is the data object from the server response. Redirect and popup instructions sit inside it, at response.data.redirect_url and response.data.popup.
The jQuery dependency causes one real-world failure. Performance plugins that delay JavaScript until the first user interaction can hold back jQuery itself, so a GTM tag that runs on page load finds no window.jQuery and quietly gives up. The listener below waits for jQuery instead of assuming it is there.
Why the GTM Form Submission trigger misfires on Elementor forms
The built-in Form Submission trigger listens for the browser's native submit event. It has a Check Validation option that, per Google's Form submission trigger documentation, makes it fire only if the form is successfully sent. Elementor breaks both settings:
- Check Validation on. Elementor cancels the native submit with
preventDefault() every single time, because it sends the data over AJAX. To GTM, the form was never sent, so the trigger never fires.
- Check Validation off. The trigger fires on every submit attempt that passes browser validation. That includes submissions the server rejects: a failed reCAPTCHA, a server-side field error, a broken email action. You count attempts, not leads.
Neither setting can know whether the server said yes, because that answer arrives later in an AJAX response. If Elementor leads in an inherited container come from a Form Submission trigger, assume the numbers are inflated.
Why Element Visibility on the success message is fragile
A common workaround is an Element Visibility trigger on .elementor-message-success with Observe DOM changes ticked. It does only fire after a real success, which is why it became popular. It still breaks in several ways:
- Empty success message. Elementor only appends the success div when the message text is not empty. Clear the message in the form settings and there is nothing to see.
- Redirect action. The page navigates away almost immediately, often before the visibility check runs.
- Viewport. Google's Element Visibility documentation says elements must be at least 50 percent on screen by default. On a long form, or on mobile, the message can render below the fold and never count.
- Several forms per page. The message has no form ID, so every form sends the same conversion unless you add DOM walking variables on top.
It is a stopgap, not something to build ad bidding on.
How to track Elementor form submissions with Google Tag Manager
The setup has four parts: a listener tag, a few Data Layer Variables, one Custom Event trigger, and your platform tags. If you are new to dataLayer based form tracking in general, our Google Tag Manager form tracking guide explains the pattern for other form tools too.
Step 1: the listener tag
Create a Custom HTML tag with the code below. Fire it on All Pages using a DOM Ready trigger, or a Page View trigger if that is how your container is organized. It binds once, waits for jQuery for up to two minutes, and pushes one clean event per successful submission.
<script>
(function () {
if (window.elementorFormListenerBound) { return; }
function readField(form, selector) {
var el = form.querySelector(selector);
return el && el.value ? String(el.value).trim() : '';
}
function bind($) {
if (window.elementorFormListenerBound) { return; }
window.elementorFormListenerBound = true;
$(document).on('submit_success', function (event, response) {
var form = event.target;
if (!form || !form.matches || !form.matches('form.elementor-form')) { return; }
var popup = form.closest('[data-elementor-type="popup"]');
var data = response && response.data ? response.data : {};
var email = readField(form, 'input[type="email"]').toLowerCase();
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'elementor_form_success',
form_name: form.getAttribute('name') || '',
form_custom_id: form.id || '',
form_widget_id: readField(form, 'input[name="form_id"]'),
form_post_id: readField(form, 'input[name="post_id"]'),
form_popup_id: popup ? String(popup.getAttribute('data-elementor-id')) : '',
form_redirects: data.redirect_url ? 'yes' : 'no',
lead_event_id: readField(form, 'input[name="form_fields[event_id]"]') ||
'el_' + Date.now() + '_' + Math.random().toString(36).slice(2, 10),
user_email: email
});
});
$(document).on('error', 'form.elementor-form', function (event) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'elementor_form_error',
form_name: event.currentTarget.getAttribute('name') || ''
});
});
}
if (window.jQuery) { bind(window.jQuery); return; }
var tries = 0;
var timer = setInterval(function () {
tries++;
if (window.jQuery) { clearInterval(timer); bind(window.jQuery); }
else if (tries > 240) { clearInterval(timer); }
}, 500);
})();
</script>
A few choices in that code are deliberate:
- The guard flag.
window.elementorFormListenerBound stops a second copy of the tag, or a second trigger on the same tag, from binding twice and doubling every conversion.
- The form check. Other plugins also use jQuery events. Checking
form.elementor-form keeps the listener from reacting to anything that is not an Elementor form.
- The event ID. A unique
lead_event_id per submit lets you deduplicate the Meta Pixel against the Conversions API later, and gives you something to search for when you debug.
- The error event.
elementor_form_error is not a conversion. It shows failed submissions in GTM Preview and GA4.
Step 2: Data Layer Variables
Create a Data Layer Variable (version 2) for each key you plan to use: form_name, form_custom_id, form_widget_id, form_popup_id, form_redirects, lead_event_id and user_email. Name them clearly, for example DLV - form_name.
Step 3: one Custom Event trigger
Create a Custom Event trigger with the event name elementor_form_success. If only some forms are leads (a newsletter signup next to a quote form, for example), add a condition on DLV - form_name or DLV - form_widget_id and make one trigger per conversion type.
Step 4: the platform tags
| Platform | Tag | What to send |
| GA4 | Google Analytics: GA4 Event | Event name generate_lead, parameters form_name and form_id from the variables. Mark it as a key event in GA4. |
| Google Ads | Google Ads Conversion Tracking | Conversion ID and label from the conversion action, optional value, user-provided data for enhanced conversions (see below). |
| Meta | Custom HTML, or a community Meta template | Standard event Lead with eventID set to the lead event ID. |
For Meta in a Custom HTML tag, the call looks like this. The fourth argument is what Meta uses to match the browser event against a server event with the same ID:
<script>
fbq('track', 'Lead', { content_name: {{DLV - form_name}} }, { eventID: {{DLV - lead_event_id}} });
</script>
Register form_name and form_id as event-scoped custom dimensions in GA4 to see them in reports. Our GA4 key events and naming plan has a template for that.
How do I tell multiple Elementor forms apart on one page?
An Elementor form carries three identifiers. Each one breaks in a different way, which is why the listener pushes all three.
| Identifier | Where it comes from | Watch out for |
name attribute on the form | The Form Name field in the widget | Defaults to "New Form", so many forms share it until someone renames them |
id attribute on the form | Form ID under Additional Options | Empty unless someone fills it in, and it must be unique per page |
Hidden form_id input | The widget's internal element ID, always present | Changes if the widget is deleted and rebuilt, or the page is duplicated |
For reporting, rename every form to something human ("Quote form - service pages") and use form_name. For trigger conditions where a mistake costs money, use form_widget_id, since it is never blank. One trap: field IDs are not scoped per form. Two forms on one page with an email field both render id="form-field-email", so document.getElementById returns the wrong one half the time. Always read fields with form.querySelector on the form that fired, as the listener does.
Tracking Elementor forms inside popups
Forms in Elementor popups work with the same listener. The delegated handler on document catches the event no matter when the popup opened. The listener also records the popup's template ID in form_popup_id, so you can separate an exit-intent popup lead from a contact page lead without renaming anything.
Elementor Pro also fires elementor/popup/show and elementor/popup/hide when a popup opens and closes. In the current code they are triggered as jQuery events on document, with the popup ID as the first extra argument, and dispatched as native CustomEvents on window with detail.id. That is useful if you want a popup view event to work out popup conversion rates:
window.addEventListener('elementor/popup/show', function (event) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ event: 'elementor_popup_show', popup_id: String(event.detail.id) });
});
If the popup is set to close after submit, nothing changes for tracking. The close happens after submit_success.
What happens when the form redirects to a thank-you page?
With a Redirect action, Elementor sets location.href to the URL from the server, in the same run of code that triggered submit_success. Your dataLayer push always happens first. The question is whether the tags it fires finish their network requests before the browser leaves.
A tag that still has to load its library, or sits behind a slow trigger sequence, can lose that race. You have two clean options:
- Track on the event, keep the redirect. Use the listener and check in DevTools with Preserve log turned on that each hit leaves before the navigation. This keeps form names and the email.
- Track on the thank-you page instead. Add a query parameter per form to the redirect URL (for example
?form=quote) and fire on a Page View trigger for that page. Simple, but refreshes and bookmarks count again, and the email is gone unless you pass it some other way.
Never do both for the same conversion action. That is the most common cause of Elementor leads counting twice in Google Ads, and our fix for Google Ads counting conversions twice walks through how to find it. The listener's form_redirects value lets you check which forms redirect without opening each one in the editor.
How to pass the email for enhanced conversions and Meta
Because the listener runs before Elementor resets the form, user_email holds what the visitor typed. Use it per platform:
- Google Ads. Create a User-Provided Data variable set to Code, backed by a Custom JavaScript variable that returns an object with an
email key. Attach it to the conversion through the user-provided data setting. Google's enhanced conversions with Google Tag Manager guide lists the accepted keys and formats. Our enhanced conversions setup guide covers testing and diagnostics.
- GA4. Do not send the email as an event parameter. That puts personal data into reports. Leave
user_email out of the GA4 tag.
- Meta Pixel. Manual advanced matching values go into the
fbq('init') call in the base code, so a field value captured after submit does not fit there neatly. Turn on automatic advanced matching in Events Manager, and send the email through the Conversions API, where it belongs.
The Custom JavaScript variable for Google Ads can be this short:
function () {
var email = {{DLV - user_email}};
if (!email || email.indexOf('@') === -1) { return undefined; }
return { email: email };
}
Returning undefined when there is no usable email avoids sending empty strings, which Google asks you not to do. If the form collects a phone number too, add phone_number in E.164 format, but only when you can format it reliably.
Matching the browser lead to a server event
If the client also sends leads to Meta from the server, through a webhook action or a CRM, both sides need the same event ID. Add a Hidden field to the form with the field ID event_id and give it a random value with a small script on page load (its input is named form_fields[event_id]). The listener above already prefers that value for lead_event_id, so the Pixel and the submitted data carry the same ID, and the server side forwards it as event_id. Generate a fresh value after each success, because Elementor's reset does not clear hidden fields you set from script. The Meta Conversions API deduplication guide explains why the event name and ID both have to match.
Do spam, validation errors and failed submits count?
With the listener, a submission counts only when the server returns success: true. Here is how each failure case behaves:
- Browser validation. Required and email-type fields block the native submit before Elementor sees it. Nothing is sent and nothing fires.
- Server-side field errors. Elementor marks the fields and triggers
error. No submit_success.
- reCAPTCHA failures. The reCAPTCHA field is verified on the server, so a failed check comes back as an error response and does not count.
- Bots posting directly. Most spam bots post straight to
admin-ajax.php without running page JavaScript. They never touch GTM, so they do not inflate browser conversions. They do show up in Submissions and in the CRM, which is why CRM-based numbers and ad platform numbers drift apart on spammy sites.
- Honeypot field. Test this yourself rather than trusting a blog post. Open DevTools, put a value into the hidden honeypot input and submit. If the page shows a success message, your listener counted it too.
- A failing action. If an action after submit fails on the server, for example the Email action on a site with broken mail delivery, Elementor can return an error even though the entry may already be stored. The visitor sees an error and you lose the conversion. A spike in
elementor_form_error is often the first sign that a client's mail setup broke.
Double clicks are not a problem: while a request is in flight, Elementor adds elementor-form-waiting to the form and ignores new submits.
Why is my Elementor form conversion firing twice?
When an Elementor lead counts twice, it is almost never Elementor. Check these in order:
- Two tracking methods on one conversion. A listener tag plus an old Element Visibility or Form Submission trigger, or the event plus a thank-you page view.
- The listener bound twice. Two Custom HTML tags with similar code, or one tag on both Page View and History Change. The guard flag in the code above prevents this, and many copies of this listener found online have no guard.
- A second container or plugin. A hard-coded gtag snippet, a WordPress tracking plugin with its own form integration, or the Google Ads tag installed through a site kit plugin and GTM at the same time.
- The same visitor submitting twice. A real second submit. Set the Google Ads conversion action's Count setting to One for lead forms.
In GA4, duplicates show up as two generate_lead events seconds apart in DebugView. If GA4 shows nothing at all, start with our checklist for GA4 form submissions not being tracked.
Multi-step forms
Elementor's multi-step forms are one form split into steps in the browser. Next and Previous only switch steps, and the AJAX request, and so submit_success, happens once on the final submit. The listener needs no changes. For step drop-off, add a Click trigger on the Next button and send it to GA4 as a non-key event. Never send step clicks to Google Ads.
The Atomic Form element in Elementor 4
Elementor 4 added a new Atomic Form element alongside the classic Form widget. It is built differently, and submit_success does not apply to it:
- Different markup. The element is marked with
data-element_type="e-form", not form.elementor-form.
- A native event. On success it dispatches a bubbling
CustomEvent named elementor/atomic-form/submit-success, with the server response in event.detail.response. A plain addEventListener works here, no jQuery needed.
- Fields are already cleared. The form is reset before that event fires, so you cannot read the email from the inputs at that point. Read it on the native
submit event instead, or listen for elementor/atomic-form/before-submit, which fires before the request is sent.
- Delayed redirect. A redirect waits about one second after success, which gives tags more room than the classic widget does.
document.addEventListener('elementor/atomic-form/submit-success', function (event) {
var form = event.target.closest('[data-element_type="e-form"]');
if (!form) { return; }
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'elementor_form_success',
form_name: form.getAttribute('data-form-name') || '',
form_widget_id: form.getAttribute('data-id') || ''
});
});
Reusing the elementor_form_success name keeps one set of triggers for both form types. Check the attribute names in the rendered page source first, since this element still changes between releases.
How to test Elementor form tracking end to end
- Confirm the event exists. On the live page, paste the console listener from earlier into DevTools and submit the form. You should see the form element and the response object logged once.
- Watch the request. In the Network tab, find the
admin-ajax.php POST and check the response says "success":true.
- Run GTM Preview. Submit a real test entry. You should see exactly one
elementor_form_success event with the right form name, and your GA4, Google Ads and Meta tags fired on it.
- Test a failure. Break something on purpose, for example a bad email that the server rejects or a failed reCAPTCHA in an incognito window. You should get
elementor_form_error and no conversion tags.
- Test every form. Popups, footer forms and redirecting forms each behave a little differently. A form that redirects needs Preserve log turned on in DevTools.
- Check consent. With a consent banner, test once accepted and once declined. Tags should follow your Consent Mode v2 setup, while the listener itself can run either way, since it only writes to the dataLayer.
- Verify in the platforms. GA4 DebugView, then Google Ads conversion status and enhanced conversions diagnostics over the next days, and Meta Test Events.
Getting it fixed for a client
Most broken Elementor setups have one of three problems: a Form Submission trigger counting failed attempts, an Element Visibility trigger that misses mobile and redirecting forms, or two methods stacked on one conversion. One submit_success listener with clear form names fixes all three. If you want someone to check the client's container, forms and ad settings first, request a free tracking check and we will tell you what is counting wrong and why.