In-depth: PostHog vs Matomo
Sep 04, 2024
On this page
- How is PostHog different from Matomo?
- 1. It's an all-in-one platform
- 2. It's built for engineers
- 3. Seamless integrations with the tools you already use
- Feature comparison
- Platform
- Web analytics
- Product analytics
- Integrations
- Security and compliance
- Frequently asked questions
- How much do PostHog and Matomo cost?
- Does PostHog offer a free trial?
- Can PostHog also replace Google Analytics?
- Can I migrate from Matomo to PostHog?
- Is PostHog hard to install and use?
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.
PostHog | Matomo | |
Product analytics Track events and conversion; analyze user behavior | ✔ | ✔ |
Web analytics Simple dashboard of aggregate traffic, sources, campaigns, and session metrics | ✔ | ✔ |
Session replay Watch real users use your product, diagnose bugs | ✔ | ✔ |
Heatmaps Visualize where users click in your app or website | ✔ | ✔ |
Experiments Run A/B/n tests on new features, optimize conversion funnels | ✔ | ✔ |
Surveys Collect and analyze feedback, run NPS and PMF surveys | ✔ | ✖ |
Feature flags Roll out features safely, toggle features for cohorts or individuals | ✔ | ✖ |
Free tier Free forever option, no credit card required | ✔ | ✖ |
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 View code, comment on roadmap, and contribute | ✔ | ✔ |
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.
PostHog | Matomo | |
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 Track users without cookies | ✔ | ✔ |
Snippet install Install simple 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.
PostHog | Matomo | |
Custom events Capture and analyze any type of event | ✔ | ✔ |
Custom properties Add more data to custom events or users | ✔ | ✔ |
Autocapture Capture frontend clicks and events automatically | ✔ | ✖ |
Graphs and trends Build custom insights and visualizations | ✔ | ✔ |
Funnels Track users through a sequence of events | ✔ | ✔ |
Retention Visualize which users stay, for how long | ✔ | ✔ |
Custom dashboards Build a custom dashboard of your own or use a template | ✔ | ✔ |
Cohorts Combine users based on properties and events for group analysis | ✔ | ✔ |
User profiles View user demographic data such as country, language, and device type | ✔ | ✔ |
Group analytics Track metrics at a company and account level | ✔ | ✖ |
Paths Track user flows and where they drop off | ✔ | ✔ |
SQL Query your data with SQL | ✔ | Enterprise |
Integrations
A simple way to compare integrations:
- PostHog has more integrations with data and product tools.
- Matomo has more integrations with ecommerce and CMS platforms.
But this doesn't mean either lacks those types of integrations.
PostHog | Matomo | |
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 Import and query data from third-party sources like Postgres, S3, and GCS | ✔ | ✖ |
Slack Send events, reports, and anomalies to Slack | Events, reports | Reports, anomalies |
Send reports to email | ✔ | ✔ |
Google Search Console See search queries that sent traffic to your site | ✖ | ✖ |
WordPress Capture events from WordPress | Script | ✔ |
Stripe Import and query charges, customers, invoices, subscriptions, and more | ✔ | ✖ |
Hubspot Import and query contacts, companies, deals, and more | ✔ | ✖ |
Zendesk Import and query organizations, tickets, users, and more | ✔ | ✖ |
Zapier Trigger Zapier automations on events | ✔ | ✖ |
Sentry Send and receive error data with 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).
PostHog | Matomo | |
Self-hostable Self-host your instance for full control | ✔ | ✔ |
Bot blocking Block scrapers, crawlers, and other unwanted traffic from stats | ✔ | ✔ |
Reverse proxy Official instructions on avoiding tracking blockers | ✔ | ✖ |
HIPAA-ready Can be compliant with HIPAA | ✔ | ✖ |
GDPR-ready Can be compliant with GDPR | ✔ | ✔ |
Data anonymization Options to anonymize user data | ✔ | ✔ |
SOC 2 SOC 2 security certification | ✔ | ✖ |
2FA Enforce login with two-factor authentication | ✔ | ✔ |
SAML/SSO Use SAML or single sign-on authentication | Enterprise | Enterprise |
Audit log Get a report of all activities happening in your instance | 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:
Feature | Free usage per month | Additional cost |
---|---|---|
Product analytics | 1 million events | From $0.00005/event |
Session replay | 5,000 recordings | From $0.005/recording |
Surveys | 250 responses | From $0.20/response |
Feature flags and A/B testing | 1 million API requests | From $0.0001/request |
Data warehouse | 1 million synced rows | From $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:
Our install snippet is also only a couple of lines:
<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+"/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="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures getActiveMatchingSurveys getSurveys getNextSurveyStep onSessionId".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'})</script>
Our users range from individual indie hackers to YC-backed startups to massive enterprises.