Elementor Popup GTM Event Listener
Track Elementor Popup interactions in GTM. Monitor show and close events with popupID variable. Fire GA4 events when Elementor popups are displayed or dismissed.
Event fired
show_PopupKey variable
popupIDElementor Popup
Overview
Elementor's Popup Builder allows creating popups triggered by page scroll, time on page, exit intent, or other conditions. This listener hooks into Elementor's jQuery events to track popup display and close events.
Events fired: show_Popup, close_Popup
Variable: popupID
Why Use This Listener
Elementor popups are commonly used for lead magnets, special offers, and newsletter sign-ups. Tracking impressions vs. conversions helps you measure the effectiveness of each popup design.
Tracked Events
| GTM Event | Elementor Event | Description |
|---|---|---|
show_Popup | elementor/popup/show | Popup becomes visible |
close_Popup | elementor/popup/hide | Popup dismissed |
Installation
<!-- GTM Custom HTML Tag: Elementor Popup Listener -->
<script>
jQuery(document).ready(function($) {
jQuery(document).on('elementor/popup/show', function(event, id, instance) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'show_Popup',
'popupID': id
});
});
jQuery(document).on('elementor/popup/hide', function(event, id, instance) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'close_Popup',
'popupID': id
});
});
});
</script>Fire on: DOM Ready. Requires jQuery (included with Elementor/WordPress).
Data Layer Output
Popup Shown
{
"event": "show_Popup",
"popupID": "12345"
}Popup Closed
{
"event": "close_Popup",
"popupID": "12345"
}Triggers to Create
| Trigger | Event Name |
|---|---|
| CE – Elementor Popup Show | show_Popup |
| CE – Elementor Popup Close | close_Popup |
Variables to Capture
| Variable Name | DL Key | Example |
|---|---|---|
| DLV – Elementor Popup ID | popupID | "12345" |
Combined With Elementor Forms
When a form exists inside the popup, combine this listener with the Elementor Form listener. The popup show → form submit sequence gives you a complete conversion funnel.
GA4 Mapping
| GA4 Event | Trigger | Parameters |
|---|---|---|
view_promotion | show_Popup | popup_id |
select_promotion | close_Popup + page context | popup_id |
Debugging
| Problem | Cause | Fix |
|---|---|---|
| Events not firing | Elementor popup events not in old versions | Confirm Elementor Pro version supports popup JS API |
popupID is undefined | jQuery event parameters changed | Check Elementor changelog |