Updated March 2026 · 10 min read

PostHog vs Heap: Comprehensive Comparison 2026

PostHog and Heap both promise product analytics without the traditional event-tracking headache, but they come at the problem from very different directions. PostHog is open-source and bundles analytics with feature flags, session replay, and A/B testing. Heap pioneered auto-capture analytics as a focused SaaS platform. Here's how they compare across every dimension that matters.

PostHog Overview

PostHog is an open-source product analytics platform founded in 2020 by James Hawkins and Tim Glaser. What started as an open-source alternative to Mixpanel has evolved into an all-in-one product OS that bundles product analytics, session recording, feature flags, A/B testing, and a data warehouse. PostHog can be self-hosted on your own infrastructure or used as a managed cloud service. The codebase is MIT-licensed and has over 20,000 GitHub stars. PostHog uses ClickHouse as its analytics database, which gives it excellent query performance even at scale. The company has raised over $75 million and operates with a distinctive transparent culture — their entire handbook, financials, and strategy are public. PostHog's SDK supports web, iOS, Android, React Native, Python, Node, Ruby, Go, and more.

Heap Overview

Heap is a product analytics platform founded in 2013 that pioneered the concept of auto-capture — automatically tracking every user click, pageview, form submission, and interaction without requiring manual event instrumentation. Heap was acquired by Contentsquare in September 2023, which expanded its capabilities in the digital experience analytics space. Heap's core value proposition is that you never lose data because you forgot to instrument an event; everything is captured retroactively, and you define events after the fact using a visual labeling interface. The platform includes funnel analysis, retention analysis, path analysis (Heap Journeys), and user segmentation. Heap supports web and mobile (iOS and Android) with automatic event capture, and offers integrations with Salesforce, HubSpot, Marketo, and Segment.

Feature Comparison

Feature PostHog Heap
Auto-Capture Events ✓ Yes (opt-in) ✓ Yes (core feature)
Retroactive Event Definition ● Limited ✓ Full retroactive analysis
Session Replay ✓ Built-in ✓ Via Contentsquare
Feature Flags ✓ Built-in ✗ No
A/B Testing ✓ Built-in experimentation ✗ No native
Self-Hosting ✓ Docker / Kubernetes ✗ Cloud only
Open Source ✓ MIT License ✗ Proprietary
Path / Journey Analysis ✓ User paths ✓ Heap Journeys
Data Warehouse ✓ Built-in (ClickHouse) ● SQL export / Connect
CRM Integrations ● Via webhooks / API ✓ Salesforce, HubSpot native

Auto-Capture: The Core Difference

Heap was built from the ground up around auto-capture. Every interaction a user takes on your site or app is automatically recorded. When a product manager asks "how many people clicked that button we added last month?", you don't need to scramble to add tracking — the data is already there. You retroactively define events using Heap's visual labeling tool, which lets you point and click on UI elements to create named events from historical data. This retroactive capability is Heap's killer feature and the reason many teams choose it.

PostHog also supports auto-capture, but it works differently. PostHog's auto-capture records clicks, pageviews, and form submissions automatically, but the retroactive event definition is more limited. PostHog's strength is that you can combine auto-captured data with custom events sent via SDK, and then correlate that data with feature flags and experiments in one platform. Most PostHog power users end up instrumenting key events manually for precision and using auto-capture as a safety net.

Pricing Comparison

PostHog uses transparent, usage-based pricing with a generous free tier. The free plan includes 1 million events per month, 5,000 session recordings, 1 million feature flag requests, and unlimited team members. Beyond that, product analytics costs $0.00031 per event (with volume discounts), session replay costs $0.005 per recording, and feature flags cost $0.0001 per request. There are no per-seat charges at any tier. Self-hosting is free with no event limits, though you pay for your own infrastructure.

Heap's pricing is less transparent. The Free plan supports up to 10,000 monthly sessions with core analytics features. The Growth plan starts around $3,600/year and scales based on session volume. Pro and Premier tiers offer account-level analytics, advanced data governance, and dedicated support at custom pricing. Following the Contentsquare acquisition, Heap's pricing structure has been shifting, and enterprise deals often bundle Heap with Contentsquare's broader DX analytics suite.

For a product with 50,000 monthly active users generating roughly 5 million events per month, PostHog Cloud would cost approximately $100-150/month. Heap Growth for the equivalent session volume would likely run $5,000-10,000/year. The pricing gap widens significantly at scale, where PostHog's volume discounts and self-hosting option provide substantial cost advantages.

PostHog Pros and Cons

Pros

  • + All-in-one platform: analytics, flags, experiments, replay in one tool
  • + Open source with full self-hosting option for data control
  • + Transparent usage-based pricing with no per-seat fees
  • + Generous free tier covers most early-stage startups
  • + Excellent developer experience — SDKs, API, SQL access

Cons

  • - Retroactive event analysis is weaker than Heap's
  • - Self-hosting requires significant DevOps investment (ClickHouse, Kafka)
  • - UI can feel overwhelming given the breadth of features
  • - Native CRM and marketing tool integrations are limited
  • - Being a generalist platform means each module is less deep than best-of-breed

Heap Pros and Cons

Pros

  • + Best-in-class auto-capture with true retroactive event definition
  • + Low implementation effort — start getting data in minutes
  • + Visual event labeling makes analytics accessible to non-engineers
  • + Strong native CRM integrations (Salesforce, HubSpot, Marketo)
  • + Contentsquare acquisition adds DX analytics capabilities

Cons

  • - No feature flags or A/B testing — requires additional tools
  • - No self-hosting option — all data on Heap's cloud
  • - Opaque pricing that can get expensive at scale
  • - Auto-capture generates large data volumes that can slow queries
  • - Uncertainty around product direction post-Contentsquare acquisition

Session Replay Comparison

PostHog includes session replay as a first-class feature. You can watch recordings of user sessions, filter by events or user properties, and jump directly from an analytics insight to the relevant session recordings. The replay is tightly integrated with the rest of the platform — click on a conversion funnel drop-off, and you can immediately watch sessions of users who dropped off at that step. PostHog records DOM changes rather than video, keeping recordings lightweight.

Heap gained session replay capabilities through the Contentsquare acquisition. While Heap's core product historically lacked native replay, the integration with Contentsquare's session replay technology gives Heap users access to sophisticated replay and heatmap features. However, the integration between Heap analytics and Contentsquare replay is still evolving, and the experience isn't as seamless as PostHog's native implementation.

Data Ownership and Privacy

PostHog gives you two options for data ownership. With self-hosting, your analytics data stays entirely on your infrastructure — never touching PostHog's servers. This is critical for companies handling sensitive data in healthcare (HIPAA), finance, or operating under strict GDPR requirements. Even on PostHog Cloud, data is stored in the US or EU depending on your region selection, and you can export your raw data at any time via the built-in data warehouse or API.

Heap stores all data on its cloud infrastructure. The platform is SOC 2 Type II certified and supports data governance features on higher tiers, including PII redaction and data retention policies. Since the Contentsquare acquisition, Heap has been integrating into Contentsquare's compliance framework. For most B2B SaaS companies, Heap's security posture is sufficient, but teams with on-premise requirements will need to look elsewhere.

Which Should You Choose?

The decision often comes down to your team's technical profile and how many tools you want to manage. PostHog is the better choice for engineering-led product teams who want everything in one platform. Heap is the better choice for product and growth teams who prioritize ease of use and retroactive analysis over tool consolidation.

Choose PostHog if...

  • • You want analytics, feature flags, experiments, and replay in one platform
  • • You need self-hosting for data sovereignty or compliance
  • • You're an engineering-led team comfortable with code-based instrumentation
  • • You want transparent, usage-based pricing with no per-seat charges
  • • You're a startup and want a powerful free tier to grow into

Choose Heap if...

  • • Retroactive event definition is a must-have for your workflow
  • • You have a non-technical product team that needs visual event labeling
  • • You need tight CRM integrations with Salesforce or HubSpot
  • • You want minimal engineering effort for initial analytics setup
  • • You're already in the Contentsquare ecosystem for DX analytics

The Bottom Line

PostHog and Heap represent two philosophies in product analytics. PostHog is the Swiss Army knife — open source, self-hostable, and bundling everything from analytics to feature flags into one platform at transparent prices. Heap is the specialist — laser-focused on making analytics effortless through auto-capture and retroactive event definition, with a polish that non-technical teams love. If you're a developer-heavy team that values control and consolidation, PostHog is the clear winner. If you're a product-led organization that needs answers fast without writing code, Heap remains a strong choice despite the post-acquisition uncertainty.

Need a deeper analysis?

Get a full competitive intelligence report comparing PostHog, Heap, and up to 8 more competitors. Pricing, features, SEO, market positioning — everything you need to make the right call.

Order Your Custom Report — $49

Delivered in 24 hours. 7-day money-back guarantee.