Articles on: Integrations

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

Here is how the script works:

Microsoft UET will be set based on a condition, which is checking 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 the below guide:

Microsoft UET Consent Mode Integration

Manual setup for the Microsoft UET's integration script:



NOTE: The below integration is only applicable if the service is added via a script placed in the theme files of the store. If the integration for the service is done through any other channel or service, please check the Help center for the relevant integration as per your case: 6. Integrate Google, Meta Pixel, etc

Enabling of the Microsoft consent mode - UET integration script

The process for initial manual integration for Microsoft UET, is the following:



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:

Download Microsoft UET integration script

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



If you have more than one tag, you can add the other IDs as well, by separating them with commas. Example: 123456,654321,6789523

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:





NOTE: Make sure to remove the added code before deleting the app. This way, no snippets of code will be left in your theme. For more information on what you should be aware of when deleting our app check this article of our FAQ page.

In case you need any further assistance with the integration setup, please reach out to our support at support@consentmo.com or via our live chat.

Updated on: 28/11/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!