Add and configure the Tealium Collect tag
This article describes how to configure the Tealium Collect tag to enable data layer enchrichment.
For detailed instructions see the Tealium Collect Tag Setup Guide.
This configuration enables client-side attribute sync in Tag Management. The Data Layer Enrichment API and Profile Definition API are controlled by a separate server-side setting. For more information, see Enable server-side Data Layer Enrichment.

Data enrichment frequency
To set up your Tealium Collect tag to enable data layer enrichment, you must determine how often to update your data layer with attribute information. Here are the options:
- None (Default)
- Data layer enrichment does not occur.
- Infrequent
- Data layer enrichment occurs once per visit (session).
- The retrieved customer data is stored in local storage for use on subsequent tracking calls during the session.
- Frequent (Recommended)
- Data layer enrichment occurs on every tracking call. Customer data that changes during the session is reflected in real-time in the Universal Data Object (UDO).
This option causes an additional HTTP request per page.
Selecting a load rule
We recommend leaving the default Load on All Pages load rule selected for the Tealium Collect tag. To ensure the data layer contains the necessary attributes, populate it with the most relevant data.
Using Customer Data Platform (CDP) attributes in Tag Management
CDP attributes are treated as imported variables in Tag Management. These variables cannot be edited or deleted. To delete or modify a CDP attribute, make the change in your CDP profile. Attributes cannot be imported into a profile library, they can only be imported into a regular profile.

Which CDP attribute types are imported?
The following attribute types are imported into Tag Management and made available in the data layer:
- Badges
- Numbers
- Strings
- Booleans
- Dates
Date attributes are imported into the data layer and visible in the UDO. They are not available for use in load rules or tag mappings.
Building load rules
You can use supported attributes to create load rules. The following rule operators are available for badges in load rules.
- is badge assigned
Trueif the badge attribute is assigned to the visitor.
- is badge not assigned
Falseif the badge attribute is not assigned to the visitor.
Deleting an attribute from CDP automatically removes it from the data layer screen in Tag Management. However, load rules that reference the deleted attribute do not update automatically. You must manually update any load rules that still reference deleted attributes.
Callback function
The data layer enrichment request provides a callback method window.tealium_enrichment() that lets you execute code based on the response.
To use the callback function, create a JavaScript Code extension scoped to Pre Loader with the following code:
window.tealium_enrichment = function(data) {
console.log("Data Layer Enrichment Callback");
// Your code here...
};
This page was last updated: November 11, 2026