FRGet In Touch
← Tech stack

PostHog

An open-source product analytics platform that shows how people actually use your app: what they click, where they drop off, which features matter.

Type
Product analytics
Created by
PostHog Inc., open source (MIT) with paid cloud plans
Includes
Events, funnels, session replay, feature flags, A/B tests
In my stack
Understanding usage, or Plausible and Mixpanel when they fit better

What it is

PostHog records events from a website or app, such as a page viewed, a form submitted or a report exported, and turns them into answers: how many people complete sign-up, where they give up, which features are used every day and which are never opened. Session replay shows real sessions, with sensitive fields masked, to see where people struggle.

It also includes feature flags to release a feature to a few users first, A/B tests and surveys. It can be self-hosted or used as a cloud service hosted in the EU. Plausible is a simpler alternative for privacy-friendly website statistics without cookies, and Mixpanel is a mature product analytics tool with a strong focus on funnels and retention.

Why I use it

Decisions based on usage, not opinions. Before building a new feature, it’s worth knowing whether the current ones are used.

Problems found before users complain. A funnel shows the step where people give up, and a replay often shows why in seconds.

Safer releases. With feature flags, a new screen goes to 10% of users first, and can be switched off without a new deployment.

Control over data. Being open source, with EU hosting or self-hosting, makes privacy requirements easier to meet.

Where I use it

I add product analytics to web and mobile apps when the client wants to understand adoption: Next.js sites, React dashboards and React Native apps. I track a short list of events tied to business questions rather than every click, and keep personal data out of event properties. For a marketing site that only needs visitor statistics, I use Plausible instead.

Best use cases

  • SaaS products and apps that need to measure activation, adoption and retention.
  • Onboarding and sign-up flows, to find and fix the steps where people give up.
  • Gradual releases and experiments with feature flags and A/B tests.
  • Internal tools, to see which features teams actually rely on before investing more.

When I’d use something else

For a simple website, Plausible gives the essentials with no cookie banner. When the questions are about money and operations, like revenue per site or overdue actions, they belong in business reporting with Power BI, built on the database. And on apps used by employees, tracking must respect privacy law and agreements with staff representatives, so the plan should be agreed before anything is collected.

A small example

Setting up PostHog in a web app with EU hosting, tracking one meaningful event, and checking a feature flag.

import posthog from "posthog-js";

posthog.init("phc_your_project_key", {
  api_host: "https://eu.i.posthog.com", // hosted in the EU
  person_profiles: "identified_only",
});

// Track what matters to the business, not every click
posthog.capture("report_exported", { format: "pdf", pages: 12 });

// Release a feature to a few users first
if (posthog.isFeatureEnabled("new-dashboard")) {
  showNewDashboard();
}

Often used with

Want to know how people really use your app?

Get in touch and tell me about your project.