Code Center is where you get the code to add the Universal Tag (utag.js) to your website.
For more information abou installing Tealium on your website, see the Quick Start Guide for Web.
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 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 your data layer.
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 web page. 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.
To learn more, see Loading the Universal Tag on Websites Behind the China Firewall.