Microsoft Consent Mode (Advanced)
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:
Microsoft Consent Mode (Advanced) overview
In the advanced version of Microsoft Consent Mode, the Universal Event Tracking (UET) tag will still load when an end-user accesses your website (unlike the basic version) and do the following:
Set default consent status for
ad_storage. By default, the consent status is set todeniedunless otherwise configured by your organization. While consent isdenied, first-party UET cookies are not read and third-party cookies are only read for fraud and spam prevention.Wait for end-user interaction with the widget and update consent status of
ad_storageaccordingly. Only when an end-user grants consent to data collection, will first and third-party cookies be read and written for the UET tag.

Implement Microsoft Consent Mode (Advanced)
In order to successfully implement Microsoft Consent Mode (Advanced) for the regulation, your organization must configure the following:
Enable Microsoft Consent Mode (Advanced) for regulation
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.

Review the table below for information on each toggle in the integration configuration:
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 (Advanced) 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 accordance with a Microsoft Consent Mode (Advanced) setup, UET tags will still load when an end-user accesses the website. By default, the consent state for ad_storage will be denied unless configured otherwise. Only when an end-user grants consent to data collection, will first and third-party cookies be read and written for the UET tag.
In order to ensure UET tags are loaded (and the default status for ad_storage exposed) your organization must configure each UET tag to load only once the Didomi SDK is ready and Microsoft Consent Mode is set.
Utilize the Didomi <script> tag attributes to edit the UET tags on your website to include type="didomi/javascript" .
In order to ensure UET tags are loaded (and the default status for ad_storage exposed) your organization must configure UET tags to load once the Didomi SDK is ready and Microsoft Consent Mode is set.
From your organization's Google Tag Manager workspace, navigate to your UET tag and edit the trigger.

Use the Google Tag Manager workflow to configure a new trigger for the UET tag with the following fields:

When finished, Save the trigger and tag setup. Submit your Google Tag Manager container changes aligned with your organization's policies.
Test Microsoft Consent Mode (Advanced)
When successfully and appropriately configured, a Microsoft Consent Mode (Advanced) implementation will trigger UET tags but with the consent state of ad_storage defaulted to denied unless otherwise configured.
When testing the Microsoft Consent Mode (Advanced) implementation, your organization will want to confirm three actions :
UET tags load with
ad_storagedefaulted todeniedunless configured otherwiseUET tags update to show
ad_storageset todenieddue to end-user choiceUET tags update to show
ad_storageset togranteddue to end-user choice
How your organization tests that UET tag(s) are triggering as expected of a Microsoft Consent Mode (Advanced) setup is dependent on how you configured the implementation on the regulation:
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.
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