dataLayer Output

EventLayer’s frontend script is dependency-free. On page load it receives two localized objects — eventLayerConfig (your published rules) and eventLayerSettings — then binds click listeners to every element matching each rule’s selector.

What gets pushed

Each triggered rule pushes one object to window.dataLayer: the event key holds your Event Type, followed by every configured parameter.

window.dataLayer.push({
  event: 'link_click',
  button_text: 'Get EventLayer Pro',
  button_url: 'https://eventlayerpro.com/pricing/',
  click_source: 'navigation'
});

Consuming events in GTM

In Google Tag Manager, create a Custom Event trigger with the event name matching your Event Type, and Data Layer Variables for each parameter. Point a GA4 Event tag at that trigger.

Settings object

eventLayerSettings carries two flags: debug (mirrors the Debug Mode option and enables console logging of every trigger and push) and autoTrackPageView.

Debug Mode

Enable it under EventLayer → Settings. With it on, the script logs listener binding, rule matches and each dataLayer push to the console — leave it off in production.