In-depth: PostHog vs Matomo

In-depth: PostHog vs Matomo

PostHog and Matomo help you understand how your users are using your site and product, but they're very different tools below the surface:

Matomo focuses on tracking sessions, making it ideal for running analytics on large content and e-commerce websites. It's designed to look and feel similar to Google Analytics 3, AKA Universal Analytics.

PostHog can also replace Google Analytics, but it offers a wider suite of tools for product analytics, web analytics, session replays, feature flags, A/B testing, user surveys, and much more.

How is PostHog different from Matomo?

1. It's an all-in-one platform

Matomo charges extra for features like funnel analysis, cohorts, path analysis, A/B testing, and session recording. These are also considered add-ons and are not tightly integrated with the main analytics product. In PostHog, all of these tools work together and each comes with a generous free tier.

2. It's built for engineers

Rather than focusing on marketers like Matomo, PostHog focuses on the tools engineers need to build better products.

On top of product analytics, this includes A/B testing, feature flags, a complete API, direct SQL access, and more. PostHog also includes a data warehouse so you can import and query data from other sources as well as destinations to send your data to external warehouses or other tools.

3. Seamless integrations with the tools you already use

PostHog is built to work with the tools you already use.

That means you can import data and query from sources like Stripe, Hubspot, Zendesk, S3, and more. You can also export data in batches to your data warehouse like Snowflake or BigQuery as well as a range of real time destinations like Google Ads and Slack.

Feature comparison

Platform

Both PostHog and Matomo offer a range of tools for tracking and analyzing your site and product. PostHog offers more tools for understanding and improving your product, while Matomo focuses more on marketing analytics.

Matomo
compare
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
✓
Plugin
Heatmaps
Visualize where users click and scroll on your website
✓
✓
Experiments
Run statistically rigorous A/B/n tests and validate ideas with confidence
✓
✓
Surveys
Collect product feedback with no-code surveys and customizable targeting
✓
✗
Feature Flags
Control feature access with precision and safely roll out changes
✓
✗
Free tier
Generous free tier available
✓
✗
Free team members
Number of users you can invite to your instance
Unlimited
30
EU hosting
Access and store your data in the EU
✓
✓
Open source
Audit code, contribute to roadmap, and build integrations
✓
✓
Server-side SDKs
Capture events and use features from Python, Node, and more
✓
✓
Mobile SDKs
Capture events and use features from Android, iOS, and more
✓
✓
API
Capture events, get stats, and make changes via API
✓
✓

💡 Good to know: Matomo's first paid tier comes with 1,500 heatmap pageviews and 150 session recordings per month.

Web analytics

Both PostHog and Matomo offer all the features you expect from Google Analytics alternatives.

Matomo
compare
Pageviews
Track visitors and their views
✓
✓
Sessions
Track unique sessions and their durations
✓
✓
Traffic breakdown
See where your visitors and conversions are coming from
✓
✓
Conversions
Track actions you want users to take
✓
✓
Bounce rate
See the percentage of users that leave after one pageview
✓
✓
Entry and exit paths
See the pages users first visit and the last ones before they leave
✓
✓
Outbound clicks
See the links that take users away
✓
✓
UTM tracking
Track marketing campaigns with UTM tags
✓
✓
Cookieless tracking option
Track users without cookies
✓
✓
Snippet install
Install HTML snippet
✓
✓

Product analytics

Product analytics reveals the evolution of both tools. While PostHog has always focused on product analytics, Matomo has expanded its offering from a focus on web analytics.

Matomo
compare
Custom events
Manually capture custom events and properties wherever they happen
✓
✓
Custom properties
Add more data to custom events or users
✓
✓
Autocapture
Capture events without manual tracking
✓
✗
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
✓
✓
Dashboards
Combine insights into shareable dashboards
✓
Cohorts
Combine users based on properties and events for group analysis
✓
✓
User profiles
Track personally-identifiable user info like name, email, and usage data
✓
✓
Group analytics
Track metrics at a company and account level
✓
✗
User paths
Understand how users navigate through your product and where they get stuck
✓
✓
SQL query editor
Write SQL queries directly against your data without a separate data warehouse
✓
Enterprise

Integrations

A simple way to compare integrations:

  • PostHog has more integrations with dev tools.
  • Matomo has more integrations with e-commerce and CMS platforms.

But this doesn't mean either lacks those types of integrations.

Matomo
compare
CSV exports
Export your data as a CSV
✓
✓
Warehouse exports
Export data to warehouses like S3 and BigQuery for storage and analysis
✓
BigQuery
warehouse_import
✓
✗
Slack
Send events, reports, and anomalies to Slack
Events, reports
Reports, anomalies
Email reports
Send reports to email
✓
✓
Google Search Console
Import data from Google Search Console
✗
✗
WordPress
Easily capture data from your WordPress site
✗
✓
Stripe
Stripe customer data connector
✓
✗
Hubspot
Send and receive data from Hubspot
✓
✗
Zendesk
Send and receive data from Zendesk
✓
✗
Zapier
Trigger Zapier automations
✓
✗
Sentry
Send and receive data from Sentry
✓
✗

💡 Good to know: Although PostHog doesn't have dedicated integrations for CMS or ecommerce platforms, our script snippet makes it easy to use PostHog with basically any of these including Shopify, WordPress, and Webflow.

Security and compliance

Matomo positions itself as a Google Analytics alternative that protects your data and customer privacy, but PostHog offers all of its privacy and compliance features (and more).

Matomo
compare
Self-host option
Deploy and run on your own infrastructure
✓
✓
Bot blocking
Block scrapers, crawlers, and other unwanted traffic from stats
✓
✓
Reverse proxy
Avoid tracking blockers and capture more data
✓
✗
HIPAA-ready
Can be compliant with HIPAA
✓
✗
GDPR-ready
Can be compliant with GDPR
✓
✓
Data anonymization
Anonymize user data for privacy
✓
✓
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
Enterprise
History and audit logs
Manage and view edits and related users
Enterprise
✓

💡 Good to know:

  • Matomo's on-premise offering can be made HIPAA compliant, but not their cloud offering.
  • PostHog is self-hostable under a MIT license without guarantee or support.

Frequently asked questions

How much do PostHog and Matomo cost?

Matomo's Cloud offering starts at $29/month for 50,000 hits. This includes 1,500 heatmap pageviews and 150 session recordings per month.

PostHog is entirely usage-based. Its free tier includes:

FeatureFree usage per monthAdditional cost
Product analytics1 million eventsFrom $0.00005/event
Session replay5,000 recordingsFrom $0.005/recording
Surveys1500 responsesFrom $0.10/response
Feature flags and A/B testing1 million API requestsFrom $0.0001/request
Data warehouse1 million synced rowsFrom $0.000015/row

You'll never pay anything if you stay within these limits and you can set billing limits to avoid surprise bills.

Does PostHog offer a free trial?

Matomo offers a free trial, but PostHog doesn't, what gives?

Instead of a free trial, PostHog offers a free forever tier as long as you stay under the free limits. You don't even need a credit card, but adding one unlocks all the features (we have billing limits you can use too).

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.

Can I migrate from Matomo to PostHog?

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

Is PostHog hard to install and use?

Although PostHog has many features, it isn't necessarily complicated. Our web analytics dashboard is similar to Matomo's:

PostHog web analytics dashboard

Our install snippet is also only a couple of lines:

HTML
<script>
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init('<ph_project_api_key>',{api_host:'https://us.i.posthog.com', defaults:'2025-05-24'})
</script>

Our users range from individual indie hackers to YC-backed startups to massive enterprises.

Community questions

Questions about this page? or post a community question.