Updating OneTrust for Consent Mode V2
Depending how you have installed your OneTrust banner, will determine what update if any you need to make to be prepared for consent mode V2 changes. It is important to have this correct or else it can impact your data tracking to all platforms.
First, let's determine how you have installed your banner
Open your Google Tag Manager browser side container and search for “onetrust” inside the Tags section
Click on the One Trust tag visible to you from the list. Check if your OneTrust tag in Google Tag Manager has a data domain script section visible like this in the following screenshot or not.
If your OneTrust Tag setup is looking like this (above) with the “Data Domain Script” section visible with a code or any text, you are using Setup Type 1 with your banner added via GTM
If you can not see the “Data Domain Script” section visible in your tag (above screenshot), you are using Setup Type 2 with your banner hard-coded in your site code or theme file.
Download your Google Tag Manager Template Update File
- Setup Type 1 with your Banner added via GTM: [ Use This Template ]
- Setup Type 2 with your banner hard-coded in your site code or theme file: [ Use This Template ]
After logging into your Elevar App select Download Container
Next, Update your OneTrust Template in GTM
To do this you'll import the container with your Template file download above. GTM like any other pre-built container. How do I do this?
Review your Consent Key Settings
Review 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
Confirm your consent now includes the new values
The best way to check your defaults are to view in Google Tag Manager Preview Mode. After Making your updates access Google Tag Manager and select preview.
Enter your website URL and click connect
Your site will load and you'll want to return to the preview tab to confirm your consent defaults and consent updates.
Confirm consent default values
Follow these steps to confirm the defaults have been set.
- Open your Google Tag Manager account and click to Preview your website
- Open the "Tag Assistant" tab, click on the first Consent event in the left column, the lowest number and lowest in the list.
- Click on the Consent Tab
- Review the values in the On-page Default column. You are looking to see values for all the consent types and specifically the updates for consent mode V2 you will see the addition of ad_user_data and ad_personalization
If you are seeing ad_personalization and ad_user_data like below your defaults are now updated for consent mode v2!
Confirm your consent update values
Next, we will confirm your consent update values if available. If your banner displays for your region, accept or deny your consent.
Now you'll want to select the most recent Consent event that was triggered by your update. You are looking to see that you now have values for all the consent types in the On-page Update column. Specifically the change for consent mode v2 is that you have values for ad_user_date and ad_personalization
If you are seeing ad_personalization and ad_user_data like below you are all set for consent mode v2!
Still have questions, concerns, or lack confidence in your updates? We've got you covered!
Reach out to our support team to have them review your updates.
Updated 9 months ago