Microsoft Consent Mode - Universal Event Tracking Integration
The blocking will be done with an additional script. The script below will block the Microsoft UET tag based on its Container ID.
How it works
Microsoft UET will be set based on a condition that checks one of the cookies that are set by our app. This cookie is storing information on which cookie group is currently blocked, either based on the initial state of your cookie bar, or the cookie preferences of your customers. When the initial state is set to block the **Marketing **cookie group, or the customer opts out, the function which is setting the Microsoft UET tag will not be executed.
If you are a paid plan user, you can also take advantage of the **automated generation of the integration script **as mentioned in this guide.
Manual Integration
- Open Shopify Admin.
- Click on Online Store link in the left menubar.
- Click on the Actions dropdown button and select Edit Code from there.
- A new page will open with a list of files on the left side of the screen.
- Create a new liquid file in the **Snippets **section of the theme files, called
microsoft-uet-integration-script
- After that copy the content of the integration script provided below and paste it in the newly created Snippet file:
- Locate the original Microsoft UET script and do the following:
Step 1. Copy the trackng tag ID and replace the TAG ID part of the integration script
Step 3. Comment out or delete **the **original Microsoft UET scripts and save the changes.
- Open the
theme.liquid
file.
- Locate the opening
<head>
tag and after it, add the following line of code:
<!-- Microsoft UET integration script Consentmo -->
{% render 'microsoft-uet-integration-script' %}
A reference on the process can also be checked here:
Need help?
In case you need any assistance, please make sure to reach out to our support team via live chat or at support@consentmo.com
Updated on: 05/06/2025
Thank you!