UET Consent Mode lets you adjust UET cookie access based on the consent status of your users. This enhances the privacy capabilities of UET and gives you control over whether first and third-party cookies are stored.
For the purposes of UET consent mode, first-party cookies are those created by the advertiser domain (your website), and third-party cookies are created by Microsoft Advertising (Bing.com).
How it works
Consent mode is set via a property in UET called ad_storage
.
The possible values for ad_storage
are:
Value for ad_storage |
Description |
---|---|
granted | First and third-party cookies may be read and written for UET. If no default is set, UET uses granted by default. |
denied | First-party cookies are not read nor written for UET. Third-party cookies are not written. Third-party cookies are read-only for fraud and spam purposes—not for advertising purposes. |
Set up for Consent Mode
Since Cookiebot CMP doesn't have built in support for UET you will need to add a small code snippet to your website that precedes whatever adds UET to the page:
<script> window.uetq = window.uetq || []; window.uetq.push('consent', 'default', { 'ad_storage': 'denied' }); window.addEventListener('CookiebotOnConsentReady', function() { window.uetq.push('consent', 'update', { 'ad_storage': Cookiebot.consent.marketing ? 'granted' : 'denied' });
}); </script>
How you implement UET isn't important, the script will pass consent data regardless of your implementation method.
When the script first loads it will set the ad_storage
permission to "denied". Once consent information is available it is passed to UET using the existing global window.uetq
object if it exists.
If the window.uetq
global object doesn't exist, the script creates and registers the consent data so it's ready when UET requests the information. The latter situation would occur if UET is blocked prior consent.
If consent is updated (given or withdrawn after the initial consent submission), the script will ensure that the new information is passed on to UET as well.
Comments
0 comments
Please sign in to leave a comment.