product-analytics

Set up session recording and heatmap analytics without cookies, readable by AI through MCP.

579|76|Updated Oct 29, 2026
Ready to run
npx skills add https://github.com/phuryn/product-engineering --skill product-analytics-phuryn
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: product-analytics
Source: https://github.com/phuryn/product-engineering/tree/main/app-stack/skills/product-analytics
Command: npx skills add https://github.com/phuryn/product-engineering --skill product-analytics-phuryn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Product teams need to understand what users actually do after release—clicks, stopping points, abandoned flows—without building a complex analytics infrastructure or violating privacy regulations. Manual screenshot reviews and cookie consent banners create friction. ## Core Features & Use Cases - Cookieless Session Recording: Microsoft Clarity captures user interactions (clicks, scrolls, recordings) with storage consent explicitly denied, leaving no tracking cookies or persistent identifiers. - Heatmap Visualization: See where users click and scroll on the landing page without following them across visits. - AI-Readable Data: Use MCP servers (Microsoft Clarity MCP, PostHog hosted MCP) so the agent reads analytics directly—no manual screenshot extraction. - Use Case: After launching a landing page, you ask the agent "What percentage of visitors clicked the pricing button?" The agent queries Clarity through MCP, returns the metric from yesterday's sessions, and proposes next steps based on the data. ## Quick Start Install Microsoft Clarity on your landing page with cookies switched off in the dashboard, then connect Claude to Clarity's MCP server using your API token so it can read session metrics and recordings without you pasting screenshots into the chat.

Frequently Asked Questions about product-analytics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Microsoft Clarity without tracking cookies?▼

Switch Clarity's cookies off in the dashboard (Settings > Setup > Advanced Settings > Cookies), then add a consent denial script before the tag loads: `window.clarity('consentv2', { ad_Storage: 'denied', analytics_Storage: 'denied' })`. This queues the denial before Clarity initializes, preventing any cookies from being set.

Can I use PostHog analytics without cookies?▼

Yes. Enable cookieless mode in PostHog's project settings (Web analytics) and set `cookieless_mode: 'always'` in the JavaScript configuration. PostHog counts each visitor as new daily but avoids persistent tracking identifiers.

What happens when I use Clarity on pages beyond the landing page?▼

Clarity follows the browser history and records referrers for all pages a visitor reaches without a full page load. This exposes query parameters (ad click IDs, email subscriber IDs) and sign-up invitation tickets in the referrer chain. Only tag the landing page as a standalone document; other pages require separate owner decisions and consent workflows.

How does the AI agent read analytics data without manual screenshots?▼

Connect the agent to Microsoft's local Clarity MCP server (using your API token) or PostHog's hosted MCP server. The agent queries metrics, session recordings, and heatmap data directly through MCP tools, then answers your question based on the returned data.

Do I need a consent banner if I use cookieless analytics?▼

It depends on your legal jurisdiction and counsel's advice. EU regulators may classify any script sending visitor data as requiring consent, even without cookies. Cookieless Clarity removes the technical cookie barrier but not necessarily the legal consent question—discuss with counsel before launch.

What URL parameters should I mask in Clarity to protect privacy?▼

Ask Clarity support to mask ad click parameters (gclid, fbclid, msclkid, ttclid, li_fat_id) and email subscriber IDs (Klaviyo's _kx, Mailchimp's mc_eid). These are listed in PostHog's personal data audit and carry identifying information even without cookies. Never strip them in the browser—use Clarity's dashboard masking instead.