Info
Content

Working with Microsoft Invest / Xandr Universal Pixel Consent Mode

The Xandr Consent Mode is a way to signal consent to Microsoft Invest Universal Pixel.

Enabling Xandr Consent Mode

In order to enable the Clarity Consent Mode in your CMP, please navigate to Menu > CMPs > Integrations and enable Xandr Consent Mode:

Setup default values

Depending on the load order of your website, you may want to set default values. This is done by adding the following line into the Xandr script code on your website:

<script>
//Original Xandr script code, unchanged
!function(e,i){if(!e.pixie){var n=e.pixie=function(e,i,a){n.actionQueue.push({action:e,actionValue:i,params:a})};n.actionQueue=[];var a=i.createElement("script");a.async=!0,a.src="//acdn.adnxs.com/dmp/up/pixie.js";var t=i.getElementsByTagName("head")[0];t.insertBefore(a,t.firstChild)}}(window,document);

//Add this line to your Xandr code: before the "init" call:
pixie('consent', 'default', { 'ad_storage':  'denied', 'wait_for_update': 1000});  

//your normal Xandr init call
pixie('init', 'REPLACE_WITH_UP_PIXEL_ID'); //Your Pixel ID
pixie('event', 'PageView');
</script>
Back to top