TL;DR
- PostHog is an engineering-first product analytics platform. Events-based billing (1M free events/month), SQL access (HogQL), feature flags, A/B testing, session replay, surveys. Open-source, self-hostable, EU data hosting, HIPAA. G2: 4.5/5 from 1,036 reviews. TrustRadius: 8.9/10.
- Heap is a marketing-first session analytics platform. Session-based billing (10K free sessions/month, then paid), autocapture, funnel analysis, retention dashboards, AI-powered insights (Sense). Now owned by Contentsquare. TrustRadius: 8.2/10. Most used by mid-size companies (51–1,000 employees).
- The billing model is the decision driver, not the feature list. PostHog's events-based model means you can track unlimited users and sessions — you only pay when event volume scales. Heap's session-based model means every pageview counts against your quota, regardless of how many events you fire. High-traffic, low-event sites favor Heap. Low-traffic, high-event apps favor PostHog.
- Choose PostHog if: You need experimentation (flags, A/B tests), SQL access, open-source hosting, or you're building a product analytics foundation from scratch. You're engineering-led. You want one platform for analytics + experimentation + debugging.
- Choose Heap if: You need marketing-grade session analytics with autocapture out of the box, your team is non-technical and needs point-and-click funnels, or you want Contentsquare's AI-powered insight generation (Sense). You have moderate traffic and don't need experimentation.
- The hidden cost of Heap's session billing: Every pageview, every visit, every bot hit counts. Teams on Heap often disable tracking on high-traffic pages to stay under quota — which means losing visibility into exactly where they need it most. PostHog doesn't have this problem because sessions don't count against quota — only events do, and autocapture events are cheap.
The Billing Model Is the Real Difference
Most comparison articles lead with features. The feature lists look similar on paper — both tools do funnels, retention, session replay, and dashboards. But the billing model determines what you can actually do with each tool in practice.
PostHog: Events-Based Billing
PostHog charges by event volume. An event is any tracked action: pageview, click, custom event, feature flag evaluation, survey response. The free tier includes 1M events/month. Paid tiers scale with event volume.
What this means in practice: You can track 100 users or 100,000 users — the cost is the same if event volume is similar. A B2B SaaS with 500 customers generating 200K events/month pays the same as a consumer app with 50,000 users generating 200K events/month. User count doesn't matter. Session count doesn't matter. Only events.
When this works in your favor: You have a product with moderate traffic but need deep event tracking — every button click, every feature usage, every workflow step. You want to instrument everything without worrying about session quotas.
When this works against you: You have a high-traffic website where every pageview is an event. If you have 500,000 monthly visitors and each generates 10 pageview events, that's 5M events/month — and you'll hit paid tiers quickly.
Heap: Session-Based Billing
Heap charges by session volume. A session is a period of continuous user activity on your site or app. The free tier includes 10K sessions/month. Paid tiers (Growth, Pro) scale with session count and are contact-sales pricing.
What this means in practice: You can track unlimited events per session — Heap's autocapture records every click, every form submission, every pageview without consuming quota. But every new session (every new visit) counts against your limit. A user who visits 5 times in a month consumes 5 sessions.
When this works in your favor: You have moderate traffic but need rich event tracking per session. A B2B SaaS where each user visits 10–20 times/month and triggers hundreds of events per session. You get unlimited events within those sessions.
When this works against you: You have high traffic with many brief visits. An e-commerce site or content platform with 500,000 monthly visitors — even if each visitor generates only 2–3 events, you'll blow through 10K sessions in days. Teams on Heap often disable tracking on high-traffic pages (pricing pages, blog) to stay under quota — which means losing behavioral data on exactly the pages where conversion decisions happen.
PostHog's free tier gives you 1M events/month. Heap's free tier gives you 10K sessions/month. For a typical B2B SaaS where each session generates ~50 events, Heap's 10K sessions equals 500K events — roughly half of what PostHog gives you free. But if your sessions are event-heavy (200+ events/session), Heap's effective free volume exceeds PostHog's.
How to Think About This Decision
The right choice depends on 4 dimensions of your business context. Work through each one before looking at pricing.
1. What's your traffic pattern?
Low traffic, high engagement per visit (B2B SaaS, internal tools, enterprise apps): Both work. Heap's unlimited events per session gives you rich tracking. PostHog's event billing keeps costs predictable.
High traffic, brief visits (content sites, e-commerce, marketplaces): PostHog is usually better. Heap's session billing penalizes high visitor counts, and you may find yourself disabling tracking on popular pages.
High traffic, high engagement (social platforms, collaboration tools): PostHog is almost certainly better. You'll generate massive event volume, but PostHog's free tier of 1M events covers more ground than Heap's 10K sessions at typical event densities.
2. What team will use this?
Engineering-led team: PostHog. SQL access (HogQL), self-hosting option, feature flags, A/B testing, and the ability to query raw data directly. Engineers prefer tools they can extend and control.
Marketing or non-technical team: Heap. Point-and-click funnel builder, autocapture that works without engineering involvement, Contentsquare's AI-powered insights (Sense) that surface patterns automatically. Heap is designed for people who don't write SQL.
Product management: Either works, but the deciding factor is whether your PMs need experimentation. If yes (A/B tests, feature flags), PostHog. If no (dashboards, funnels, retention), Heap is easier to adopt.
3. What's your analytics maturity?
Starting from scratch: PostHog. You get the entire platform — analytics, session replay, feature flags, A/B testing, surveys — in one install. Heap gives you session analytics and autocapture, but no experimentation, no flags, no surveys.
Migrating from basic tools: If you're upgrading from Google Analytics and need richer session analysis with autocapture, Heap is the natural step up. If you're upgrading from basic product analytics and need experimentation + SQL access, PostHog is the step up.
Mature analytics org: PostHog for the SQL access, open-source flexibility, and EU data hosting. Mature teams typically need data portability and querying capabilities that Heap doesn't provide.
4. What compliance and data requirements do you have?
HIPAA, SOC 2, EU data residency: PostHog offers all three, including self-hosting. Heap is now owned by Contentsquare and has enterprise compliance options, but self-hosting is not available. For healthcare, fintech, or EU-regulated companies, PostHog's data ownership options are a genuine differentiator.
No special compliance needs: Both work. Heap's cloud hosting is sufficient for most SaaS companies.
Feature Comparison
| Capability | PostHog | Heap |
|---|---|---|
| Core analytics | Funnels, retention, trends, paths, stickiness | Funnels, retention, journeys, dashboards |
| Autocapture | Yes (pageviews, clicks, form submissions) | Yes (every interaction, retroactive) |
| Session replay | Yes — 5,000 recordings/month free | Yes — included in paid plans |
| Feature flags | Yes — unlimited, free | No |
| A/B testing | Yes — native experiments with statistical significance | No |
| Surveys | Yes — in-app and email surveys | No |
| SQL access | Yes — HogQL editor for raw data queries | No — UI-only analysis |
| AI-powered insights | Basic anomaly detection | Yes — Contentsquare Sense (AI assistant) |
| Self-hosting | Yes — open-source, self-hostable | No — cloud only |
| EU data hosting | Yes | Contact sales |
| HIPAA compliance | Yes | Contact sales (Contentsquare enterprise) |
| G2 rating | 4.5/5 (1,036 reviews) | Not available on G2 |
| TrustRadius rating | 8.9/10 | 8.2/10 |
The feature gap is clear: PostHog is a product analytics platform (analytics + experimentation + surveys + flags). Heap is a session analytics tool (autocapture + funnels + AI insights). If you need experimentation, PostHog wins by default. If you only need session analytics with autocapture, Heap's point-and-click simplicity has real value.
When to Pick PostHog
- You need experimentation. Feature flags, A/B testing, and holdout groups are native to PostHog. Heap doesn't have any of these. If you plan to run experiments, PostHog saves you from buying a separate tool (Statsig, Optimizely, Eppo).
- You want SQL access to your data. The HogQL editor lets analysts query raw event data directly. Heap is UI-only — you can't run custom queries against raw data. For teams with analysts, this is a genuine workflow advantage.
- You have compliance or data ownership requirements. Self-hosting, EU data hosting, HIPAA compliance, open-source codebase. These matter for regulated industries and companies that need data sovereignty.
- You're building a product analytics foundation from scratch. PostHog gives you the entire platform in one install. Heap gives you session analytics — you'll need additional tools for experimentation, surveys, and feature flags. Getting the foundation right from the start is what a PostHog consulting engagement is designed for.
- You're engineering-led. PostHog's interface is optimized for technical teams who want to query, experiment, and debug in the same platform. The learning curve is steeper, but the ceiling is higher.
When to Pick Heap
- Your team is non-technical and needs point-and-click analytics. Heap's autocapture works without engineering involvement after the initial snippet install. Funnels, retention, and journey maps are all UI-driven. PostHog requires more setup for custom events.
- You want Contentsquare's AI-powered insights (Sense). Heap's Sense AI assistant surfaces patterns and anomalies automatically — "your checkout conversion dropped 12% this week, and here's why." PostHog doesn't have equivalent AI capabilities.
- You have moderate traffic with high engagement per session. If each user session generates hundreds of events, Heap's unlimited-events-within-sessions model gives you more tracking depth than PostHog's event-based billing at the same price point.
- You already have a separate experimentation platform. If you're using Statsig, Optimizely, or LaunchDarkly for experiments, Heap's lack of experimentation capabilities isn't a gap — it's one less platform to manage.
Pricing at a Glance
| PostHog | Heap | |
|---|---|---|
| Billing model | Events-based | Session-based |
| Free tier | 1M events/month (all features included) | 10K sessions/month (core analytics only) |
| Entry paid | Plus: $0 (pay-as-you-go above 1M events) | Growth: contact sales (estimate ~$3,600+/yr) |
| Session replay | 5,000 recordings/month free | Included in paid plans |
| Data retention (free) | 12 months | 6 months |
| AI insights | Basic | Contentsquare Sense (paid plans) |
The practical cost comparison depends on your traffic and event patterns. A B2B SaaS with 500 monthly active users, each generating 100 events/month (50K events total), stays well within PostHog's free tier. The same 500 users visiting 15 times/month (7,500 sessions) stays within Heap's free tier too. Both are free at this scale.
But a marketing site with 100,000 monthly visitors generating 3 events each (300K events) also stays within PostHog's free tier. Those same 100,000 visitors would need 100K sessions on Heap — 10× the free quota. This is where the billing model creates real cost differences that have nothing to do with your revenue.
FAQ
Can I use both PostHog and Heap?
Technically yes, but running two analytics platforms doubles your tracking overhead and creates data consistency problems. Most teams that try this end up consolidating to one. If you need both session analytics depth and experimentation, PostHog covers both — so there's rarely a reason to run both.
Is Heap's autocapture better than PostHog's?
Heap's autocapture is more comprehensive — it captures every interaction retroactively, meaning you can define events after the fact without re-instrumenting. PostHog's autocapture captures pageviews, clicks, and form submissions, but custom events still require instrumentation. For teams that want to start tracking without defining events upfront, Heap's autocapture is genuinely superior.
Which is better for B2B SaaS?
PostHog is generally better for B2B SaaS because B2B companies typically need experimentation (A/B testing pricing pages, onboarding flows), SQL access for custom cohort analysis, and feature flags for gradual rollouts. Heap works well for B2B SaaS companies that only need session analytics and don't plan to run experiments.
Which is better for e-commerce?
Heap can work well for e-commerce if you have moderate traffic — the unlimited events per session lets you track every product view, cart addition, and checkout step without event budget concerns. But high-traffic e-commerce sites will quickly exceed Heap's session quota. PostHog handles high-traffic sites better if you manage event volume carefully (don't autocapture every scroll and hover).
What happens if I exceed my quota?
PostHog: events above your plan limit are still captured — you pay overage. Heap: sessions above your plan limit may not be tracked, depending on your plan. This is the critical difference — PostHog guarantees data capture, while Heap may silently drop sessions if you exceed quota.
Sources
- TrustRadius — Heap vs. PostHog Comparison — Heap 8.2/10, PostHog 8.9/10, user reviews and feature comparison.
- G2 — PostHog User Reviews — 4.5/5 from 1,036 reviews.
- Heap Pricing — Session-based pricing, free tier: 10K sessions/month.
- ProductQuant — PostHog Tutorial: Complete Beginner's Guide — Full PostHog setup and configuration guide.
Get an Analytics Audit
We'll assess your current analytics stack, tell you whether it matches your business context, and recommend the right platform for your traffic patterns, team capability, and compliance needs.