Microsoft Clarity Automation
Automates user behavior analysis with Microsoft Clarity. Exports heatmap data and session metrics to better understand your visitors.
What it does
This tool lets you download user behavior analysis data from Microsoft Clarity. You can get insights into how users interact with your website, broken down by categories like browser, device, or country.
When to use it
- ✓When you want to see which browsers your users use most.
- ✓To understand where your visitors come from (country, traffic source).
- ✓To compare how mobile and desktop users interact with your site.
Example of what to ask your AI
“Show me Clarity data for the last 2 days, broken down by device and country.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
You connect your Microsoft Clarity account. Then, you ask the AI to export the data, specifying how many days and which categories (like device or country) you want to analyze.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add ComposioHQ/awesome-claude-skills --skill Microsoft Clarity AutomationOr download just the file:
curl -L https://raw.githubusercontent.com/ComposioHQ/awesome-claude-skills/master/composio-skills/microsoft-clarity-automation/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Microsoft Clarity Automation
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.
…
FAQ
Can I see data older than 3 days?
No, this tool only allows downloading data from the last 1, 2, or 3 days.
Can I break down data by many categories at once?
You can break down the data by up to three categories (dimensions) at a time.
Do I need to install anything on my website?
No, you just need to connect your Microsoft Clarity account. The tool fetches the data directly from there.
Details
Original description by the author
Automate user behavior analytics with Microsoft Clarity -- export heatmap data, session metrics, and engagement analytics segmented by browser, device, country, source, and more through the Composio Microsoft Clarity integration.
Popularity
- GitHub stars
- 77k
- Ranking position
- #1349
- License
- —
- Updated
- 9/18/2026
Comments
- …
More skills from this repository
artifacts-builder
Helps your agent build complex user interfaces. It uses modern technologies to create rich, interactive web pages.
ComposioHQ/awesome-claude-skills
brand-guidelines
Helps your agent apply official brand colors and fonts to materials. It's useful for maintaining visual identity in any piece that needs to look like the company's.
ComposioHQ/awesome-claude-skills
canvas-design
Lets your agent create original visual art in .png and .pdf. Use it when the user asks to create a poster, art, or other static design.
ComposioHQ/awesome-claude-skills
changelog-generator
Helps your agent create user-facing release notes from code commits. It transforms technical information into easy-to-understand text.
ComposioHQ/awesome-claude-skills
Similar skills
data-throughput-accelerator
Makes your agent speed up the movement of large data volumes. It finds bottlenecks and ensures data is transferred quickly and correctly.
affaan-m/ECC
inventory-demand-planning
Helps your agent predict product demand in stores. It optimizes stock and plans when to run promotions to sell more.
affaan-m/ECC
market-research
Helps your agent conduct market research and competitive analysis. Provides summaries with source attribution.
affaan-m/ECC