Integrating Microsoft Clarity Consent API with Shopify via CookieYes
Last updated on May 11, 2026
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
- Open the CookieYes App in Shopify.
- Go to Advanced Settings.

- Click the Enable button next to Microsoft Clarity Consent API Integration.

Option 2: If you are accessing through the CookieYes WebApp
- Login to your CookieYes WebApp.
- Select Advanced Settings from the top navigation bar.

- Enable Microsoft Clarity Consent API Integration.

Step 2: Install Microsoft Clarity App in your Shopify store
- In your Shopify dashboard, go to Apps.

- Search for Microsoft Clarity: AI Insights and choose Microsoft Clarity from the list.

- Click Install.

- Review the data access permissions and click Install.

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.
- Click Go to theme settings.

- In App embeds, enable Clarity JS from the left panel and click Save.

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.
- Click Link my existing Clarity project to link your existing Clarity project to Shopify.

- Provide your Clarity project ID and click Link Project.

- Click Send configuration email under Microsoft Clarity.

- In the email you receive, click APPROVE and sign in to Clarity to connect to the project.

Return to your Shopify dashboard and you should now see Microsoft Clarity installed in your Shopify store.
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:
- Open your Shopify store in an incognito window.
- Reject analytics cookies and confirm that Microsoft Clarity does not load.
- Accept analytics cookies and confirm that Microsoft Clarity tracking starts.
- 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.