Customizing the JENTIS Data Layer
The JENTIS Data Layer is built to be flexible and scalable, allowing you to track additional data or create entirely new data objects tailored to your specific website and business needs.
This article will show you how to:
Extend existing tracking commands with custom properties
Create entirely new custom documents
Access these custom properties via the JENTIS Tag Manager
1. Extending Default Data Layer Calls
You can enhance existing tracking commands—such as pageview
, product
, or event
—by adding your own custom properties.
Example
_jts.push({
track: "pageview",
pagetype: "productdetailpage"
});
_jts.push({
track: "product",
type: "productview",
id: "12345567",
name: "jentis tshirt",
origin: "24"
});
_jts.push({ track: "productview" });
_jts.push({ track: "submit" });
In this example:
The
pageview
object includes a custom propertypagetype
The
product
object includes a custom propertyorigin
Notes
Every property belongs to the document it's pushed with.
Reserved keys:
track
andtype
— do not use these as custom property names.
2. Creating Custom Documents
You can define completely new object types if your use case is not covered by the default JENTIS model.
Example: Reservation Tracking
_jts.push({
track: "reservation",
hotel: "my hotel"
});
_jts.push({ track: "submit" });
This defines a new document of type reservation
, with the custom property hotel
.
📌 Refer to the Data Model Reference to avoid naming collisions with default keys.
3. Accessing Custom Properties in JTM
Once your custom data is pushed into the JENTIS Data Layer, you need to create variables in the JENTIS Tag Manager to use them.
Step-by-Step
Go to Variables in JENTIS Tag Manager
Click New Variable
Select Get JTM Data Layer Value

Important Input Fields
Document: e.g.,
pageview
,product
,reservation
Property: e.g.,
pagetype
,origin
,hotel
Once created, this variable can be used in:
Triggers (e.g., fire a tag when
pagetype = productdetailpage
)Tags (e.g., pass
origin
as a parameter to an analytics tool)
Summary
Extend default tracking commands with custom fields
Define entirely new custom tracking objects if needed
Access custom data through JTM variables by linking document and property
Reserved keys like
track
andtype
must not be overridden
This level of flexibility ensures that your tracking strategy can scale and adapt as your platform evolves.
Last updated
Was this helpful?