# Integrating Microsoft Clarity Consent API with Shopify via CookieYes

> For the complete site index, see [llms.txt](/llms.txt). Every page is also available as Markdown: replace the trailing slash with `.md` (`/pricing/` becomes `/pricing.md`), or send `Accept: text/markdown` to the page URL itself.

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

---

**Categories:** Features Documentation, Integrations Documentation, Shopify
**Last updated:** October 15, 2026
**URL:** https://www.cookieyes.com/documentation/microsoft-clarity-with-shopify/

---

## Overview

This guide explains how to integrate the Microsoft Clarity Consent API with your Shopify store using the CookieYes app. Once integrated, Clarity respects the consent choices visitors make on your CookieYes cookie banner and only sets cookies after they give consent.

## How the integration works

CookieYes passes visitors' consent choices to Microsoft Clarity through the Consent API. Clarity sets cookies only after visitors accept analytics cookies.

> **Note**

> Clarity continues to record sessions when visitors reject cookies, but without setting cookies.
>

## Prerequisites

- The CookieYes app installed on your Shopify store with the cookie banner active. For setup steps, see [Shopify setup guide](https://www.cookieyes.com/documentation/how-to-install-and-setup-cookieyes-shopify/).

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

## Step 1: Enable Consent API Integration in CookieYes

The Microsoft Clarity Consent API integration is on by default. To check it or turn it on:
1. In your Shopify admin, go to **CookieYes** > **Integrations**.
2. On the **Microsoft Clarity** card, click **Configure**.
3. Turn on **Microsoft Clarity Consent API**.

![enable api intgn](https://assets.cookieyes.com/enable_api_intgn_8538e7e943.gif)

## Step 2: Install the Microsoft Clarity app

1. In your Shopify dashboard, go to **Apps**.
![shopify-5.png](https://assets.cookieyes.com/shopify_5_c122211e97.png)
2. Search for **Microsoft Clarity**, then select it from the results.
![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)

After installation, you're redirected to your Shopify admin.

## Step 3: Configure Microsoft Clarity

1. In your Shopify admin, open the **Microsoft Clarity** app.
2. In the side panel, select **Setup**.
3. Under **Advanced settings**, turn on **Cookies**.
4. Go to your Clarity dashboard to view session data.

![clarity dashboard](https://assets.cookieyes.com/clarity_dashboard_0b1723ccc3.gif)

> Session data can take a few hours to appear in your Clarity dashboard.
>

## Step 4: Verify consent-based tracking

To confirm that Clarity respects visitor consent:
1. Open your Shopify store in an incognito window.
2. Reject analytics cookies. In your browser's developer tools, confirm that no Clarity cookies (such as `_clck` and `_clsk`) are set.
3. Accept analytics cookies and confirm that the Clarity cookies are set.
4. Check your Clarity dashboard to confirm that sessions are recorded.

## Conclusion

Your Shopify store now shares visitors' consent choices with Microsoft Clarity, so Clarity only sets cookies after visitors give 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://www.cookieyes.com/cookieyes-logo.png",
          "width": 2048,
          "height": 2048
        }
      },
      "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-10-15T07:14:33+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",
          "item": "https://www.cookieyes.com/documentation/microsoft-clarity-with-shopify/"
        }
      ]
    },
    {
      "@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://www.cookieyes.com/cookieyes-logo.png",
        "contentUrl": "https://www.cookieyes.com/cookieyes-logo.png",
        "width": 2048,
        "height": 2048,
        "caption": "CookieYes"
      },
      "image": {
        "@id": "https://www.cookieyes.com/#/schema/logo/image/"
      }
    }
  ]
}
```
