Correctly manage Bing Consent Mode on WordPress

How to implement Bing Consent Mode with PixelYourSite

Get expert tracking tips in your inbox

Join 65,000+ marketers and site owners who already get our best guides on Meta Pixels, CAPI, GA4, Google Ads, TikTok & Pinterest tracking, GDPR, and more.

* We don’t spam, and all our emails have an “Unsubscribe” link that works. 

Recommended Setup

Bing Tag with PixelYourSite

Add the Bing Tag with PixelYourSite dedicated add-on.

Manage consent with ConsentMagic

Manage consent with ConsentMagic. It has native integration with PixelYourSite and full support for Bing Consent Mode.

Alternative Setup 1

Bing Tag with PixelYourSite

Add the Bing Tag with the PixelYourSite dedicated add-on.

Manage consent with other consent solutions

Other consent plugins can use PixelYourSite's dedicated Bing Consent mode filter.They can find our filters explained on the plugin's Consent page. You need to contact your consent provider for details.

Alternative Setup 2

Bing Tag with PixelYourSite

Add the Bing Tag with the PixelYourSite dedicated add-on.

Enable PixelYourSite's dedicated option

On the Bing Tag Settings page, enable "Fire Bing tags with consent mode granted" to send the parameters with value "granted". This assumes you don't need permission from your visitors, or that you fire the Bing tag after getting permission. Suited for websites that use consent plugins that block the tag before getting visitors' consent.

What is Bing Consent Mode

Microsoft’s Universal Event Tracking (UET) Consent Mode lets you block advertising cookies (conversion tracking & remarketing) until a visitor explicitly opts in. Sites with traffic from GDPR regions must implement it; elsewhere it’s optional based on your privacy policy.

				
					// UET tag is added here
// You can set default Consent Mode right after the UET tag 
<script>
window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', {
    'ad_storage': 'denied'
    });
</script>

				
			

When the visitor accepts advertising cookies via your CMP/banner, the code should be adapted:

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

				
			

In this example, when a visitor lands on the site for the first time, the Bing/Microsoft Tag is fired but instructs Microsoft that consent is not granted. The visitor agrees to ad storage, and an update command is sent. The interaction with the visitor is done through a consent popup that informs about tracking and allows the visitor to express consent. 

How Bing Consent Mode should work for EU traffic

Under GDPR, visitors from EU countries must not be tracked or have advertising cookies set without their explicit consent. That means when an EU visitor lands on your site for the first time, your UET tag must send the consent parameter with the value "denied".

You must:

  1. Inform visitors how you intend to use their data (conversion tracking, remarketing).

  2. Ask their permission via a clear consent banner or CMP.

Visitors must be able to change their minds at any time. Every time consent changes, your UET tag immediately respects the new setting—ensuring no advertising cookies are dropped, and no conversion or remarketing data is recorded for non-consenting users.

How to check if Bing Consent mode works

You can use the Bing Pixel Helper Chrome extension.

Browse your site and open the extension. Go to the Events tab and click “Parameter details” for one of the reported events. Look for a parameter called “asc” and check its value.

It will show D for Denied, and G for Granted.

PRO TIP: Test your website in an incognito window. 

Don’t stop here!

Subscribe to get more tips on tracking, analytics, and GDPR.

We’ll send you practical guides on Meta Pixel, CAPI, GA4, Google Ads, TikTok, Pinterest, GDPR compliance, and more, right to your inbox.

* We don’t spam, and all our emails have an “Unsubscribe” link that works.