Track Elementor Forms Submissions in Google Tag Manager with this Free GTM Recipe
A free Google Tag Manager recipe that captures Elementor form submissions and turns them into a Trigger you can use to fire conversions to Google Ads, Google Analytics and more.


Google Tag Manager is a common way to send conversions to Google Ads, Google Analytics, etc when someone submits an Elementor form on your website.
The problem is, it's quite difficult to set up. Elementor submits forms via AJAX, which means Google Tag Manager's built-in form submission trigger doesn't work, so you're left having to write custom code to detect the form submission, send an event to the dataLayer, and build a trigger on top of that.
And unless you're a developer or very experienced with Google Tag Manager, you're going to struggle.
Fortunately though, there is a simple solution.
You can simply install this Elementor Forms conversion tracking recipe in your Google Tag Manager account and you'll have everything you need to get basic conversion tracking set up.
What Is a Google Tag Manager Recipe and What's in It?
A recipe is a pre-built bundle of Google Tag Manager assets (a tag, a trigger and a variable) that you import in one go instead of building each piece yourself. You can see all our recipes and how they work in the GTM recipe library.
This recipe detects successful Elementor Forms submissions, sends a 'Form Submitted' event to Google Tag Manager, and gives you a Trigger you can use to send conversions to Google Analytics, Google Ads, etc. There are three parts to it, and nothing inside is hidden. Here's exactly what each piece contains, so you can see what you're importing before you import it.
Custom HTML Tag
Listens for successful Elementor Forms submissions and pushes an 'elementor_form_submitted' event to the dataLayer. It fires on All Pages, once per event, and this is the code inside it.
(function () {
if (window.__converlyRecipeElementorForms) return;
window.__converlyRecipeElementorForms = true;
window.dataLayer = window.dataLayer || [];
// Best-effort, non-PII identifier: the form's own id/name, or the
// nearest ancestor carrying Elementor's standard data-id widget-instance
// attribute. Never reads field values.
function bestEffortFormId(formEl) {
if (!formEl) return '';
if (formEl.id) return formEl.id;
var name = formEl.getAttribute && formEl.getAttribute('name');
if (name) return name;
try {
var withId = formEl.closest && formEl.closest('[data-id]');
if (withId) return withId.getAttribute('data-id') || '';
} catch (e) {
// .closest not available — non-fatal
}
return '';
}
function fireConversion(formId) {
window.dataLayer.push({
event: 'elementor_form_submitted',
form_id: formId || ''
});
}
// Same form-resolution chain the production module uses (event.target
// -> most recently clicked Elementor submit button's form -> the sole
// .elementor-form on the page) — ported here so the recipe can attach a
// real form_id instead of firing event-only.
var lastClickedForm = null;
function trackClick(event) {
try {
var target = event.target;
if (!target || !target.closest) return;
var form = target.closest('form.elementor-form');
if (form) lastClickedForm = form;
} catch (e) {
// non-fatal
}
}
function resolveFormFromTarget(target) {
if (!target || target === document || target === window) return null;
try {
if ((target.tagName || '').toLowerCase() === 'form' &&
target.classList && target.classList.contains('elementor-form')) {
return target;
}
if (target.closest) {
var parentForm = target.closest('form.elementor-form');
if (parentForm) return parentForm;
}
} catch (e) {
// non-fatal
}
return null;
}
// Fire path — Elementor Pro's own jQuery event, triggered on `document`
// once an AJAX submission passes server-side validation. This is the ONLY
// path this recipe tracks; Elementor Pro forms submit exclusively via
// Elementor's own AJAX pipeline, so there is no non-AJAX mode to miss.
var successHooked = false;
function hookElementorSuccess() {
if (successHooked) return true;
if (typeof jQuery === 'undefined' && typeof $ === 'undefined') return false;
var jQ = typeof jQuery !== 'undefined' ? jQuery : $;
jQ(document).on('submit_success', function (event) {
var formEl = resolveFormFromTarget(event && event.target);
if (!formEl && lastClickedForm) formEl = lastClickedForm;
lastClickedForm = null;
if (!formEl) {
try {
var forms = document.querySelectorAll('.elementor-form');
if (forms.length === 1) formEl = forms[0];
} catch (e) {
// non-fatal
}
}
fireConversion(bestEffortFormId(formEl));
});
successHooked = true;
return true;
}
document.addEventListener('click', trackClick, true);
if (!hookElementorSuccess()) {
document.addEventListener('DOMContentLoaded', function () {
hookElementorSuccess();
});
window.addEventListener('load', function () {
hookElementorSuccess();
});
}
})();Variable
Captures the ID of the form that was submitted, ready to reference in any tag. These are its exact settings.
Name
DLV - Elementor Form ID
Variable Type
Data Layer Variable
Data Layer Variable Name
form_id
Trigger
Fires when the 'elementor_form_submitted' event is received. Use it as the trigger for any conversion tag. These are its exact settings.
Name
CE - Elementor Forms Submitted
Trigger Type
Custom Event
Event Name
elementor_form_submitted
Download This Recipe
Get the ready-to-import file and upload it into Google Tag Manager. Everything shown above (the tag, the variable and the trigger) comes pre-built inside.
Built from Converly's own Elementor Forms detection code
Why It's the Best Recipe Out There
It is built from the same detection code we use in our own conversion tracking product, Converly, just adapted to run inside Google Tag Manager.
How to Use the Elementor Forms GTM Recipe
Install the Recipe
Download the recipe using the form above, then import it into your Google Tag Manager container. In GTM, head to Admin, choose Import Container, select the downloaded file, and pick the Merge option so it doesn't overwrite anything already in your container. The listener, variable and trigger are added for you automatically.

Configure Your Tags
Now that the recipe is installed, you can use it as a Trigger for your conversion tags. Here are two common examples.
Example 1: Google Analytics
Create a GA4 event tag and set the recipe's trigger (called CE - Elementor Forms Submitted) as its firing trigger. Every Elementor Forms submission now sends an event to Google Analytics.

Example 2: Google Ads
Add your Google Ads conversion tag and fire it on the recipe's trigger to send form submissions to your ad platforms and analytics tools as conversions.

What This Enables You to Do (and What It Doesn't)
This recipe fires an event in Google Tag Manager whenever a successful Elementor Forms submission is detected. You can use that as a trigger to send conversions to Google Ads, Google Analytics and other tags.
What it does
Sends an Event to GTM
Detects successful Elementor Forms submissions and pushes an event called 'elementor_form_submitted' into your dataLayer automatically.
Tells You Which Form Fired
Captures the ID of the form that was submitted, so a site with several forms can fire different tags for different forms.
Creates a Trigger in GTM
Gives you a 'Trigger' in Google Tag Manager which you can use as the trigger for any of your conversion tags.
What it doesn't do
Doesn't send the conversion server-side
Everything happens in the visitor's browser, so ad blockers can stop the tag loading and browser privacy restrictions can limit tracking to as little as a day.
No Click IDs or Identifiers
It does not capture the Google click ID, Facebook click ID, Meta pixel cookies, IP address or user agent, which ad platforms need for Enhanced Conversions (Google) or a proper Event Match Quality score (Meta).
No Personal Details
The script only fires an event. It does not capture the lead's name, email or phone number, all of which Google and Meta require for enhanced conversions and a high match score.
No Logging or Notifications
You can test it with Tag Assistant on install, but unless you test every week you have no way of knowing if it quietly breaks.
The Proper Way to Send Conversions to Google Ads, Meta Ads & More
This recipe is fine if you only send events to Google Analytics, which does not accept personal information or IP addresses. But to get a good Event Match Quality (EMQ) score in Meta, or use Enhanced Conversions in Google, you need to send the data server-side, together with the lead's name and email. That is what Converly does.

Here's why Converly is the best way to send conversions to Google Ads, Meta Ads, Microsoft Ads, LinkedIn Ads, and more.
Easy to set up
Converly gives you a simple drag-and-drop builder you can use to build a Conversion Flow. Simply select a trigger (like an Elementor form being submitted) and then select your actions (like sending a conversion to Google Ads). No custom code, no complex configuration.
Sends Data Server-Side
Converly sends conversions directly from its servers to Google, Meta and the rest, instead of through the visitor's browser, so ad blockers and privacy restrictions can't get in the way.
Sends More Data
It captures the lead's name, email and phone plus the Google and Facebook click IDs, IP address and user agent, and sends them with every conversion. That enables Enhanced Conversions in Google Ads, or gives you an Event Match Quality (EMQ) score of 9 or 10 in Meta.
Full Conversion Log & Email Notifications
See every conversion, what was captured, what was sent to each platform and whether it was received. Get email alerts when something goes wrong so your tracking can't break without you knowing.
Supports Multiple Tools & Destinations
Detects submissions across 80+ form, scheduling and chat tools and sends to 20+ destinations including Google Ads, Meta, LinkedIn, Microsoft and TikTok. So if you ever add a new tool or start advertising on a new platform, it's just a few clicks.
Provides Free Support
Our team has 20 years of experience in conversion tracking and analytics and is here to help whenever you need it. With Google Tag Manager, you're on your own.
Start Your Free Trial
Start a 14-day free trial and track your conversions the proper way. No code, no complicated configuration.
About the author

Aaron is the founder of Converly. With over 15 years of experience in digital marketing and SaaS, he's passionate about helping businesses track and optimise their ad conversions.
