In-depth: PostHog vs Heap

In-depth: PostHog vs Heap

How is PostHog different?

1. We're built for engineers

What does this mean?

2. We're an all-in-one platform

Heap is mainly focused on product analytics. This means you need to adopt additional tools for things like feature management, experiments, and surveys. They're all built into PostHog – we even have a built-in data warehouse that integrates with Stripe and Hubspot. You can replace half a dozen tools with PostHog, save money, and get more from your data.

3. We're totally transparent

Oh, we're open source, too. Go take a peak at our code if you like on our GitHub repo.

Comparing PostHog and Heap

Platform

Product Analytics
Track usage, retention, and feature adoption with comprehensive analytics
Web Analytics
Privacy-focused web analytics with real-time data and no sampling
Session Replay
Watch real user sessions to understand behavior and fix issues
Feature Flags
Control feature access with precision and safely roll out changes
Experiments
Run statistically rigorous A/B/n tests and validate ideas with confidence
Surveys
Collect product feedback with no-code surveys and customizable targeting
CDP
Ingest, transform, and send data between 145+ tools
Data Warehouse
Query & visualize product and third party data together
Heatmaps
Visualize where users click and scroll on your website
Error tracking
Track and monitor errors and exceptions in your code
Open source
Audit code, contribute to roadmap, and build integrations

💡 Good to know: PostHog can replace multiple tools, such as Hotjar, Google Analytics, and LaunchDarkly. This makes it a lot easier to extract usable insights, since you don't have to constantly switch between tools. Running PostHog on both your product and website makes it easier to understand how marketing activity influences signups and usage, too.

Product analytics

Monthly free tier
1 million events
10k monthly tracked users
Autocapture
Capture events without manual tracking
SQL query editor
Write SQL queries directly against your data without a separate data warehouse
AI insight builder
"Talk to your data" using AI
Group analytics
Track metrics at a company and account level
Dashboards
Combine insights into shareable dashboards
Graphs & trends
Build custom insights and visualizations
Funnels
Track users through a sequence of events to find drop-off and improve conversion
Retention
Track user retention over time to understand how long users stay with your product
User paths
Understand how users navigate through your product and where they get stuck
Cohorts
Create cohorts of users to analyze and compare
Lifecycle
Track user lifecycle to understand how users interact with your product
Stickiness
Track user stickiness over time to understand how long users stay with your product

💡 Good to know: Every PostHog user gets 1 million events for free each month. You can also save money by sending us anonymous events for non-identified users, which are up to 80% cheaper than identified product analytics events. Anonymous events are ideal for tracking behavior on marketing websites, or mobile apps with large consumer audiences. See our docs on anonymous vs identified events for more.

Session recordings

Monthly free tier
5,000 web recordings, 2,500 mobile recordings
Limited trial
Web app recordings
Capture recordings from single-page apps and websites
Mobile app recordings
Capture recordings in iOS and Android apps
Identity detection
Identify users in recordings for debugging and support
Console logs
Capture console output from the browser for debugging
Playlists
Sort recordings into static and dynamic playlists
Performance monitoring
Track network events and performance metrics within a session
Privacy masking for sensitive content
Automatic and manual masking of sensitive user data
Conditional recording
Only capture the sessions you want based on conditions
Network monitoring
Monitor network activity during sessions
DOM explorer
Explore an interactive snapshot of replays
Export recordings to JSON
Export important recording data for offline storage
Export recordings to video
Export session recordings as video files
Beta
Minimum duration
Only record sessions longer than a specified duration
Sample recorded sessions
Restrict the percentage of sessions that will be recorded
Record via feature flag
Only record sessions for users that have the flag enabled

💡 Good to know: Session replays are an essential tool for understanding how people use your product, especially for early-stage companies searching for product-market fit. Both Heap and PostHog offer session replay, though Heap lacks many developer-facing features like a DOM explorer, performance monitoring, and network events, which are useful for fixing bugs and performance issues.

Feature flags

Monthly free tier
1 million API requests
n/a
Boolean flags
Simple on/off flags to enable or disable features
Multivariate flags
Test multiple variants of a feature in a single flag
Payloads
Pass structured data (strings, numbers, or JSON objects) to variants for dynamic configuration without code changes
Local evaluation
Cache flag values for faster evaluation and reduced API calls
Percentage-based rollouts
Roll out features gradually to a percentage of users
Custom targeting
Target features based on user properties and attributes
Multi-environment support
Use the same flag key across PostHog projects for local development or staging
Partial
Flag scheduling
Schedule flags to turn on or off automatically at specified times
Bootstrapping
Make flags available immediately on page load without waiting for API response
Early access feature opt-in widget
Allow users to opt in or out of specified features with a built-in widget or custom UI

💡 Good to know: Feature flags make it easy to roll out features to specific users or groups, and safely test in production. Our feature flags are also tightly integrated with other features so you can target session replays, surveys, and more using existing feature flags. See our guide on the benefits of feature flags for more.

Experiments

Monthly free tier
1 million API requests
n/a
Custom goals
Define your own goals and metrics to track
Secondary metrics
Monitor impact on unrelated metrics
Split testing
Split participants into groups
Multivariate (A/B/n) testing
Test multiple variables simultaneously to find optimal combinations
Statistical significance
Automatic calculation of statistical significance with configurable confidence levels
Recommended run time
Automatically calculate the recommended run time and sample size
Holdout testing
Reserve a group of users who do not see any changes, so you can measure long-term impact against a true baseline
Partial
n/a
Statistics engine
How the results of an experiment are calculated
Bayesian or Sequential
n/a

💡 Good to know: Our experiments integrate seamlessly with our feature flag product. This means you can easily deploy the winning variant of an experiment with a single click from the experiment UI.

Security and compliance

User privacy options
Anonymize users, drop personal data
History and audit logs
Manage and view edits and related users
Enterprise
GDPR-ready
Can be compliant with GDPR
HIPAA-ready
Can be compliant with HIPAA
SOC 2 Type II
SOC 2 security certification
2FA
Enforce login with two-factor authentication
SAML/SSO
Use SAML or single sign-on authentication
Enterprise

💡Good to know: Additional compliance features, such as HIPAA Business Associate Agreements, advanced permissions, and audit logs are available on our some of our platform packages, which also includes our managed reverse proxy and white labelling for surveys and shared dashboards.

Frequently asked questions

Can I migrate from Heap?

Yes. See our Heap to PostHog migration guide for more.

How long does it take to deploy PostHog?

Deploying PostHog takes mere minutes. Just include our tracking snippet in your product or website and (thanks to autocapture) you're immediately capturing events. Once up and running, you can enable session replays and other features via your project settings. See our guide to getting started on PostHog Cloud for more info.

Can PostHog also replace Google Analytics?

Yes. PostHog can replace Google Analytics for many use cases – our marketing team uses PostHog, for example. You can integrate PostHog into your website using Google Tag Manager. See our comparison of PostHog and Google Analytics 4 and an intro to PostHog for Google Analytics users for more.

How can I estimate my usage?

The easiest way is to sign up to PostHog, integrate our snippet, then check the projection on your billing page after a few days. Alternatively, you can guesstimate by multiplying your current monthly active users by an estimate of events generated per user – 50 to 100 per user is a good starting point. See Estimating usage & costs in our docs for more.

Does PostHog block bots by default?

Yes. See the full blocklist in our docs.

What about ad blockers?

We recommend all users deploy a reverse proxy, which enables you to send events to PostHog Cloud using your own domain. Events sent from your own domain and are less likely to be intercepted by tracking blockers, ensuring you capture the best data possible.

We offer a managed reverse proxy on our Team plans, and we have reverse proxy setup guides for AWS Cloudfront, Caddy, Cloudflare, Netlify, Vercel, and more, in our docs if you want to run your own.

Can I use PostHog with a CDP? (Segment, Rudderstack, etc.)

Yes. See Using PostHog with a CDP in our docs.

Can you use PostHog on e-commerce websites?

Absolutely. PostHog is easy to integrate with Shopify and WooCommerce. You can easily install PostHog on other e-commerce platforms using our Javascript snippet – see our guides to setting up Webflow analytics and Wordpress.

How does PostHog compare to Amplitude and Mixpanel?

Amplitude and Mixpanel offer similar features to Heap. Read our PostHog vs Mixpanel and PostHog vs Amplitude guides for more info. You may also find guides to the most popular Heap alternatives useful.

Community questions

Questions about this page? or post a community question.