How to Set Up OneTrust Consent Mode with Elevar's Google Consent Mode Integration

Your are ready to enable consent mode within Elevar and are using OneTrust as your consent provider

Elevar's Consent Mode in compatible OneTrust. This setup allows you to add your Consent Banner onto your website + provides a building block for your server-side tracking to listen for a shopper's consent. After importing them, you'll be able to customize your consent rules per marketing destination

🚧

Warning: Do not use OneTrust's auto-blocking with Elevar's Consent Mode. If you enable auto-blocking, Google Tag Manager will be blocked from loading unless a shopper has accepted all cookies. Therefore any logic you setup with Elevar's Consent Mode will not work if the shopper accepts some cookies or no cookies.

Prerequisite:

Before you can begin your OneTrust specific setup, you will need to:

Add OneTrust Script to Theme

You may have already done this when you installed OneTrust, if you haven't you'll need to install their script on in your theme. You'll want this script to be in the <Head> portion, as high as possible.

Here's OneTrust's article on Publishing and Implementing their Cookie Consent Scripts.

This will end up looking like the below:

Import OneTrust (for hard coded banner scripts) Container to GTM

Click here to be taken to the OneTrust (for hard coded banner scripts) pre-built tags.

Once you download the pre-built container, import the tags in Google Tag Manager. How do I do this?

Update Consent Key Settings

Update Consent Key Settings in “One Trust CMP” tag if cookies should be allowed prior to consent being given for the consent types. [What does analytics_storage & stuff mean?]

🚧

Typically, the default statuses will vary by your region and legal requirements if you have opt-in or opt-out requirements. Elevar does not offer legal advice regarding GDPR or any consent compliance. Please consult your legal team if unsure.

Publish Your Changes in GTM

Next Up: Assign Requirements for Client-Side and Server-Side Tracking

You've enabled consent and added OneTrust's scripts. Now you need to make your client side tags and server-side tracking consent aware. Follow these guides to complete the setup.