DataLayer Helper

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

Setting up automatic dataLayer events tracking into Exponea

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.

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 Exponea.

dataLayer event structure

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

DataLayer Helper

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.

We rely on cookies

to optimize our communication and to enhance your customer experience. By clicking on the Accept and Close button, you agree to the collection of cookies. You can also adjust your preferences by clicking on Manage Preferences. For more information please see our Privacy policy.

Manage cookies
Accept & close

Cookies preferences

Accept & close