Loading

Help Guides

Documentation | Microsoft | Microsoft Advertising Consent Mode

Microsoft Advertising Consent Mode

Dedicated Okito help article for Microsoft Advertising Universal Event Tracking (UET) Consent Mode — how Okito integrates with Consent Mode and how Okito configures the ad_storage signal.

This page is the Okito support resource for Microsoft Advertising Consent Mode only. It does not describe the Okito marketing website, the general dashboard, or unrelated CMP features. It explains how the Okito CMP tag integrates with Microsoft Advertising UET and how consent is configured on every page that uses Okito together with a Microsoft UET tag.

1. Who this article is for?

Use this article if you need to:

  • Understand how Okito passes consent to Microsoft Advertising UET

  • Configure a site so Microsoft Advertising Consent Mode receives a valid ad_storage signal

  • Review Okito as a CMP that supports Microsoft Advertising Consent Mode (for example Microsoft Advertising help-centre evaluation)

Microsoft Advertising requires advertisers using UET in the European Economic Area (EEA), the United Kingdom, and Switzerland to send a consent signal — either UET Consent Mode or IAB TCF — from 5 May 2025. If no valid signal is sent, Microsoft may stop UET conversion tracking and remarketing lists.

6. Publisher implementation

Two pieces must be on the page. Okito configures Consent Mode; you still add the UET tag.

6.1 Prerequisites

  1. An Okito website with a published cookie banner.

  2. The Okito CMP install snippet on every page that runs Microsoft UET.

  3. A Microsoft Advertising UET tag ID, installed with the Microsoft UET snippet or the official UET tag in GTM

6.2 Recommended order in <head>

  1. Okito CMP script — creates uetq and configures consent default to denied .

  2. Microsoft UET tag — loads before banner interaction and reads the queued Consent Mode commands.

  3. Conversion / event calls that depend on UET — after both of the above.

6.3 Direct UET snippet (not GTM)

Keep your existing Microsoft UET base tag. Do not paste an extra consent default. Example structure:

<!-- 1. Okito CMP (configures Microsoft Advertising Consent Mode) -->
<script src="https://cdn.okitoapp.com/YOUR-OKITO-SCRIPT.js"></script>

<!-- 2. Microsoft Advertising UET tag (your tag ID) -->
<script>(function(w,d,t,r,u){ ... Microsoft UET loader ... })
(window,document,'script','//bat.bing.com/bat.js','uetq');</script>

Replace the Okito script URL and the Microsoft UET loader with the snippets from each product. The important configuration is: Okito first, UET second, both in <head> , no second consent default.

6.4 Do not

  • Hard-code ad_storage: 'granted' as the default.

  • Block the UET tag entirely until Accept All if you want Advanced Consent Mode (Okito already defaults to denied).

  • Expect Okito to fire conversions or to know your UET tag ID.

  • Map analytics consent to Microsoft ad_storage .

7. Google Tag Manager

If UET is loaded in GTM, Okito still integrates by writing window.uetq . Fire the Okito CMP tag as early as possible (Consent Initialization / All Pages, high priority). Fire the official Microsoft Advertising UET tag afterwards on All Pages.

Do not add a custom HTML tag that also pushes consent default if Okito is already on the page. If you use Microsoft’s official UET GTM template, do not enable a second “inherit Google Consent Mode” path that conflicts with Okito’s uetq updates. One owner of the Microsoft consent default is enough: Okito.

9. How to verify the integration?

Use Microsoft’s own checks on a page that has both the Okito CMP tag and the UET tag.

9.1 UET Tag Helper (Edge or Chrome extension)

  1. Install Microsoft’s UET Tag Helper.

  2. Load the page and wait for the UET Page Load event.

  3. Inspect the asc parameter: D when consent is denied, G when granted.

9.2 Browser console — commands Okito queued

window.uetq

Before a choice you should see a consent / default entry with ad_storage: 'denied'.  After Accept All you should see consent / update with granted.

9.3 Browser console — Microsoft UET runtime (after UET has loaded)

window.uetq.uetConfig.consent.enabled // true if Consent Mode is on window.uetq.uetConfig.consent.adStorageAllowed // false before grant / after deny; true after grant window.uetq.uetConfig.consent.enforced // false after the visitor has accepted or denied

These properties exist only after the Microsoft UET library has initialised. If they are undefined, UET has not loaded yet.

9.4 Network

In Developer Tools → Network, filter bat.bing.com. Confirm asc=D before a grant and asc=G after Accept All / advertising consent.

10. Troubleshooting

Symptom

What to check

window.uetq is undefined

The Okito CMP script is not on this page, or failed to run.

Default is missing

Another script replaced uetq after Okito. Keep one shared array.

asc=G before any click

A second snippet is granting consent. Remove extra consent default / granted code.

UET Tag Helper does not see Consent Mode

UET tag ID is missing, blocked, or loading only after the banner is closed (too late).

uetConfig.consent is undefined

UET library has not loaded. Confirm bat.bing.com/bat.js.

Accept All does not change ad_storage

The choice did not include the advertisement category (or TCF purposes 2/3).

Questions

Yes. This page covers only how Okito integrates with and configures Microsoft Advertising Consent Mode.

No extra Microsoft toggle is required. Publishing the Okito CMP tag configures Consent Mode automatically.

Yes, provided Okito runs first and you do not add a second consent-default tag. UET still reads  window.uetq .

Yes. Microsoft requires UET to load before banner interaction, with Consent Mode default set to denied. Okito sets that default as soon as its script runs.

Okito still configures default denied and updates after a choice. That is safe globally and matches Advanced Consent Mode.

Saving a new preference or using Reject All sends a new  consent update with the latest ad_storage value.