CIOPages

PostHog vs Heap

PostHog and Heap both sell product analytics that capture what users do in a website or app without tracking code for each event. This page compares them on autocapture, pricing, data retention, session replay, warehouse export and hosting, and says which fits which situation. Each fact comes from the vendors' own pages.

Heap's Free plan covers up to 10k monthly sessions. Growth is estimated after you install the snippet, and Pro has custom session pricing. PostHog has per-product usage-based pricing, and the first 1M analytics events each month are free. Heap is now part of Contentsquare.

Prices and other facts are as of November 5, 2026. Vendors change prices; confirm them on the vendor’s own pricing page. Independent analysis: neither project nor any vendor named here paid for or reviewed this page.

Which to choose

Choose PostHog when

  • you want usage-based pricing per product and a free allowance every month
  • you want the option to self-host an open source product
  • you want session replay in the free allowance

Choose Heap when

  • you want plans set by monthly sessions rather than by events
  • you want to analyze history captured since the day the snippet was installed
  • you use Contentsquare or plan to

Who owns each

Heap was founded in 2013 in Silicon Valley. Contentsquare announced on September 28, 2023 a definitive agreement to acquire Heap. Contentsquare states that Heap has officially become part of Contentsquare, that Heap's capabilities are now integrated in Product Analytics, and that Heap tools, plans and accounts still work as usual.

PostHog launched on Hacker News in 2020, 4 weeks after it started writing code. It says its product and data toolkit is used by 500,000+ teams. Its open source product is MIT licensed.

Side by side on six points

Compared on each vendor's pricing pages and documentation as of November 5, 2026.

Autocapture

PostHog

PostHog captures events without specific tracking code. The JavaScript web SDK captures clicks on a, button, form, input, select, textarea and label elements by default. PostHog can also capture pageviews, pageleaves and screen views automatically. Allowlists and ignorelists limit capture by URL or CSS selector. On Android, interaction autocapture is not supported.

Heap

Heap says a single snippet captures every click, swipe, tap, pageview and fill from the moment of installation forward. Data is collected from the moment the snippet is added, and historical data can be analyzed. Heap also supports manual tracking and server-side events.

Both capture interactions without code; Heap stresses analysis of history since installation, and PostHog documents settings that narrow what is captured.

Pricing

PostHog

PostHog has per-product usage-based pricing, and product analytics usage is counted in events. Each product has a free monthly allowance, including 1M analytics events, with no minimum spend or annual contract. Anonymous events can be up to 4x cheaper than identified ones. PostHog suggests allow or ignore lists, or turning autocapture off, to reduce costs. If usage hits a billing limit, additional events are dropped and PostHog never charges more than the limit.

Heap

Heap's Free plan covers up to 10k monthly sessions. Growth is estimated after you install the snippet, and Pro has custom session pricing. A session can include many pageviews or events, and on web it ends after 30 minutes of pageview inactivity.

On PostHog, captured events drive the bill; on Heap, sessions set the plan.

Data retention

PostHog

Events are retained for 7 years on any paid plan and 1 year on the free plan. After 1 year, data may move to cold storage, so queries may run more slowly.

Heap

Data history is 6 months on Free and 12 months on Growth. A Data History add-on extends analysis out to 3 years.

PostHog's paid plans keep events for longer without an add-on.

Session replay

PostHog

Session Replay records clicks, scrolls, form inputs, page views, network requests and console logs. 5K session replays a month are free. Recordings are kept for 1 month on the free plan and 90 days on pay-as-you-go; the Boost and Scale add-ons extend that up to one year, and the Enterprise add-on to 5 years.

Heap

Session Replay, Error Analysis and Heatmaps are an add-on for Pro and Premier. Replays are cued to the event being analyzed, and client and server-side events can be searched within a replay.

Replay is in PostHog's free allowance; on Heap it is an add-on from Pro.

Warehouse and data export

PostHog

Batch exports can export to Azure Blob Storage, BigQuery, Databricks, S3, Snowflake, Postgres and Redshift. The PostHog data warehouse syncs sources such as Stripe, Postgres, Salesforce and HubSpot so they can be queried in SQL alongside events.

Heap

Heap Connect exports to S3, Redshift, BigQuery or Snowflake. Exports are retroactive: as events are labeled, the schema is updated with all historical data for synced events. Heap Connect is an add-on for Pro and included with Premier.

Both export to the main warehouses; Heap's export needs Pro or Premier.

Hosting, security and administration

PostHog

PostHog Cloud runs in the US (Virginia) or the EU (Frankfurt). PostHog offers a free Docker Compose deployment under an MIT license for self-hosting, without paid support plans or guarantees, and all paid-plan features are Cloud-only. Its platform packages include SSO, audit logs, custom roles and project permissions.

Heap

All Heap customers have access to SSO. Heap lists Managed SCIM and Audit Logs among its privacy tools, and Premier adds advanced user permissions and region specific storage. Heap states that it is ISO 27001, 27701, 27017 and 27018 certified.

PostHog publishes a self-hosted option; Heap includes SSO for every customer.

What happens when you go over a plan's limit?

Heap says it does not drop or throttle data above a plan's monthly limit. It emails you to upgrade, and you must upgrade before you can view your data again. On PostHog, if usage hits a billing limit you set, additional events are dropped.

Which fits your situation

A small product that needs analytics and replay at no cost

PostHog includes 1M analytics events and 5K session replays free each month. Heap's Free plan covers up to 10k monthly sessions; replay is an add-on for Pro and Premier.

You want to analyze interactions nobody planned to track

Both autocapture. Heap states that data is collected from the moment the snippet is added and that historical data can be analyzed.

Analytics data must stay on your own infrastructure

PostHog, self-hosted with Docker Compose, without paid support or guarantees and without paid-plan features. In the cloud, PostHog offers an EU region, and Heap Premier lists region specific storage.

You need audit logs and SCIM provisioning

Heap lists Managed SCIM and Audit Logs. PostHog's platform packages include audit logs; ask it about SCIM.

Event data must land in Snowflake or BigQuery

Both export to each. On Heap, Heap Connect is an add-on for Pro and included with Premier.

Common questions

How is Heap priced?

Heap's Free plan covers up to 10k monthly sessions. Growth is estimated after you install the snippet, and Pro has custom session pricing.

Is Heap part of Contentsquare?

Yes. Contentsquare announced on September 28, 2023 a definitive agreement to acquire Heap, and states that Heap has officially become part of Contentsquare. Heap's help center says the same.

How much does PostHog cost?

Product analytics is free for the first 1M events each month. Above that, PostHog charges by usage, with no minimum spend or annual contract. All prices are in US dollars, excluding taxes.

Sources

Keep reading

Buyer Guide
Product Analytics Platforms
Job 04
Control technology spend

AI is billed per use, so its cost grows with adoption while the rest of the budget is under review.

Executive Forum
Publish under your own byline

Senior technology leaders write for CIOPages in the Executive Forum.