DataLayer Helper
Marketing dataLayer helper is a JS tag that allows you to automatically track events from dataLayer into Marketing.
If you are more familiar with pushing events into GTM dataLayer, you can substitute Marketing frontend tracking by populating dataLayer based on this guide. The dataLayer helper will transform those events into Marketing and track them automatically.
This way you can easily utilize data from your back-end systems, GTM, and front-end for Marketing tracking.
This guide will help you understand:
- How to set up automatic tracking into Marketing
- How to prepare your dataLayer for Marketing tracking
Setting up automatic dataLayer events tracking into Marketing
1. 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.
Note: You can specify the target audience based on active consents should your privacy policy require to do so.
All dataLayer events matching the definition below will now be tracked into Marketing.
dataLayer event structure
For Marketing 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 a Marketing event with defined event_name and event_attributes.
The above call will result in the following event tracked in Marketing:

Updated 8 days ago

