Downloading and Deploying Scripts from Local Hosting
Download to Local is available to users upon request. If you require this feature, contact OneTrust Support.
Using Cookie Consent, you can download your script and run it on your local server.
Production CDN
When using the Production CDN, a small portion of the script is placed in the <head> section of a website. This script then calls the remainder of the script from OneTrust servers and it is displayed to the website visitor. OneTrust-hosted scripts are also automatically updated whenever a new version of the script is published.
Download to Local
The structure of the script is identical to the scripts hosted on the Production CDN, but the script placed in the <head> section of the website will need to be pointed to the locally hosted files.
Download and redeploy the downloaded script whenever a new version of the script is published for the changes to take effect.
To download the script to run locally
You can download all the files to run the script on a local server, bypassing the need for the OneTrust CDN. Make sure you republish your script for any recent changes to be reflected in the downloaded script files.
To implement the downloaded script files
Use Case: Download to Local for Websites in China
The OneTrust Cookie Consent service is designed to be Software-as-a-Service (SaaS) product. However, OneTrust's Content Distribution Network (CDN) has difficulty crossing the Chinese firewall. This leads to problems with the banner script failing to load or massive degradation of script performance.
It is recommended that customers seeking to utilize Cookie Consent on websites hosted in China do so by using the Download to Local option and host the script inside of the Chinese firewall.