Skip to main content

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.

elementorpopupwordpressgtmga4lead-generationpage-builder

Event fired

show_Popup

Key variable

popupID

Elementor 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 EventElementor EventDescription
show_Popupelementor/popup/showPopup becomes visible
close_Popupelementor/popup/hidePopup dismissed

Installation

html
<!-- 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

json
{
  "event": "show_Popup",
  "popupID": "12345"
}

Popup Closed

json
{
  "event": "close_Popup",
  "popupID": "12345"
}

Triggers to Create

TriggerEvent Name
CE – Elementor Popup Showshow_Popup
CE – Elementor Popup Closeclose_Popup

Variables to Capture

Variable NameDL KeyExample
DLV – Elementor Popup IDpopupID"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 EventTriggerParameters
view_promotionshow_Popuppopup_id
select_promotionclose_Popup + page contextpopup_id

Debugging

ProblemCauseFix
Events not firingElementor popup events not in old versionsConfirm Elementor Pro version supports popup JS API
popupID is undefinedjQuery event parameters changedCheck Elementor changelog

Related Listeners