---
title: "Microsoft Clarity consentv2 API: Setup Guide | CookieBeam"
description: "Clarity's consentv2 API explained: the October 2025 enforcement date, ad_Storage vs analytics_Storage signals, case sensitivity, and manual implementation."
url: "https://cookiebeam.com/guides/microsoft-clarity-consent-mode"
lang: "en"
last_updated: "2026-09-18T19:28:21.284Z"
---

# Microsoft Clarity Consent Mode: consentv2 API and Manual Setup

Learn how Microsoft Clarity uses consent mode to comply with privacy regulations. Understand the October 2025 deadline, consent types, and how to implement Clarity's consentv2 API.

> **Note: Which Microsoft consent guide do you need?**
>
> - **This guide**: Clarity's `consentv2` API, manual implementation, and the October 2025 deadline.
> - [CookieBeam Clarity bridge](https://cookiebeam.com/guides/microsoft-clarity-consent-mode-cookiebeam-2026): how CookieBeam sends Clarity consent signals automatically.
> - [UET consent mode explained](https://cookiebeam.com/guides/microsoft-advertising-uet-consent-2026): the May 2025 UET deadline and `ad_storage` signal.
> - [CookieBeam UET bridge](https://cookiebeam.com/guides/microsoft-advertising-uet-consent-mode-cookiebeam-2026): how CookieBeam sends UET consent signals.
> - [Clarity and Bing Ads together](https://cookiebeam.com/guides/microsoft-consent-mode-clarity-bing-ads-2026): combined setup for both tools in one pass.

## What is Microsoft Clarity?

Microsoft Clarity is a free behavioral analytics tool that helps website owners understand how visitors interact with their sites through features like session recordings and heatmaps.

## The October 2025 Deadline

Starting **October 31, 2025**, Microsoft Clarity will begin enforcing consent requirements for visitors from the EEA, United Kingdom, and Switzerland.

## Data Clarity Collects

### Cookies Used

- `_clck` - Stores a unique user ID (12 months)
- `_clsk` - Connects page views into a session (1 day)

### Data Categories

1. **Analytics Storage** (`analytics_Storage`) - Session recordings, heatmaps, user behavior tracking
2. **Ad Storage** (`ad_Storage`) - Required when Clarity data is connected to advertising platforms

## The consentv2 API

```javascript
window.clarity = window.clarity || function(){
  (window.clarity.q = window.clarity.q || []).push(arguments);
};

window.clarity('consentv2', {
  'ad_Storage': 'granted',
  'analytics_Storage': 'granted'
});
```

> **Warning: Important: Case Sensitivity**
>
> Clarity uses capital S in `ad_Storage` and `analytics_Storage`. This differs from Google's lowercase versions.

## Integration with Microsoft Advertising (UET)

```javascript
// Microsoft UET uses different API
window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', {
  'ad_storage': 'denied'
});

// Microsoft Clarity
window.clarity('consentv2', {
  'ad_Storage': 'denied',
  'analytics_Storage': 'denied'
});
```

## How CookieBeam Handles This

CookieBeam automatically manages Microsoft Clarity consent mode when you enable Microsoft Consent Mode in your banner settings.

> **Tip: Enable Microsoft Consent Mode**
>
> In your CookieBeam dashboard, go to Banner Settings and enable Microsoft Consent Mode to automatically handle consent for both UET and Clarity.
