Cookie Consent Integration with Tealium

Note:

This configuration will be applicable after Tealium releases this new integration planned for March 31st, 2023.

If you use Tealium to manage the cookies on your website, you can integrate with your banner script so visitors to your websites can control their consent preferences.

This is not intended to be a comprehensive guide to setting up and using Tealium. For more information about using Tealium, please contact Tealium Support.

To implement the Banner script

  1. On the iQ Tag Management menu, select Extensions.


  2. Click Add Extension
  3. From the Advanced tab, select Advanced Javascript Code.
  4. Enter a title for the extension.
  5. Select Pre Loader as the Scope.
  6. Under Configuration, enter the following Javascript:
    JAVASCRIPT
    (function() {
        let domainId = '[INSERT DATA-DOMAIN-SCRIPT UUID]';
    
        let head = document.getElementsByTagName('head')[0];
        let script = document.createElement('script');
        script.type = 'text/javascript';
        script.src = 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js';
        script.setAttribute("data-domain-script", domainId);
        //script.setAttribute("data-domain-script", b['OTDomainGUID']);
        script.async = true;
        head.appendChild(script);
    
    })();

To configure integration between TiQ & OneTrust Cookie Consent

Integrations

  1. From the iQ Tag Management menu, select Consent Integrations.
  2. Under Integrations, click Add Integration.
  3. Enter a name for the integration.
  4. Select OneTrust as the vendor.
  5. Under Vendor ID, enter the data-domain-script that you will retrieve from the Scripts menu for the domain that you are configuring.
  6. Click Next.
  7. For the Enforcement Rule, you can leave the default option of All Pages and Events intact unless there is a more specific condition under which the integration should function (ex. specific subdomains, page directory, variable present, etc).
  8. Click Next.
  9. Select your Publish Locations (ex. Dev, QA, Prod).
  10. Click Next.
  11. Under the Purpose Group selection menu, select New Purpose Group. A confirmation modal appears that directs you to Purpose Group configuration. Your work progress is saved automatically.

Purpose Groups

  1. Enter a name for the Purpose Group.
  2. Click Next. The Purposes tab appears.

  3. For each Purpose, populate Key with a cookie category ID and Name with the corresponding cookie category name.

    A Purpose should be defined for each distinct cookie category as listed within OneTrust's Cookie Consent under Categorizations > Categories.

    For example:



  4. Once all Purposes are created, click Next. The Tealium IQ Purpose tab appears.

  5. From the Tealium Tag Purpose selection menu, select the cookie category that is associated with Strictly Necessary/Essential.
  6. Click Next. The Map Tags tab appears.

  7. For Map Tags and any non-essential tag, click the Map button on each row to select the appropriate category that will be responsible for controlling each tag.


Once this configuration is completed, save any changes and publish this build to the appropriate environment (Dev, QA or Prod).