Skip to main content

Configure Microsoft UET Consent Mode

You use Microsoft Advertising? Here's how to transmit your visitors' consent to Microsoft via Axeptio.

Written by Adrian ESCRIVA
Updated today

You had set up a UET Consent Mode management script before December 2025? Read this.

Microsoft UET Consent Mode (or UET consent mode) allows you to transmit your visitors' consent choices to Microsoft Advertising (formerly Bing Ads), so that its UET tracking system respects their preferences. It is mandatory for any site receiving visitors from the EEA, UK or Switzerland. For a general introduction to Consent Modes, see Consent Modes: introduction.

You use a classic banner

This section concerns users of a classic Axeptio banner (Brands). If you use a TCF banner, directly consult the Axeptio for Publishers (TCF) section below.

  1. Open your project.

  2. In each configuration of your project, make sure that the "Microsoft Advertising" service appears on one of the banner screens.

    • If this is not yet the case, add "Microsoft Advertising". How to add a cookie in my banner?

    • Upon adding, a message displays indicating that Axeptio has detected that this service requires UET Consent Mode activation, and confirming that the latter has been activated automatically. If this is not the case, activate it manually at the next step.

  3. On the main configuration settings page, scroll down to the "Consent modes" section: you should see that Microsoft UET Consent Mode is activated.

    • If Axeptio detects that you added Microsoft Advertising in your configuration, but Microsoft UET Consent Mode is not activated, a warning message displays inviting you to activate it: activate it manually.

  4. Publish your project to put your modifications online.

Special cases

If you don't want to use the "Microsoft Advertising" service from our services database

If you customize the default "Microsoft Advertising" service (for example, to customize its name, description, or other), Axeptio automatically creates a custom cookie to store your customizations. In the editing page of your custom cookie, make sure to choose "Microsoft UET" in the "Consent mode tag" dropdown menu. A "Microsoft UET" label will then display at the level of your custom cookie, indicating that Axeptio has detected it and has automatically activated UET Consent Mode.

If you prefer to manually manage UET Consent Mode via a script

Do not use this script if you have already activated UET Consent Mode in your Axeptio administration. Conflicts can occur if this script is in place and the option is active. If you have integrated this script, make sure to have disabled the native UET Consent Mode management. In this specific case, it is expected that the following warning message displays (which you can ignore): "You are using Microsoft UET providers in your banner: this Consent Mode should be activated."

Add this script in the

of your site, or in a custom HTML tag via Google Tag Manager (trigger: Consent Initialization - All Pages). This script must be loaded before your UET tag.

// Initialisation du UET Consent Modewindow.uetq = window.uetq || [];window.uetq.push("consent", "default", {  ad_storage: "denied",});// Mise à jour du consentement selon les choix dans le bandeau Axeptiovoid 0 === window._axcb && (window._axcb = []);window._axcb.push(function (axeptio) {  axeptio.on("cookies:complete", function (choices) {    if (choices.microsoft) {      window.uetq.push("consent", "update", {        ad_storage: "granted",      });    } else {      window.uetq.push("consent", "update", {        ad_storage: "denied",      });    }  });});

If you had already set up UET Consent Mode manually

If you were using a manual script and want to switch to native management, remove the script from your site before activating native management in the Axeptio administration. To do this, you can either activate the option from the main configuration settings page, in the "Consent modes" section, or remove and re-add the "Microsoft Advertising" service in your banner, which will trigger automatic activation of the option.

You use a TCF banner

If you use a TCF banner (Axeptio for Publishers), Microsoft Advertising natively manages consent via the IAB framework. You don't need to configure UET Consent Mode separately.

For this to work, you must have added in your TCF banner:

  • The vendor Microsoft (IAB ID: 1126)

  • The vendor Xandr (IAB ID: 32)

  • The corresponding IAB stacks: 1, 2, 3, 4, 7, 9 and 10

To add these vendors and these stacks, consult your TCF banner configuration guide.

Did this answer your question?