How to use the JENTIS DataLayer State

circle-info

These properties and structures are required if you want to reuse the JENTIS DataLayer State within JENTIS. In this case, you must ensure that the properties follow the correct syntax expected by the JENTIS data processing backend.

To reference and submit the JENTIS DataLayer State, you must use the following initiator:

jts_push_submit

jtspushedcommands

For every HTTP request sent to the JENTIS platform, the property jtspushedcommands must be included by default as an array.

When data is pushed to the DataLayer according to the JENTIS structure, all tracking commands must be added to the jtspushedcommands array within the JENTIS HTTP API request.

Example

The following data is pushed to the JENTIS data layer:

_jts.push({
    "track": "pageview",
    "pagetitle": "Demo-APP Order Confirmed"
});

_jts.push({
    "track": "product",
    "type": "order",
    "id": "123",
    "name": "Testproduct",
    "brutto": 199.99
});

_jts.push({
    "track": "product",
    "type": "order",
    "id": "456",
    "name": "Testproduct 2",
    "brutto": 299.99
});

_jts.push({
    "track": "order",
    "orderid": "12345666",
    "brutto": 499.98,
    "paytype": "creditcard"
});

The property jtspushedcommands will have the following value:

Product data

When tracking product data with the JENTIS HTTP Request, the tracked data must be brought into a format that the JENTIS Platform can understand. This format is identical to the one used in the web tracking environment.

Whenever the track command for “product” is used, all properties of each tracked product are concatenated into an array, with the prefix “product_” added to each property in the HTTP request sent to JENTIS. This structure aligns with our approach of using an array list for tracking product data and supports filtering like in the web tracking environment.

Example

The following data is pushed to the JENTIS data layer:

This example will generate the following properties in our HTTP-Request to JENTIS:

Last updated

Was this helpful?