Datalayer
.webp)
JavaScript structure used to transmit data (page, user, behavior, etc.) to marketing tools such as AB Tasty or Dynamic Yield to target tests or personalized experiences.
- 👉 In AB Tasty, dataLayer variables can be used directly in the targeting interface, without any additional code. For example, you can target a "product" page or a CRM segment such as "VIP" simply by selecting the variable in the rules engine.
- 👉 In Dynamic Yieldwe generally go through custom evaluators small JavaScript scripts can be used toextract or interpret the value from the dataLayer (or other sources) to build a more flexible targeting rule. Example: read a variable
userTier
to target gold users only.