> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.omegatheme.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# ✨ Microsoft UET & Clarity Consent Mode Integrated

The **Microsoft Universal Event Tracking (UET) & Clarity Consent Mode Integration** feature in Consentik provides a seamless way for merchants to integrate Microsoft’s UET and Clarity Consent Mode V2 on their e-commerce websites.
This feature ensures user privacy compliance while still allowing essential analytics and advertising tracking to function properly.

---

## **Feature Overview**
This feature allows merchants to:
* Enable **Microsoft UET** and **Microsoft Clarity Consent Mode V2** directly from the app.
* Automatically embed tracking scripts via **app embed**, with no need to manually edit theme files.
* Ensure that all Microsoft tracking respects users’ cookie consent preferences.

## **Accessing the Integration**
Navigate to:
**Consentik Admin → Integrations → Universal Event Tracking (UET)**
You will see the configuration panel as shown below:

## **How to Set Up**
### **Step 1: Activate the Integration**
Toggle **Active Universal Event Tracking** to enable the feature.

### **Step 2: Add Tracking IDs**
If you haven’t added your Microsoft tags yet:
1. Check **“Have NOT added UET tag on store yet?”** and enter your **UET Tag ID**.
2. Check **“Have NOT added CLARITY tag on store yet?”** and enter your **Clarity ID**.
> 💡 *If your UET or Clarity tags are already manually installed, you can leave the checkboxes unchecked.*
Consentik will automatically add both tags to your store through the app embed — **no manual code insertion into&#32;`theme.liquid`&#32;is needed.**

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1n7xab7.png)
---

### Default Consent Configuration

Upon integration of the generated code into the `theme.liquid` file, the app will default value of `ad_storage` to a '`denied`' state. This ensures that no data is collected without the explicit consent of the user.

### User Consent Interaction

When a user visits the merchant's website, they will be prompted to provide consent for various categories of cookies, including:

* **Marketing Cookies**: Related to advertising and marketing efforts.
    
* **Analytics Cookies**: Used for collecting data on user interaction and behavior.
    
* **Functionality Cookies**: Essential for certain website features and personalization.

### Updating Consent Status

If the user provides their consent:

1. **Consent Update**: The app will update `ad_storage` to '`granted`' for the cookie categories the user has accepted.
    
2. **Consent Storage**: The user's preferences are stored in a cookie on their device, ensuring that their choices are remembered for future visits.
    
3. **Automatic Consent Application**: On subsequent visits, the app will automatically read the stored cookie and apply the user's preferences without requiring them to consent again.

With this feature, merchants can manage user consent for cookies in a way that is compliant with privacy laws, user-friendly, and minimizes the impact on data collection for critical website functions. The process is designed to be transparent for users and straightforward for merchants to implement and manage.

### Test your UET consent mode setup

**Method 1: Using EUT Tag admin**

1. Go to **Microsoft Advertising Admin,** select **Coversions** -> **UET Tag**
    
2. Select to the tag you want to test, click to tab **Test your tag**

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/image_nbpd61.png)

1. Input your website URL and click to Open website URL
    
2. A new window will appear. If you see Consentik Cookie banner, click to Accept button and reload that window
    
3. Wait for 10-20 seconds to Microsoft update event from your site.
    
4. If you setup consent mode correctly, you can see the message below

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/image_1svp5pq.png)

**Method 2: Using Console on DevTool**

1. Open your site
    
2. Press button **F12** or `**Ctrl + Shift + J**` on Windows ( `**Cmd + Option + J**` on MacOS) or **Right Mouse** and select **Inspect** to open Console Tab on
    
3. Type `**window.uetq.uetConfig.consent**`
    
4. When cookie banner show, you can see the default consent status is false

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/image_ror36r.png)

5. When you click to "Accept" button, you can see an Update status change to true

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/image_17kaqjs.png)

If you **have trouble implementing** or testing Microsoft UET consent mode, please [contact us](mailto:contact@omegatheme.com).