Simple Datalayer Trigger

This project is not covered by Drupal’s security advisory policy.

The idea of this module is let you define by CMS selectors to trigger DataLayer events.
It basically works by defining 4 datalayer variables: eventCategory, eventAction, eventLabel and eventValue.

After defining a Jquery Selector and how those fields should be filled, it will add HTML Data Attributes to the element and trigger a DataLayer push on clicks with an event called eventClick.

It's a good option to catch events with GTM without getting garbage like every 'click' push.

Supporting organizations: 

Project information

Releases