For the complete documentation index, see llms.txt. This page is also available as Markdown.

Microsoft Consent Mode (Basic)

Microsoft Consent Mode is a framework that ensures Microsoft Advertising Universal Event Tracking (UET) tags comply with an end-user's consent choices. In this article, we will cover:


In the basic version of Microsoft Consent Mode, the Universal Event Tracking (UET) tag should be blocked from loading by your organization until an end-user interacts with your widget on the website. Once the end-user interacts with the widget, one of the following can occur:

Action
ad_storage value
Description

Consent

granted

If an end-user grants consent then first and third-party cookies may be read and written for the UET tag.

No Consent

denied

If an end-user does not grant consent then no data is transmitted to Microsoft Advertising (not even a default consent state). UET tags will remain blocked and Microsoft Consent Mode's modeling for ads will be based on a general model.

In order to successfully implement Microsoft Consent Mode (Basic) for the regulation, your organization must configure the following:

Click here for more information if your organization plans to utilize Microsoft Consent Mode's integration with the IAB TCF.

Click Regulations Manager on the left-hand panel.

Navigate to a regulation that utilizes a data collection scope by vendor on the subsequent table and click the Edit icon inline with the regulation name.

Navigate to the Frameworks card on the Global Settings page. Ensure that Microsoft Consent Mode is enabled.

By enabling the Microsoft Consent Mode framework for the regulation, Didomi will automatically add the following vendor to the regulation:

  • Microsoft Advertising (API ID: microsoft-6zPzfpLt)

Navigate to the Vendors & Purposes tab and use the provided vendor x purpose matrix to configure processing rules, remove one of the purposes, etc... for Microsoft Advertising (API ID: microsoft-6zPzfpLt). See Configure regulation (by vendor) for more information.

Finally, navigate to the Frameworks tab and expand the Microsoft Consent Mode accordion to configure any details of the framework.

Toggle
Description

Set the default status of Microsoft Consent mode when page loads

Will set a default consent status for ad_storage prior to the end-user making a consent choice. Unless otherwise configured, the default of this setting is denied.

Enable ad_storage before user gives consent

Will set the default of ad_storage to granted before end-user provides consent choice.

Enable IAB TCF integration with Microsoft Consent Mode

Click here for more information on leveraging Microsoft Consent Mode with the IAB TCF.

Click Save when finished to confirm the edits to the regulation.

Configure UET tag

Didomi offers multiple ways your organization can implement Microsoft Consent Mode (Basic) on your website so that your UET tag fires only after an end-user has consented to the Microsoft Advertising vendor. Please see the tabs below for the method that best suits your organization's needs:

In order to ensure UET tags are blocked in accordance with a Microsoft Consent Mode (Basic) setup, your organization must configure each UET tag on your page to trigger only when an end-user grants consent to Microsoft Advertising (API ID: microsoft-6zPzfpLt).

Utilize the Didomi <script> tag attributes to edit each UET tag on your website to include type="didomi/javascript" data-vendor="microsoft-6zPzfpLt" .

In order to ensure UET tags are blocked in accordance with a Microsoft Consent Mode (Basic) setup your organization must configure the UET tags in Google Tag Manager to trigger only when an end-user grants consent to the Microsoft Advertising vendor.

First, your organization should create a data layer variable for didomiVendorsEnabled as it will be used in the triggering:

From your organization's Google Tag Manager workspace, navigate to your UET tag and edit the trigger.

Configure your trigger with the following fields:

Field
Value

Trigger Type

Custom Event

Event name

didomi-consent

This trigger fires on

Some Custom Events

Event condition

didomiVendorsEnabled contains microsoft-6zPzfpLt

When finished, Save the trigger and tag setup. Submit your Google Tag Manager container changes aligned with your organization's policies.

When testing the Microsoft Consent Mode implementation, your organization will want to confirm three actions:

  • UET tags do not fire prior to consent action

  • UET tags do not fire if an end-user denies consent

  • UET tags fire only when an end-user grants consent

Review the tabs below for how to test your Microsoft Consent Mode implementation based on the tools available to your organization:

Navigate to the Console tab of your browser's Developer Tools and utilize window.uetq to check the firing of UET tags and that the ad_storage value is appropriately set in alignment with end-user choices.

Click here for additional information on utilizing UET Tag Helper to validate your organization's Microsoft Consent Mode implementation.

Download UET Tag Helper extension on your choice of browser and use the extension to inspect the asc parameter within UET events. This parameter indicates the consent status of the end-user.

Last updated