Setting up Microsoft Ads UET consent for Campaign Pages
Ensuring compliance with Microsoft Advertising Universal Event Tracking (UET) requires obtaining explicit consent before storing or accessing cookies for advertising purposes. By configuring Google Tag Manager (GTM), you can align your UET tracking with the Fundraise Up cookie banner to ensure data is only collected after a supporter grants permission.
Create the Consent Variable
This variable detects the presence of the Fundraise Up marketing consent cookie.
- In Google Tag Manager, navigate to Variables and select New.
- Choose Variable Configuration and select 1st Party Cookie.
- Enter the cookie name:
fundraiseup_mark. - Name the variable Microsoft UET Consent and save it.
Create Triggers
You need two specific triggers: one to identify your Campaign Pages and another to fire when consent is confirmed.
Trigger 1: All Fundraise Up Campaign Pages
- Navigate to Triggers and select New.
- Select Trigger Configuration and choose Page View.
- Under This trigger fires on, select Some Page Views.
- Set the condition: Page Hostname equals your specific domain (for example:
example.donorsupport.co). - Name the trigger All Fundraise Up Campaign Pages and save it.
Trigger B: Microsoft Consent Trigger
- Navigate to Triggers and select New.
- Select Trigger Configuration and choose Click: All Elements.
- Under This trigger fires on, select Some Clicks.
- Set the condition: Microsoft UET Consent does not equal
undefined. - Name the trigger Microsoft Consent Trigger and save it.
Tag A: Set Default Microsoft Consent State
- Navigate to Tags and select New.
- Select Tag Configuration and choose Custom HTML.
- Paste the following code into the tag:
1<script>
2 window.uetq = window.uetq || [];
3 window.uetq.push('consent', 'default', {
4 'ad_storage': 'denied'
5 });
6</script>- Under Advanced Settings, set Tag firing options to Once per page.
- For the trigger, select Consent Initialization: All Pages.
- Name the tag Set Default Microsoft Consent State and save it.
Tag B: Grant Microsoft Consent
- Navigate to Tags and select New.
- Select Tag Configuration and choose Custom HTML.
- Paste the following code into the tag:
1<script>
2 window.uetq.push('consent', 'update', {
3 'ad_storage': 'granted'
4 });
5</script>- Under Advanced Settings, set Tag firing options to Once per page.
- Under Consent Settings, select Require additional consent for tag to fire and enter
ad_storage. - For the trigger, select Microsoft Consent Trigger.
- Name the tag Grant Microsoft Consent and save it.
Test the Setup
Testing ensures the tags behave correctly based on supporter interaction.
- In Google Tag Manager, select Preview and enter the URL of a Campaign Page.
- Confirm that your GTM container ID is correctly added to your Fundraise Up account settings.
- Once the Campaign Page opens, return to the Tag Assistant tab.
- Verify that the Grant Microsoft Consent tag has not fired yet.
- Accept the marketing cookies on the Campaign Page banner and click anywhere on the page.
- Check the Tag Assistant again: the Grant Microsoft Consent tag should now show as fired.
Publish Your Changes
Once testing is complete, make the configuration live for all supporters.
- Click the Submit button in the top right corner of the GTM interface.
- Enter a descriptive version name, such as Added Microsoft UET Consent Logic.
- Click Publish.
Related articles
Microsoft Advertising is a pay-per-click ad platform for Bing, Yahoo, and DuckDuckGo. This article explains how to send Fundraise Up donation conversions to Microsoft Advertising using Google Tag Manager