Load the universal tag from a Chinese network
This article describes how to improve performance when loading the universal tag from Chinese networks.
Use tags.tiqcdn.cn to expedite content delivery inside mainland China, as well as elsewhere in the world. The domain tags.tiqcdn.cn
is delivered by Akamai through the closest node to the user, which can be inside or outside the network security.
Considerations
-
Choose one of the following methods for loading the universal tag:
- Update the code for your website: If you can modify the source code for your site and a large amount of traffic is from China, we recommend that you use
tags.tiqcdn.cn
in the code you add to your website. - Use the China CDN Deployment Extension: If you cannot modify the source code for your site or a small amount of traffic is from China, use the China CDN Deployment Extension.
Only use one method. Do not use both.
- Update the code for your website: If you can modify the source code for your site and a large amount of traffic is from China, we recommend that you use
-
Use a unique profile
Use a unique profile for each of your websites. Using multiple profiles allows you to tag each website and customize the delivery of all Tealium-based content for that website. -
tags.tiqcdn.cn
tags.tiqcdn.cn
is available from Akamai through the closest node to the user. This means you can use a.cn
domain for users outside the China firewall with no impact on performance for those users. -
Internet Content Provider (ICP) license
For all web content to be delivered in mainland China, your website requires a valid ICP license.
Update the code for your website
To update the code on your website:
- Create a profile for the
.cn
domain. For more information, see Manage Profiles.- Consider using profile libraries to share configurations between profiles to make setting up the new dedicated
.cn
domain profile easier.
- Consider using profile libraries to share configurations between profiles to make setting up the new dedicated
- Update the publishing URLs in Publish Configuration to specify the
.cn
CDN path. For example:For more information, see Publish Configuration.https://tags.tiqcdn.cn/utag/ACCOUNT/PROFILE/dev/ https://tags.tiqcdn.cn/utag/ACCOUNT/PROFILE/qa/ https://tags.tiqcdn.cn/utag/ACCOUNT/PROFILE/prod/
- Add the following JavaScript, which uses
tags.tiqcdn.cn
, to the HTML source.<script type="text/javascript"> (function(a,b,c,d){ a='https://tags.tiqcdn.cn/utag/ACCOUNT/PROFILE/prod/utag.js'; b=document;c='script';d=b.createElement(c);d.src=a;d.type='text/java'+c;d.async=true; a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a); })(); </script>
Use the China CDN Deployment Extension
Create and configure a China CDN Deployment Extension to determine the user’s location and serve utag.js
from the appropriate CDN. For more information on creating an extension, see China CDN Deployment Extension.
This page was last updated: July 30, 2024