This article covers the fundamentals of the
utag.sync.js script and describes how to enable and install it on your website.
In this article:
To complete the steps described in this article, you must have the following Tealium iQ Tag Management profile-level permissions (Learn more):
utag.sync.js script described in this article is an additional file that you can add to your pages to support A/B and multivariate testing tags, such as Adobe Target or Optimizely. The script is placed in the
<head> section of your page code and loads synchronously to comply with the most common vendor requirements. The file content is managed in iQ Tag Management.
This feature is required when using the Tealium Flicker-Free Adobe Target solution.
By default, the
utag.sync.js file is not published to the Content Delivery Network (CDN) when you save and publish your iQ Tag Management account/profile. It must first be enabled, saved, and applied at the profile level.
Use the following steps to enable the
You must publish the latest version of this profile to all of your publish environments. Failure to do so will prevent any page referencing the
utag.sync.js file from loading.
You can add code using one of the following two methods:
Add, edit, or modify the content of your
utag.sync.js file, as follows:
utag.sync.js script is designed to be placed in the
<head> section of a page. For the best user experience as the page renders, the script should be placed in the same location that your vendor code would typically load to ensure that the vendor code loads before the content of the page.
The path to the
utag.sync.js file contains the following parameters:
Use the following steps to retrieve your specific script from the Code Center for your account:
Accessing the Universal Data Object (UDO)
utag.sync.js file will likely load before the Universal Data Object (
utag_data), therefore the code may not be able to reference those variables. Ensure that you thoroughly test any custom code that you intend to use.
Publishing to Production