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.
SKILL.md
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.
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