> For the complete documentation index, see [llms.txt](https://docs.avada.io/cookie-help-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avada.io/cookie-help-center/integrations/integrate-with-microsoft-consent-mode-uet.md).

# Integrate with Microsoft Consent Mode (UET)

Hello there! We're here to guide you through the process of integrating with Microsoft Consent Mode Avada Cookie Consent. Microsoft Consent Mode allows you to adjust how Google services operate based on the consent status of your visitors.&#x20;

This guide will walk you through the steps to make this integration happen

### Step 1: Setting Up for Integration[​](https://help.avada.app/cookie/how-to-integrate-with-google-consent-mode/#step-1-setting-up-for-integration)

First things first, please ensure that you've set up UET Tag on your store. If you haven't done this yet, no worries! You can follow the instructions [here ](https://help.ads.microsoft.com/#apex/ads/en/56688/-1)to get that sorted out.

Once that's done, please navigate to your Shopify admin > Online store

From there, select 'Edit code' from the Actions dropdown button.

#### Edit code

Next, select the 'Assets' folder > Choose 'Add a new asset' and upload the file 'avada-cookiebar-mcm-integration.js'. You can download the file below

[avada-cookiebar-mcm-integration-v1.js](https://storage.googleapis.com/download/storage/v1/b/avada-cookie.appspot.com/o/integration%2Favada-cookiebar-mcm-integration-v1.js?generation=1729146716086356\&alt=media)

{% embed url="<https://app.arcade.software/share/gjdBtsOikiELsFybBczx>" %}
Edit theme code
{% endembed %}

#### Add js file

Now, open the 'theme.liquid' file in the 'Layout' folder. Look for the opening tag of the HTML head element - \<head> in the 'theme.liquid' file.

#### Paste code

Copy the code provided below and paste it just below your UET Tag&#x20;

```
<script async src="{{ 'avada-cookiebar-mcm-integration-v1.js' | asset_url }}"></script>
```

<figure><img src="/files/G8UfYnNfOlLj5Peums9L" alt=""><figcaption></figcaption></figure>

### Step 2: Integrating with Microsoft Consent Mode

Now, let's head back to the Microsoft Consent Mode integration screen.

Click on Integrations > Microsoft Consent Mode (UET)&#x20;

Click 'Turn on' to integrate your store with UET Tag.

{% embed url="<https://app.arcade.software/share/FSlbmI6j2XE4tmZf5Zzp>" %}
Turn on Microsoft Consent Mode
{% endembed %}

Microsoft Consent Mode (UET)&#x20;

Once the integration is successful, you can choose 'Turn off' at any time to stop the integration with Microsoft Consent Mode.

And there you have it! You've successfully integrated Microsoft Consent Mode with Avada Cookie Consent. If you have any questions or run into any issues, don't hesitate to reach out. We're here to help!

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.avada.io/cookie-help-center/integrations/integrate-with-microsoft-consent-mode-uet.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
