Microsoft clarity automation

From ComposioHQ/awesome-claude-skills · View interactive version

Microsoft clarity automation is an AI agent skill from the GitHub repository ComposioHQ/awesome-claude-skills. 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.

How to use this skill

Skill file

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

  1. Add the Composio MCP server to your configuration:

```

https://rube.app/mcp

```

  1. Connect your Microsoft Clarity account when prompted. The agent will provide an authentication link.
  2. 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:

Available dimensions:

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


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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.