Automate user behavior analytics with Microsoft Clarity -- export heatmap data, session metrics, and engagement analytics segmented by browser, device, country,
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-microsoft-clarity-automation-0d21140faa13 ,按照其中的说明把「Microsoft Clarity Automation」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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://rube.app/mcp
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 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 URLsExample prompt: "Export Clarity data for the last 24 hours broken down by Device and Country/Region"
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"
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"
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"
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"
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"
numOfDays parameter only accepts values of 1, 2, or 3. For longer historical analysis, you need to run exports periodically and aggregate them externally.Country/Region not country or region). Case and slashes matter.URL combined with other dimensions can produce large response payloads. Consider narrowing your time window or using fewer dimensions.| 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