PostHog is an open-source product analytics platform that lets you track product usage, build funnels, watch session replays, and roll out features with flags, all in one tool. Unlike persona-based analytics suites, PostHog is developer-friendly and can run in your own cloud. Here is how to stand up PostHog and use it to find and fix drop-off in your product.

TL;DR: Posthog Product Analytics at a Glance

  • PostHog combines product analytics, session replay, feature flags, and surveys in a single open-source platform.
  • It is developer-friendly: you send events with a lightweight SDK and can self-host or use the cloud.
  • Autocapture records clicks and pageviews automatically, so you get data before writing custom code.
  • Funnels, retention, and path analysis turn raw events into the moments where users drop off.
  • Session replay and feature flags let you connect what users do to what you ship.
  • It pairs well with a tracking plan and your warehouse, not as a replacement for either.

What Is Posthog and How Is It Different from Other Product Analytics Tools?

PostHog is a product analytics platform built for teams that want the data layer and the experimentation layer together. Where older tools split analytics, session replay, and feature flags across separate vendors, PostHog ships them as one product with a shared event model. That means a funnel, a replay, and a flag all reference the same user and the same events.

The open-source and self-hostable model is the other differentiator. You can run PostHog in your own cloud to keep data in your perimeter, or use PostHog Cloud and pay as you scale. If you are deciding how analytics fits into your stack overall, our guide to setting up product analytics for a startup walks the broader decision first.

How Do You Install Posthog and Send Your First Event?

Installation is a small SDK drop-in. The common steps:

  1. Create a project in PostHog Cloud or deploy the self-hosted stack via Docker or Helm.
  2. Add the PostHog library to your web, mobile, or backend code using your project API key.
  3. Initialize the client on app load so autocapture and identify calls fire.
  4. Confirm events arrive in the PostHog live events view within a minute.

Because the client autocaptures front-end interactions, you will usually see pageviews and clicks immediately without writing custom event code. Backend events use the same client or a server-side SDK with the same project key.

What Is Autocapture and When Should You Use It?

Autocapture automatically records frontend interactions such as pageviews, clicks, and form submissions, tagging them with the element type and text. It is the fastest way to get coverage without a long instrumentation backlog.

Use autocapture as your baseline, then layer custom events where you need precision. The trade-off is noise: autocapture can record more than you need, which is why most teams keep it on for product surfaces and add explicit events for revenue, activation, and key milestones. You can mask sensitive fields so autocapture never sends passwords or private data.

How Do You Track Custom Events and Properties in Posthog?

Custom events give you clean, named signals that survive UI changes. A typical pattern:

  • Capture a named event such as "subscription_started" with a property for plan and amount.
  • Set user properties with identify so you can segment by plan, cohort, or lifecycle stage.
  • Group events by account or organization for B2B products using the group analytics feature.
  • Keep a written tracking plan so event names stay consistent across teams.

Strong event naming is what makes funnels and retention trustworthy later. If you also instrument GA4, our notes on GA4 events explain how the event model differs and where to reuse definitions.

How Do You Build Funnels and Retention Charts?

A funnel is an ordered set of events that represents a key path, such as signup to activation to paid. In PostHog you pick the steps, choose a conversion window, and the chart shows where users fall out. Retention charts flip the question and show whether users who reached step one come back.

The habit is to build a small set of north-star funnels, not dozens. Watch the single step with the largest drop-off, then use session replay on that step to see what users actually experienced. That loop, funnel to replay to fix, is where PostHog earns its place.

How Do Session Replay and Feature Flags Fit into Posthog?

Session replay records real user sessions as video-like playback with the associated events overlaid, so you can watch exactly what happened before a drop-off or error. Feature flags let you roll a change out to a percentage of users or a specific cohort without a full deploy.

Together they close the loop between insight and action. You spot a funnel drop in analytics, watch the replay to understand it, then ship a fix behind a flag to the affected segment and measure the result, all inside one tool. That integration is the main reason teams consolidate on PostHog instead of stitching four vendors.

Posthog Versus Amplitude Versus Mixpanel: Which Should You Pick?

All three do event analytics, but they differ in posture.

ToolBest fitDifferentiator
PostHogTeams wanting analytics, replay, and flags together, often self-hostedOpen source, all-in-one, developer-friendly
AmplitudeLarger companies with a dedicated analytics functionDeep behavioral analytics and enterprise governance
MixpanelProduct teams focused on funnels and retentionPolished funnel and retention UX, strong querying

If you need one tool that also does replay and flags without extra contracts, PostHog is the efficient pick. If you already have a heavyweight analytics suite, PostHog may overlap, so weigh the integration benefit against the added surface area.

How Do You Connect Posthog to Your Marketing and Warehouse Stack?

PostHog is a product tool, but the events it captures are useful to marketing and data teams too. Practical connections:

  • Export events to your warehouse through PostHog's destinations so analysts query one source.
  • Send key product milestones back to your CRM as traits or events for lifecycle marketing.
  • Use the API to trigger external workflows when a user hits an activation threshold.
  • Keep a clear ownership boundary: product owns the event model, marketing consumes the outputs.

For the underlying collection pipeline, a server-side tracking approach can feed PostHog and your warehouse from one place, which keeps definitions consistent.

What Are Common Posthog Mistakes to Avoid?

The most common mistake is leaving autocapture fully open and then drowning in events you never analyze. Scope autocapture to the surfaces that matter, and reserve custom events for the metrics tied to revenue and activation. The second mistake is treating PostHog as a black box: without a written tracking plan, event names drift across teams and funnels stop being comparable. A third pitfall is skipping session replay until something breaks; watching replays on your top drop-off steps early saves weeks of guessing. Finally, do not silo the data. If product events never reach your warehouse or CRM, you lose the cross-channel view that makes the investment worthwhile.

Another avoidable error is over-relying on default retention charts without segmenting by plan or acquisition source. A blended retention curve hides the fact that paid cohorts often churn faster than organic ones, which changes where you spend. Pair retention with group analytics so you can compare cohorts by account size or channel, and revisit your conversion-value and event schema every quarter as the product evolves.

Frequently Asked Questions

Is Posthog Free?

PostHog has a free tier that covers a meaningful amount of events and product usage, which is enough for most early-stage teams to start. Paid plans scale with event volume, session replay storage, and advanced features. Self-hosting shifts the cost from subscription to infrastructure, which can be cheaper at high volume if you already run cloud infrastructure.

Does Posthog Require a Data Team to Use?

No. Product managers and engineers can get value from autocapture and prebuilt funnel and retention charts without a dedicated data team. As you grow, a data or analytics function helps govern the event model and warehouse exports, but the day-one experience is designed for product and engineering, not just analysts.

Can Posthog Replace Google Analytics?

For product usage and in-app behavior, PostHog covers and exceeds what many teams use Google Analytics for, and it adds replay and flags. It is less focused on anonymous web marketing reporting and SEO traffic, where GA4 or a dedicated web analytics tool still fits. Many teams run both: PostHog for product, GA4 for marketing web traffic.

Should You Self-Host or Use Posthog Cloud?

Use PostHog Cloud to start so you avoid infrastructure and get updates fast. Move to self-hosted when data residency, cost at scale, or custom deployment constraints justify running the stack yourself. The feature set is largely the same; the difference is who operates the servers and holds the data.

Key Takeaways

  • PostHog is an open-source, all-in-one platform for product analytics, replay, and feature flags.
  • Start with autocapture, then add custom events for revenue and activation milestones.
  • Funnels plus session replay is the core loop for finding and fixing drop-off.
  • Compare it to Amplitude and Mixpanel on integration and self-hosting, not just charts.
  • Export to your warehouse and CRM so product signals power marketing, not just dashboards.