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
Overview
Elevar's Consent Mode in compatible OneTrust. This setup allows you to add your Consent Banner onto your website and provides a building block for your server-side tracking to listen for a shopper's consent. After importing them, you will 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.
- (See Figure 1)
![](https://files.readme.io/a143ba7-Screen_Shot_2023-09-01_at_8.49.30_AM.png)
Figure 1
Import OneTrust (for hard coded banner scripts) Container to GTM
Download OneTrust:
- Begin your Elevar homepage and use the left-hand menu to click on the "Pre-Built Tags" tab.
- Use the search function to locate the OneTrust Tag.
- Locate and click on the "Download Container" button.
- (See Figure 2)
- Once you download the pre-built container, import the tags in Google Tag Manager. How do I do this?
Figure 2
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?]
- (See Figure 3)
_Figure 3_
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 Changes in GTM:
- Navigate to the Google Tag Manager homepage and click on the "Submit" button in the upper right-hand corner of the page.
- An additional confirmation page will appear, click on the "Publish" button in the upper right-hand corner of the page.
- (See Figure 4)
Figure 4
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.
Updated 2 months ago