Microsoft Clarity Automation
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.
Best use case
Microsoft Clarity Automation is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
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.
Teams using Microsoft Clarity Automation should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/microsoft-clarity-automation/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Microsoft Clarity Automation Compares
| Feature / Agent | Microsoft Clarity Automation | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
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.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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](https://composio.dev/toolkits/microsoft_clarity) --- ## Setup 1. Add the Composio MCP server to your configuration: ``` https://rube.app/mcp ``` 2. Connect your Microsoft Clarity account when prompted. The agent will provide an authentication link. 3. 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), or `3` (last 72h) - `dimension1` -- first breakdown dimension - `dimension2` -- second breakdown dimension (optional) - `dimension3` -- third breakdown dimension (optional) Available dimensions: - `Browser` -- Chrome, Firefox, Safari, Edge, etc. - `Device` -- Desktop, Mobile, Tablet - `Country/Region` -- geographic location of users - `OS` -- Windows, macOS, iOS, Android, etc. - `Source` -- traffic source (e.g., google, direct, referral) - `Medium` -- traffic medium (organic, cpc, referral, etc.) - `Campaign` -- marketing campaign name - `Channel` -- traffic channel grouping - `URL` -- 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 `numOfDays` parameter 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/Region` not `country` or `region`). 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 `URL` combined 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](https://composio.dev)*
Related Skills
modelry-automation
Automate Modelry tasks via Rube MCP (Composio). Always search tools first for current schemas.
Mistral AI Automation
Automate Mistral AI tasks via Rube MCP (Composio): completions, embeddings, fine-tuning, and model management. Always search tools first for current schemas.
microsoft-agent-framework
Expert guidance for implementing AI agents and multi-agent workflows using Microsoft Agent Framework. Use when adding AI agent capabilities, implementing multi-agent orchestration patterns, integrating MCP tools, or building intelligent automation systems. Emphasizes gathering up-to-date information from official documentation before implementation.
maintainx-automation
Automate Maintainx tasks via Rube MCP (Composio). Always search tools first for current schemas.
mailsoftly-automation
Automate Mailsoftly tasks via Rube MCP (Composio). Always search tools first for current schemas.
mails-so-automation
Automate Mails So tasks via Rube MCP (Composio). Always search tools first for current schemas.
mailersend-automation
Automate Mailersend tasks via Rube MCP (Composio). Always search tools first for current schemas.
mailcoach-automation
Automate Mailcoach tasks via Rube MCP (Composio). Always search tools first for current schemas.
mailcheck-automation
Automate Mailcheck tasks via Rube MCP (Composio). Always search tools first for current schemas.
mailboxlayer-automation
Automate Mailboxlayer tasks via Rube MCP (Composio). Always search tools first for current schemas.
mailbluster-automation
Automate Mailbluster tasks via Rube MCP (Composio). Always search tools first for current schemas.
Lemlist Automation
Automate Lemlist multichannel outreach -- manage campaigns, enroll leads, add personalization variables, export campaign data, and handle unsubscribes via the Composio MCP integration.