Exponea dataLayer helper is a JS tag that allows you to automatically track events from dataLayer into Exponea.
If you are more familiar with pushing events into GTM dataLayer, you can substitute Exponea frontend tracking by populating dataLayer based on this guide. The dataLayer helper will transform those events into Exponea and track them automatically.
This way you can easily utilize data from your back-end systems, GTM, and front-end for Exponea tracking.
This guide will help you understand:
- How to set up automatic tracking into Exponea
- How to prepare your dataLayer for Exponea tracking
1. In Exponea, go to
Data & Assets >
Tag Manager and create a new tag.
2. Select "dataLayer helper" from tag presets.
3. Apply these tag settings:
- Fire on "Any page"
- Priority 999
- Audience: "All customers"
4. Name and start the tag.
All dataLayer events matching the definition below will now be tracked into Exponea.
For Exponea dataLayer helper to process the event from dataLayer, the event needs to meet a certain structure.
Let’s have an example definition of the event
view_item from the tracking document:
Whenever a triggering condition of
view_item is met, you need to call a dataLayer.push() (see the Google documentation for more information) command with the following payload:
Every dataLayer event, that contains attribute namespace equal to exponea will be processed as Exponea event with defined event_name and event_attributes.
The above call will result in the following event tracked in Exponea:
Updated about a year ago