Microsoft Clarity Automation
SkillWeb & browsingThis skill connects your AI to Microsoft Clarity so it can pull your user behavior analytics whenever you ask. Once added, your AI can export heatmaps, session metrics, and engagement analytics, with results broken down by browser, device, country, or traffic source.
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add the skill and connect your Microsoft Clarity account, then ask your AI to export the analytics you want, such as heatmaps or session data.
Then ask your AI: use the Microsoft Clarity Automation skill
What your AI can do with it
- Export heatmap data from Microsoft Clarity
- Pull session metrics on demand
- Retrieve engagement analytics
- Segment results by browser, device, country, or traffic source
- Automate regular exports of your user behavior data
What this skill tells your AI
The instructions your AI receives, as published by composio-community/awesome-codex-skills in composio-skills/microsoft-clarity-automation/SKILL.md and read by ahel’s review.
Export Microsoft Clarity user behavior analytics directly from Claude Code. Pull heatmap data, session metrics, and engagement insights segmented by multiple dimensions without leaving your terminal.
Toolkit docs: composio.dev/toolkits/microsoft_clarity
Setup
- Add the Composio MCP server to your configuration:
https://rube.app/mcp - Connect your Microsoft Clarity account when prompted. The agent will provide an authentication link.
- Ensure your Clarity project has sufficient data collection enabled for the dimensions you want to analyze.
Core Workflows
1. Export Recent Analytics Data
Export Clarity analytics data for the last 1-3 days, segmented by up to three dimensions simultaneously.
Tool: MICROSOFT_CLARITY_DATA_EXPORT
Key parameters:
numOfDays(required) -- number of days to export:1(last 24h),2(last 48h), or3(last 72h)dimension1-- first breakdown dimensiondimension2-- second breakdown dimension (optional)dimension3-- third breakdown dimension (optional)
Available dimensions:
Browser-- Chrome, Firefox, Safari, Edge, etc.Device-- Desktop, Mobile, TabletCountry/Region-- geographic location of usersOS-- Windows, macOS, iOS, Android, etc.Source-- traffic source (e.g., google, direct, referral)Medium-- traffic medium (organic, cpc, referral, etc.)Campaign-- marketing campaign nameChannel-- traffic channel groupingURL-- specific page URLs
Example prompt: "Export Clarity data for the last 24 hours broken down by Device and Country/Region"
2. Device Performance Analysis
Analyze how user behavior differs across device types to optimize responsive design.
Tool: MICROSOFT_CLARITY_DATA_EXPORT
Configuration: numOfDays: 3, dimension1: "Device", dimension2: "Browser"
Example prompt: "Show me Clarity metrics for the last 3 days by Device and Browser"
3. Traffic Source Breakdown
Understand which traffic sources drive the most engaged users.
Tool: MICROSOFT_CLARITY_DATA_EXPORT
Configuration: numOfDays: 2, dimension1: "Source", dimension2: "Medium"
Example prompt: "Export Clarity data for the last 48 hours broken down by Source and Medium"
4. Geographic User Behavior
Analyze user engagement patterns across different countries and regions.
Tool: MICROSOFT_CLARITY_DATA_EXPORT
Configuration: numOfDays: 3, dimension1: "Country/Region", dimension2: "Device"
Example prompt: "Get Clarity data for the last 72 hours segmented by Country/Region and Device type"
5. Page-Level Performance
Examine which specific URLs have the highest or lowest engagement metrics.
Tool: MICROSOFT_CLARITY_DATA_EXPORT
Configuration: numOfDays: 1, dimension1: "URL", dimension2: "Device"
Example prompt: "Export yesterday's Clarity data broken down by URL and Device"
6. Campaign Attribution Analysis
Evaluate marketing campaign effectiveness through user behavior metrics.
Tool: MICROSOFT_CLARITY_DATA_EXPORT
Configuration: numOfDays: 3, dimension1: "Campaign", dimension2: "Channel", dimension3: "Device"
Example prompt: "Show Clarity engagement data for the last 3 days by Campaign, Channel, and Device"
Known Pitfalls
- Limited time window: Data export is limited to the last 1, 2, or 3 days only. The
numOfDaysparameter only accepts values of 1, 2, or 3. For longer historical analysis, you need to run exports periodically and aggregate them externally. - Dimension name exact match: Dimension values must match exactly as listed (e.g.,
Country/Regionnotcountryorregion). Case and slashes matter. - Maximum three dimensions: You can segment by up to three dimensions per export. For more complex analysis, run multiple exports with different dimension combinations.
- Data availability lag: Clarity data may have a short processing delay. Very recent sessions (last few minutes) may not appear in exports.
- Single tool limitation: The Clarity integration currently offers only the data export tool. For heatmap visualizations and session recordings, use the Clarity web dashboard directly.
- Response size: Exports with high-cardinality dimensions like
URLcombined with other dimensions can produce large response payloads. Consider narrowing your time window or using fewer dimensions.
Quick Reference
| Tool Slug | Description |
|---|---|
MICROSOFT_CLARITY_DATA_EXPORT | Export analytics data with up to 3 dimensional breakdowns |
Available Dimensions:
| Dimension | Description |
|---|---|
Browser | Web browser (Chrome, Firefox, Safari, etc.) |
Device | Device type (Desktop, Mobile, Tablet) |
Country/Region | Geographic location |
OS | Operating system |
Source | Traffic source |
Medium | Traffic medium |
Campaign | Marketing campaign |
Channel | Traffic channel grouping |
URL | Specific page URL |
Powered by Composio
Signals
- GitHub stars
- 17k
- Forks
- 2k
- Last commit
- Jul 2026
ahel review
S4info
community integration, published by composio-community, not microsoft
Automated review, not a security audit. Ruleset v1+k2.
Others that do the same job
Advanced
- Item type
- skill
- Key
microsoft-clarity-automation- Source
- github.com/composio-community/awesome-codex-skills
github.com/composio-community/awesome-codex-skills
More in Web & browsing
Skill · browser-use
More in Web & browsingwebapp-testing
Skill · anthropics
More in Web & browsingplaywright-cli
Skill · microsoft
More in Web & browsingbenchmark
Skill · affaan-m
More in Web & browsingopen-source
Skill · browser-use
More in Web & browsingimpeccable
Skill · pbakaus
More in Web & browsing