Setting up UET Consent Mode | Community
Skip to main content
New Participant
April 25, 2025
Solved

Setting up UET Consent Mode

  • April 25, 2025
  • 1 reply
  • 675 views

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

Best answer by bjoern__koth

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' });

 

1 reply

bjoern__koth
bjoern__kothAccepted solution
New Participant
April 25, 2025

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!