Dark neon illustration of a website analytics dashboard connected to a privacy shield, consent controls and a tracking tag

Short answer: Microsoft Advertising UET Consent Mode tells the Universal Event Tracking tag how to handle advertising cookies based on a visitor’s consent choice. For Advanced Consent Mode, Microsoft’s recommended setup is to let UET load before the consent banner, start with ad_storage: denied, and update the state when the visitor makes a choice. This allows privacy-aware measurement without treating a declined choice as permission to set advertising cookies.

If you run Microsoft Ads for lead generation, ecommerce or remarketing, test the setup from the first page view through the final conversion event.

What Microsoft Advertising UET Consent Mode does

Universal Event Tracking (UET) is Microsoft Advertising’s website tag. Once installed across a site, it reports supported page and event activity to Microsoft Advertising. You then create conversion goals that define which actions count, such as a purchase, lead form submission or sign-up. UET provides the activity; the conversion goal defines what matters to the campaign.

Consent Mode adds a privacy signal to that process. It communicates whether advertising storage is granted or denied, so UET can adjust its cookie behaviour. Microsoft describes Advanced Consent Mode as a way to keep the tag active with a denied default and use aggregate, privacy-preserving signals to help model measurement gaps when a visitor declines consent. It does not turn a declined choice into consent, and it does not guarantee that every missed conversion will be recovered.

Basic vs Advanced Consent Mode

Microsoft documents two implementation approaches. In a basic setup, the tag is held back until the visitor grants consent. No UET activity is sent before that point. In an advanced setup, UET loads with the default consent state set to denied. The tag can send limited, cookieless signals while advertising cookies remain unavailable, then change behaviour if the visitor grants consent.

Choose the approach that fits your CMP and consent requirements. Advanced mode is not permission to preselect advertising consent or ignore a visitor’s choice.

Before you install Microsoft Advertising UET Consent Mode

Prepare the pieces before changing tags in production:

Use one source of truth for consent. If your CMP integrates with GTM, map its advertising category to UET instead of adding a second consent script.

Step 1: Install one UET tag across the website

In Microsoft Advertising, open Conversions and create or select the UET tag for the website. Microsoft supports direct code installation and tag managers. In GTM, use its official UET template to keep configuration in one place.

Set UET to fire on all pages. A site-wide tag provides activity for conversion goals and remarketing. Do not install the same UET ID through GTM, a theme, a plugin and a custom script at once.

Step 2: Set the default consent state to denied

For Advanced Consent Mode, Microsoft says UET must be able to read the default state before the consent banner runs. With a custom implementation, place the UET tag in the head before the CMP script, then set the default state to denied. The core command is:

window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', {
  'ad_storage': 'denied'
});

In GTM, use the official Microsoft Advertising UET template and configure consent through the supported template and CMP integration. Do not paste the same command into several custom HTML tags. The default must exist before UET processes the first page view.

Some CMPs are configured to block all marketing tags until a visitor clicks Accept. That can prevent Advanced Consent Mode from working because UET never loads to read the denied default. Microsoft’s guidance is to allow UET to execute with the denied state, while keeping advertising cookies unavailable until consent is granted. Confirm the exact configuration with your CMP provider.

Step 3: Update UET when the visitor makes a choice

When a visitor grants advertising consent, UET needs an explicit update. A custom implementation can use:

window.uetq = window.uetq || [];
window.uetq.push('consent', 'update', {
  'ad_storage': 'granted'
});

If the visitor rejects advertising cookies, keep or update the state to denied:

window.uetq = window.uetq || [];
window.uetq.push('consent', 'update', {
  'ad_storage': 'denied'
});

Connect these updates to actual CMP events. Do not send granted because the banner appeared, necessary cookies were accepted or a page loaded. The update must reflect the visitor’s advertising choice and remain in place on later page views, including for returning visitors.

If your CMP and GTM template already exchange consent signals, avoid adding manual updates unless the integration documentation specifically requires them. Two separate systems writing different states can cause inconsistent results.

Step 4: Test the consent flow in a real browser

Test in a clean browser profile or a private window with no saved consent. Use Microsoft’s UET Tag Helper extension and the browser developer tools. Check each stage separately:

  1. Before a choice: UET should load before the CMP, and the consent state should be denied. If your implementation blocks UET completely, you are testing a basic rather than an advanced setup.
  2. After Accept: the next UET events should carry the granted state.
  3. After Reject: the state should remain denied and advertising identifiers should not be attached as if consent had been granted.
  4. After changing preferences: reopen the banner, change the choice and confirm that later events reflect the new state.
  5. On another page: navigate to a product, service or contact page and confirm the saved state is still applied.

Microsoft’s consent documentation refers to an asc value in UET events. Use the Tag Helper and network requests to inspect the signal where available. Do not judge the implementation only by whether a cookie name appears in browser storage. Review the consent state and the request behaviour together.

Step 5: Check UET status and conversion goals

Open the UET tags area in Microsoft Advertising. Status can be unverified, active or inactive. Verification may take up to 24 hours after activity first reaches the tag. If it stays unverified, check the tag ID, page coverage, GTM trigger, consent order and network requests.

Then test the conversion goals. A destination URL goal should match the actual confirmation page. A custom event goal must match the event name and parameters sent by the site. For ecommerce, send the correct purchase value and currency if you use variable revenue. For lead generation, decide whether you want to count every submission or only one conversion per ad interaction, and keep test submissions out of campaign reporting.

Microsoft Advertising only attributes a conversion when its rules identify a qualifying ad interaction. A direct test form submission can prove that the event fires, but it does not prove that an ad-attributed conversion will appear in campaign reports.

Common UET Consent Mode mistakes

What businesses in Pakistan should check

If your campaigns target Pakistan only, do not assume every European requirement applies to every visitor. But websites can receive international traffic or run campaigns in the EEA, UK and Switzerland. Microsoft specifically calls out those regions for UET consent transmission. Check your target locations and applicable rules. A CMP default is not a substitute for that review.

Document the UET ID, CMP mapping, triggers and test results. Re-test after major site or tag changes.

For a wider tagging workflow, read the Google Tag Manager guide and the Google Consent Mode v2 audit. If your campaigns depend on lead forms, the GA4 form tracking guide can help you compare website events with your analytics reporting.

Official sources and further reading

Frequently asked questions

Does Advanced Consent Mode mean UET tracks people who reject cookies?

No. The default denied state prevents advertising cookie access. Microsoft describes Advanced Consent Mode as sending limited, cookieless signals that may support aggregate conversion modelling. It does not grant permission to set advertising cookies or identify a visitor who declined consent.

Should UET load before or after the cookie banner?

For Advanced Consent Mode, Microsoft says UET must load before the CMP or consent banner script so it can read the default denied state. If your CMP blocks UET completely until opt-in, that is a basic blocking setup, not the advanced flow Microsoft describes.

How long does Microsoft Advertising take to verify a new UET tag?

Microsoft says the UET status can take up to 24 hours to change from unverified after the tag starts receiving activity. Use UET Tag Helper and browser network requests to troubleshoot immediately rather than waiting for the dashboard alone.

Need help checking your Microsoft Ads tracking?

I can review your UET tag, GTM setup, CMP signals and conversion goals before you scale campaigns.