Skip to content
alinaqi avatar

Posthog Analytics

Analytics setup skill for PostHog covering event tracking, user identification, feature flags, and dashboards.

CCM score
54 of 100
skills.sh installs
831
GitHub stars
712
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers SDK setup for Next.js, React (Vite/CRA), Python (FastAPI/Flask), and Node.js (Express/Hono) backends
  • Includes environment variable patterns, user identification on signup, login, and logout, and event naming conventions
  • Enforces snake_case past-tense event names and a rule to track only events that inform decisions
  • Designed for product teams adding analytics, feature flags, or event tracking with PostHog

Install

$ npx -y skills add alinaqi/maggy --skill posthog-analytics -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

PostHog Analytics Skill

For implementing product analytics with PostHog - event tracking, user identification, feature flags, and project-specific dashboards.

Sources: PostHog Docs | Product Analytics | Feature Flags


Philosophy

Measure what matters, not everything.

Analytics should answer specific questions:

  • Are users getting value? (activation, retention)
  • Where do users struggle? (funnels, drop-offs)
  • What features drive engagement? (feature usage)
  • Is the product growing? (acquisition, referrals)

Don't track everything. Track what informs decisions.


Installation

Next.js (App Router)

npm install posthog-js
// lib/posthog.ts
import posthog from 'posthog-js';

Details

Repository
github.com/alinaqi/maggy
Categories
Marketing, SEO & Ads, Frontend & UI Code, Backend & APIs
First seen
May 16, 2026

More from alinaqi/maggy

All 54

Similar to Posthog Analytics

More Marketing, SEO & Ads