# Integrating Microsoft Clarity Consent API with Shopify via CookieYes

Integrate Microsoft Clarity with Shopify via CookieYes to enable consent-based tracking and privacy-compliant analytics.

---

**Categories:** , 
**Published:** July 27, 2026
**URL:** https://www.cookieyes.com/documentation/microsoft-clarity-with-shopify/

---

## Overview

This guide outlines how to integrate the Microsoft Clarity Consent API with your Shopify store via the CookieYes WebApp. By syncing these tools, you ensure Clarity tracking only activates after users grant permission through the CookieYes banner. This setup automates privacy compliance and protects your store's data integrity while respecting Shopify’s global consent standards.

## How the integration works

CookieYes communicates user consent choices to Microsoft Clarity through the Consent API. This ensures Clarity tracking scripts only activate after the required consent categories are accepted by the user.

## Prerequisites

- A CookieYes account.
- Administrator access to both your Shopify store and Microsoft Clarity.
- CookieYes is installed on your Shopify store with an active cookie banner.

## Steps to integrate Microsoft Clarity Consent API with Shopify via CookieYes

## Step 1: Enable Consent API Integration in CookieYes

Microsoft Clarity Consent API integration is enabled by default in CookieYes. If this integration is already enabled, you can skip this step. Otherwise, follow the instructions below to enable it.
You can enable **Microsoft Clarity Consent API Integration** in two ways — either from the **CookieYes Shopify App** or directly from the **CookieYes WebApp**.
**Option 1: If you are accessing through the CookieYes Shopify App**

1. Open the CookieYes App in Shopify.
2. Go to **Advanced Settings**.
![shopify-1.png](https://assets.cookieyes.com/shopify_1_1ad8f85a63.png)
3. Click the **Enable **button next to **Microsoft Clarity Consent API Integration**.
![shopify-2.png](https://assets.cookieyes.com/shopify_2_20317d812a.png)

**Option 2: If you are accessing through the CookieYes WebApp**

1. Login to your **CookieYes WebApp**.
2. Select **Advanced Settings** from the top navigation bar.
![shopify3.png](https://assets.cookieyes.com/shopify3_361a54a575.png)
3. Enable **Microsoft Clarity Consent API Integration**.
![shopify-4.png](https://assets.cookieyes.com/shopify_4_f0e1ba9945.png)

## Step 2: Install Microsoft Clarity App in your Shopify store

1. In your Shopify dashboard, go to **Apps**.
![shopify-5.png](https://assets.cookieyes.com/shopify_5_c122211e97.png)
2. Search for **Microsoft Clarity: AI Insights** and choose **Microsoft Clarity** from the list.
![shopify-6.png](https://assets.cookieyes.com/shopify_6_0c5433138f.png)
3. Click **Install**.
![shopify-7.png](https://assets.cookieyes.com/shopify_7_30f67b7343.png)
4. Review the data access permissions and click **Install**.
![shopify-8.png](https://assets.cookieyes.com/shopify_8_7c2b248dfc.png)

You will be redirected to your Shopify dashboard upon successful installation.

## Step 3: How to Configure Clarity in Shopify

Choose one of the following options to configure Clarity in Shopify based on your setup:
**Option A: Create a new Clarity project**
If you do not have an existing Clarity project outside of this setup, follow the below steps to configure Clarity.

1. Click **Go to theme settings**.
![shopify-9.png](https://assets.cookieyes.com/shopify_9_9e99fb6ce3.png)
2. In App embeds, enable **Clarity JS** from the left panel and click **Save**.
![shopify-10.png](https://assets.cookieyes.com/shopify_10_47749af52c.png)

**Option B: Connect existing Clarity project**
If you have already installed Clarity before setting up the app, you just need to connect your existing project by following the steps below.

1. Click **Link my existing Clarity project** to link your existing Clarity project to Shopify.
![shopify-11.png](https://assets.cookieyes.com/shopify_11_bfbabad3cd.png)
2. Provide your **Clarity project ID** and click **Link Project**.
![shopify-12.png](https://assets.cookieyes.com/shopify_12_fe74ff3f02.png)
3. Click **Send configuration email** under Microsoft Clarity.
![shopify-13.png](https://assets.cookieyes.com/shopify_13_4cd4d7b9e5.png)
4. In the email you receive, click **APPROVE** and sign in to Clarity to connect to the project.
![shopify-14.png](https://assets.cookieyes.com/shopify_14_2dea4a58b7.png)

Return to your Shopify dashboard and you should now see Microsoft Clarity installed in your Shopify store.
![shopify-15.png](https://assets.cookieyes.com/shopify_15_35c9683679.png)
It may take a few hours before session data appears in your Clarity dashboard.

## Step 4: Verify Consent-Based Tracking

To confirm that Clarity is responding correctly to user consent:
1. Open your Shopify store in an incognito window.
2. Reject analytics cookies and confirm that Microsoft Clarity does not load.
3. Accept analytics cookies and confirm that Microsoft Clarity tracking starts.
4. Check the Microsoft Clarity dashboard or your browser's developer tools to confirm that sessions are being recorded.

## Conclusion

Implementing the integration of Microsoft Clarity with Shopify via CookieYes establishes a privacy-first analytics strategy that balances sophisticated data collection with user transparency. As a result, your Shopify store stays ahead of regulatory requirements while ensuring every insight gathered is backed by verified customer consent.


---

## Structured Data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Article",
      "headline": "Integrating Microsoft Clarity Consent API with Shopify via CookieYes",
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://www.cookieyes.com/documentation/microsoft-clarity-with-shopify/"
      },
      "url": "https://www.cookieyes.com/documentation/microsoft-clarity-with-shopify/",
      "publisher": {
        "@type": "Organization",
        "name": "CookieYes",
        "url": "https://www.cookieyes.com",
        "logo": {
          "@type": "ImageObject",
          "url": "https://assets.cookieyes.com/cookieyes.png",
          "width": 250,
          "height": 60
        }
      },
      "description": "Integrate Microsoft Clarity with Shopify via CookieYes to enable consent-based tracking and privacy-compliant analytics.",
      "datePublished": "2026-05-11T05:48:19+00:00",
      "dateModified": "2026-05-11T00:00:00+00:00",
      "author": {
        "@type": "Person",
        "name": "CookieYes Doc Team"
      },
      "image": [
        "https://assets.cookieyes.com/cookieyes.png"
      ]
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://www.cookieyes.com/documentation/microsoft-clarity-with-shopify/#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://www.cookieyes.com/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Documentation",
          "item": "https://www.cookieyes.com/documentation/"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Features Documentation",
          "item": "https://www.cookieyes.com/category/documentation/features/"
        },
        {
          "@type": "ListItem",
          "position": 4,
          "name": "Integrating Microsoft Clarity Consent API with Shopify via CookieYes"
        }
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://www.cookieyes.com/#website",
      "url": "https://www.cookieyes.com/",
      "name": "CookieYes",
      "description": "CookieYes is a Google-certified consent management platform that helps businesses comply with GDPR, CCPA, and other global privacy laws.",
      "inLanguage": "en-US",
      "publisher": {
        "@id": "https://www.cookieyes.com/#organization"
      },
      "potentialAction": {
        "@type": "SearchAction",
        "target": {
          "@type": "EntryPoint",
          "urlTemplate": "https://www.cookieyes.com/?s={search_term_string}"
        },
        "query-input": {
          "@type": "PropertyValueSpecification",
          "valueRequired": true,
          "valueName": "search_term_string"
        }
      }
    },
    {
      "@type": "Organization",
      "@id": "https://www.cookieyes.com/#organization",
      "name": "CookieYes",
      "url": "https://www.cookieyes.com/",
      "logo": {
        "@type": "ImageObject",
        "@id": "https://www.cookieyes.com/#/schema/logo/image/",
        "inLanguage": "en-US",
        "url": "https://assets.cookieyes.com/cookieyes.png",
        "contentUrl": "https://assets.cookieyes.com/cookieyes.png",
        "width": 19701,
        "height": 3176,
        "caption": "CookieYes"
      },
      "image": {
        "@id": "https://www.cookieyes.com/#/schema/logo/image/"
      }
    }
  ]
}
```
