instrument-product-analytics

Add PostHog event capture and user identification across client and server.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/FrekiManagarm/dunlo --skill instrument-product-analytics-frekimanagarm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: instrument-product-analytics
Source: https://github.com/FrekiManagarm/dunlo/tree/main/.agents/skills/instrument-product-analytics
Command: npx skills add https://github.com/FrekiManagarm/dunlo --skill instrument-product-analytics-frekimanagarm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates missing or inconsistent product analytics by helping you add PostHog event capture for real user actions, ensure users are identified, and include error tracking where it matters.

Core Features & Use Cases

  • PostHog SDK setup (when missing): Detects your platform, installs the appropriate PostHog SDK, and initializes it in the correct integration point.
  • Event tracking for meaningful actions: Plans and adds capture() calls for high-value conversions and behaviors (with minimal, targeted code changes).
  • User identification and error visibility: Adds identify() during login/signup flows and includes exception capture around critical boundaries.

Quick Start

Tell the AI to run the instrument-product-analytics workflow on your current codebase and add PostHog captures for your most valuable login, conversion, and error-prone flows.

Frequently Asked Questions about instrument-product-analytics

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

FAQPage Schema
How do I add PostHog event tracking to my application?

Adding PostHog event tracking involves detecting your platform, installing the appropriate SDK, and initializing it correctly. You then capture high-value conversion behaviors with minimal, targeted code changes to measure real user actions.

How do I identify users in PostHog during authentication flows?

To identify users in PostHog, add identify() calls during your login and signup authentication flows. This links captured events to specific users, ensuring accurate product analytics and behavior tracking.

What is the best way to set up PostHog environment variables without hardcoding secrets?

Setting up PostHog environment variables securely means defining required configuration keys without hardcoding secrets. This enables safe SDK initialization and ensures event capture functions correctly across your application.

Can I track server-side events with PostHog alongside client-side analytics?

Yes, tracking server-side events with PostHog is supported. When instrumenting analytics, the workflow captures applicable server-side events to ensure key conversion and error paths are tracked on both client and server.

How do I include error tracking in my PostHog product analytics implementation?

To include error tracking in PostHog, add exception capture calls around critical boundaries and error-prone flows. This ensures error visibility directly within your product analytics event data.