Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

Setting up UET Consent Mode

Avatar

Level 1

Hi everyone, I'm not sure if I'm asking this in the right place, and I haven't seen a question about it, but I was wondering whether anyone has had success in configuring Microsoft Ads' UET Consent Mode with Adobe Tags? If yes, could you please briefly share how you managed to do it?

Microsoft Ads has a guide for implementing consent mode with GTM, but not with Tags: Google Tag Manager template: Consent Mode

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @EvaLi1 

I would approach it split in two rules

 

1. A library loaded rule that sets a piece of custom code that sets the default state

window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', {
  'ad_storage': 'denied',
  'Wait_for_update': 2000
});

 

2. A rule that is triggered as soon as consent is given, and has a condition that check whether marketing consent is given. In a custom code action, you then update the UET consent.

window.uetq = window.uetq || [];
window.uetq.push('consent', 'update', {
    'ad_storage': 'granted'
});

 

Cheers from Switzerland!


View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @EvaLi1 

I would approach it split in two rules

 

1. A library loaded rule that sets a piece of custom code that sets the default state

window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', {
  'ad_storage': 'denied',
  'Wait_for_update': 2000
});

 

2. A rule that is triggered as soon as consent is given, and has a condition that check whether marketing consent is given. In a custom code action, you then update the UET consent.

window.uetq = window.uetq || [];
window.uetq.push('consent', 'update', {
    'ad_storage': 'granted'
});

 

Cheers from Switzerland!