Code Center is where you get the code to add the Universal Tag (utag.js) to your website.
In this article:
The following settings can be adjusted to customize the code snippet displayed.
Enter a custom name for one of the default environments. This new name will appear throughout the UI.
This determines whether the tags are loaded synchronously or asynchronously. By default Asynchronous load is selected and we recommended it as a best practice as it provides faster page loading and a better visitor experience.
The Tealium Script tab displays the code based on your selections. The code includes the Universal Data Object (a sample of
utag_data) and the Universal Tag code (utag.js). The Universal Data Object displayed here is generated from the variables defined in the Data Layer tab.
The Universal Data Object seen in Code Center is only a placeholder. You must dynamically populate it with real values in order to send data to your tags.
Use the following steps to copy your code snippet:
The Sample HTML tab provides an example of what the code would look like when added to a webpage. The sample code appears after the opening
<body> tag, in accordance with our best practices.
Custom publish environments is a feature that must be enabled to use. To learn more, see Custom Publish Environments.
Tealium offers a separate CDN domain to serve files within the China firewall. For more detail, read Loading the Universal Tag on Websites Behind the China Firewall.