← Tools

Analytics

PostHog - the practical guide.

PostHog is an open-source product analytics platform, built by a UK-based team. It’s often chosen by developers and product teams who need more control over their data, or who have specific privacy concerns. Unlike many SaaS (software as a service) analytics tools, PostHog can be self-hosted, meaning you run it on your own servers. This is a big draw for companies handling sensitive user data or operating in regulated industries. It’s also popular for its suite of tools beyond just analytics, aiming to be a "developer-friendly" all-in-one platform for product growth. Many find its clear data ownership and open-source nature a refreshing change from locked-in proprietary solutions.

What PostHog does

PostHog gives you a comprehensive view of how users interact with your product. It tracks events—clicks, page views, form submissions—and allows you to build funnels to see conversion rates, understand drop-off points, and measure user journeys. You can define custom events without writing code, and its visual editor helps in setting these up. The platform also offers retroactive data capture, meaning you can decide to track a new event today and still analyse historical data for it, which is incredibly useful for agile product development and avoiding data black holes.

Beyond core analytics, PostHog includes session replays, allowing you to watch anonymous recordings of user sessions. This is excellent for debugging UI/UX issues and understanding user behaviour in a qualitative way. It also provides A/B testing capabilities, so you can run experiments on new features or UI changes and measure their impact directly within the platform. Feature flags are another key component, enabling you to roll out features to specific user segments, test in production, or quickly toggle features on and off without code deployments. These features together offer a powerful toolkit for product managers and developers.

PostHog fits into your stack as a primary data collection and analysis layer. Its open-source nature means it integrates deeply with developer workflows. You can send data to PostHog from various sources—web, mobile, backend—using its client libraries or directly via API. It supports integrations with tools like Slack for alerts, but its strength lies in being the central hub for product usage data. For advanced users, SQL access to the underlying data warehouse (often ClickHouse) allows for complex ad-hoc queries, making it a flexible choice for data-savvy teams who aren't afraid of diving into the raw data.

Who it's for

PostHog is ideal for product-led companies, particularly those with a strong engineering culture and teams of 10-200. It’s a great fit for startups and scale-ups building digital products where understanding user behaviour is critical for growth. Industries such as SaaS, fintech, and e-commerce, where data privacy and control are paramount, will find its self-hosting option particularly attractive. It’s designed for product managers and developers who want direct access to their data, the ability to customise their analytics, and a powerful suite of tools beyond just event tracking. If your job involves optimising user journeys, running experiments, or shipping features iteratively, PostHog should be on your radar.

Pricing, in rough terms

PostHog offers a free tier, 'Cloud Free', which includes up to 1 million events per month, 15,000 session recordings, and 3 feature flags, making it great for small projects or early-stage startups. Their 'Cloud Scale' plan starts at $200 per month, with pricing primarily driven by event volume (typically $0.00025 per event after free tier), session recordings ($1 per 1,000 recordings), and feature flag usage. They also have a 'Self-Hosted' option, which is free to deploy, though you'll incur infrastructure costs from your cloud provider. For enterprise needs, 'Cloud Enterprise' and 'Self-Hosted Enterprise' offer custom pricing with additional support and features. Pricing is transparent and consumption-based, which helps in scaling, but also means careful monitoring of usage.

When PostHog is the right fit

PostHog is the right pick if you value data ownership, need to self-host for compliance or privacy, or are looking for a comprehensive product suite beyond just analytics. It's excellent for product teams who want to move fast with A/B testing and feature flags directly within their analytics tool. If you have developers who are comfortable with open-source tools and want deep customisation, PostHog shines. It's not the right tool if you need highly simplified, marketing-focused dashboards out-of-the-box, where tools like Google Analytics (though free, less privacy-focused) or Mixpanel (more marketing-centric, easier setup for non-technical users) might be a better fit. Similarly, if your team lacks technical resources for self-hosting or customisation, a managed SaaS solution might be less of a headache.

Watch-outs

Be aware that if you self-host PostHog, you're responsible for managing your own infrastructure, which requires DevOps expertise and can become costly if not monitored. The initial setup and configuration, especially for complex tracking, can have a steeper learning curve than some more 'plug-and-play' SaaS alternatives. While the tool is powerful, getting the most out of it requires a good understanding of event-based data modelling. Ensure you define your events carefully from the start to avoid messy data later on. Also, support on the free tiers is community-based, so for mission-critical needs, a paid plan is essential for dedicated assistance.