Stack Picker
a developer-grade decision engine
Back to the picker
Product Analytics

PostHog

Open-source product analytics, feature flags, and session replay.

Official site
Monthly cost
$0+ / mo
1M events/mo free; usage-based
Popularity
4/5
LLM knowledge
4/5
Difficulty
Easy
#open-source#self-hostable#low-cost

What PostHog is good at

Strengths
  • +Open source + self-hostable
  • +All-in-one
  • +Generous free tier
Tradeoffs
  • UI can feel dense
  • Self-hosted ops nontrivial

Coding-agent prompt

You're working with PostHog. Open-source product analytics, feature flags, and session replay.

Best practices:
- Lean on: open source + self-hostable
- Lean on: all-in-one
- Lean on: generous free tier

Things to watch for:
- Watch out for: ui can feel dense
- Watch out for: self-hosted ops nontrivial

General guidance:
- Canonical docs: https://posthog.com — check here before inventing APIs.
- Keep secrets in environment variables, never commit them.
- Write TypeScript where the ecosystem supports it; add types to every exported function.
- Add tests for the critical paths before declaring the task done.
- Read-the-docs is usually faster than guessing — cite the docs page in code comments when you apply a non-obvious pattern.

Beginner's guide to PostHog

In one line: Open-source product analytics — see what users actually click in your app.

PostHog tracks user events (button clicks, sign-ups, page views) and helps you answer questions like 'what % of people who sign up come back?'. Also does session replays, feature flags, and A/B tests.

Browse all categories