# PostHog vs Matomo: product suite or open source Google Analytics?

Published 2026-11-23 · Updated 2026-11-23

**Short answer:** Pick PostHog if you are building a product and want analytics, session replay, feature flags, experiments, surveys and error tracking in one platform, with 1M free events a month on its cloud. Pick Matomo if you want a Google Analytics style web analytics suite that you fully own: free to self-host with unlimited traffic, a Frankfurt-hosted cloud, and an import of your Google Analytics history. Both are open source, and both set cookies by default.

PostHog and Matomo are both open source, both can be self-hosted, and both have a hosted cloud, so they end up on the same shortlist for teams that want control of their data. They start from different places. Matomo grew up as an open source answer to Google Analytics: marketing reports, ecommerce, goals, campaigns, a tag manager, with heatmaps, recordings and A/B tests added on. PostHog grew up as a product analytics platform for engineers, and added web analytics on top.

Prices and limits for PostHog and Matomo come from their own pricing pages and docs, read on 23 November 2026. For our head-to-head with PostHog, see [CrispStats vs PostHog](/vs/posthog); for wider lists, see [PostHog alternatives](/alternatives/posthog-alternatives) and [Matomo alternatives](/alternatives/matomo-alternatives). Related pairs: [PostHog vs Umami](/compare/posthog-vs-umami), [PostHog vs Plausible](/compare/posthog-vs-plausible), [Plausible vs Matomo](/compare/plausible-vs-matomo), [Umami vs Matomo](/compare/umami-vs-matomo), [Matomo vs Google Analytics](/compare/matomo-vs-google-analytics) and [PostHog vs Google Analytics](/compare/posthog-vs-google-analytics).

## The differences that matter

### What each product is for

- **PostHog:** A product suite for product and engineering teams: product and web analytics, session replay, feature flags, experiments, surveys, error tracking and a SQL data warehouse, with person profiles and user paths.
- **Matomo:** Web analytics close to Google Analytics in scope: ecommerce, goals, campaigns, custom dimensions, visitor profiles, a real-time visitor map, a tag manager and form analytics, with heatmaps, session recordings, A/B tests and Crash Analytics.

If your stakeholders are marketers who know Google Analytics, Matomo's reports will feel familiar. If they are engineers shipping features behind flags, PostHog fits how they work. Matomo's interface is large and close to Google Analytics in depth, and PostHog's breadth takes time to learn, so neither is the light option.

### Self-hosting and what it includes

- **PostHog:** Open source under MIT outside the ee/ directory, with a free Docker Compose deployment. PostHog says self-hosting is officially unsupported, with no tagged releases and no guarantees.
- **Matomo:** Open source under GPL-3.0, with a free On-Premise edition that has no limit on users or traffic. Funnels, heatmaps, recordings, A/B testing and Crash Analytics are paid plugin bundles when self-hosted.

Matomo treats self-hosting as a first-class option: a free edition with unlimited traffic, and a path to move between its cloud and your server with your data. The catch is that several advanced reports cost money on your own server. PostHog gives you the whole suite to self-host but without support. If self-hosting is a hard requirement, Matomo is the safer choice, because PostHog itself does not support it.

### Hosted price

- **PostHog:** Product analytics is free for 1M events a month, then [falls by tier](https://posthog.com/pricing): $0.00005 per event up to 2M, $0.0000343 up to 15M. Other products are billed on their own meters, each with a free tier. No per-seat charges.
- **Matomo:** Matomo Cloud is priced by hits (pageviews, events, downloads and outlinks), from 50,000 hits a month: €22 (about $26) at 50k, €38 (about $42) at 100k and €172 (about $204) at 1M, excluding tax. Extra hits are billed, €2.20 per 5,000 on the 50k tier. A free trial needs no card.

Worked example: a site with 100k pageviews and events a month pays €38 on Matomo Cloud and nothing on PostHog; at 1M it is €172 against $0, since 1M events fit PostHog's free tier. Matomo's lowest tier is 50k hits, so a 5k-hit blog pays the same €22. PostHog's free tier keeps 1 year of data in 1 project; check that against what you need. To price your own traffic on both, use the [analytics cost calculator](/tools/analytics-cost-calculator).

### Cookies and consent

- **PostHog:** A first-party cookie and localStorage by default, with a cookieless mode; PostHog says that with it you need no banner just for web analytics.
- **Matomo:** Sets _pk_id and _pk_ses cookies by default; they can be disabled. Matomo says consent can be skipped only in a [narrow cookieless setup](https://matomo.org/faq/new-to-piwik/how-do-i-use-matomo-analytics-without-consent-or-cookie-banner/) where local law allows, and advises treating JavaScript tracking as needing consent until regulators say otherwise.

Neither is cookieless out of the box, and both offer a way to run without cookies. Matomo is notably cautious in its own advice. If no banner is your goal, read both vendors' guidance and your regulator's, and see [cookie consent](/glossary/cookie-consent) and the [ePrivacy Directive](/glossary/eprivacy-directive); this is not legal advice.

### Moving from Google Analytics

- **PostHog:** PostHog has a web analytics dashboard with UTM reports and Core Web Vitals, on the same events as product analytics. Its [migration guide](https://posthog.com/docs/migrate/google-analytics) moves Google Analytics history through a BigQuery export and a Python script you adapt; historic imports are free but need a paid product analytics plan.
- **Matomo:** Matomo imports historic Google Analytics data, reports are not sampled, and Cloud stores data in Frankfurt.

Both can bring GA history across. Matomo's import is the shorter path, and its reports map closely to what GA users expect; PostHog's route is a do-it-yourself pipeline through BigQuery, suited to a team that writes code. PostHog is the better fit if leaving GA is part of a wider move towards product analytics.

### AI traffic, MCP and the extras

- **PostHog:** A hosted MCP server and PostHog AI query the project, and revenue analytics connects to Stripe.
- **Matomo:** AI assistants are a channel, with AI agent reports. An MCP server is available. Ecommerce tracking covers orders you send, without payment-provider webhooks. A Data Warehouse Connector is a paid extra on Cloud.

Both connect to AI tools over [MCP](/glossary/mcp), and Matomo reports visits from AI assistants as their own channel. For revenue, PostHog reads Stripe directly; Matomo tracks orders your site sends. See [AI referral](/glossary/ai-referral) for what counts as an assistant visit.

## Choose PostHog if

- You are building a product and want flags, experiments, surveys and error tracking next to analytics.
- Your volume fits inside 1M free events and you want to pay nothing for hosted analytics.
- You need to follow identified users with person profiles and user paths.
- Your team writes SQL and wants a warehouse next to its events.
- You bill with Stripe and want revenue next to product usage.

## Choose Matomo if

- You must self-host, and want a free edition with unlimited traffic that the vendor stands behind.
- Your team knows Google Analytics and wants similar reports, unsampled.
- You want to import your Google Analytics history without writing a pipeline.
- You want a hosted cloud in Frankfurt and the option to move to your own server later.
- You want a tag manager and form analytics in the same product.

## The facts side by side

|  | PostHog | Matomo | CrispStats |
| --- | --- | --- | --- |
| Hosting | both | both | hosted |
| Open source | Yes (MIT) | Yes (GPL-3.0) | No |
| Free plan | 1M events a month (Plus a free tier on every other product; 1 project and 1 year of data on Free) | Self-hosted (On-Premise is free; Cloud has a free trial) | No (14-day free trial, no card) |
| Priced by | events | events | events |
| Lowest paid plan | $0 base (Pay as you go above the free tiers) | $26 (Cloud, 50k hits a month (€22), excluding tax) | $5 (Starter, 250k events) |
| At 10k a month | $0 (Inside the first 1M free product analytics events. Computed from the published per-event rates.) | $26 (Lowest Cloud tier is 50k hits (€22)) | $5 (Starter) |
| At 100k a month | $0 (Inside the first 1M free product analytics events. Computed from the published per-event rates.) | $42 (Cloud, 100k hits (€38), read from the plan data on the pricing page) | $5 (Starter) |
| At 1M a month | $0 (Exactly the 1M free events; the next million is $0.00005 per event. Computed from the published per-event rates.) | $204 (Cloud, 1M hits (€172), read from the plan data on the pricing page) | $12 (Growth) |
| Works without cookies | Optional (Cookie and localStorage by default) | Optional (Cookies on by default, can be disabled) | Yes (No cookies, no stored IP addresses) |
| Cookie consent needed in the EU | Depends on setup (PostHog says the cookieless option avoids a banner for web analytics) | Depends on setup (Narrow cookieless setup only) | No cookies set (Nothing is stored on the device by default) |
| Revenue attribution | Yes (Revenue analytics from Stripe or from revenue events; Stripe is the only connected payment platform so far) | Partly (Ecommerce tracking of orders you send; no payment-provider webhooks) | Yes (Stripe, Polar, Paddle, Dodo Payments, Creem, Whop, Razorpay, Freemius, Lemon Squeezy, Shopify, RevenueCat, Superwall, App Store, Shopify App Store) |
| Funnels | Yes | Yes (In Cloud; a paid plugin when self-hosted) | Yes |
| Goals and custom events | Yes (Custom events and autocapture) | Yes (150 goals on Cloud Business) | Yes |
| Custom event properties | Yes | Yes (Custom dimensions, 30 on Cloud Business) | Yes |
| Visitor profiles and journeys | Yes (User paths and person profiles) | Yes (Visitor profiles and transitions) | Yes |
| Realtime globe or map | Not verified | Yes (Real-time visitor map) | Yes (Live 3D globe) |
| UTM campaign reports | Yes | Yes (Campaign tracking) | Yes |
| AI traffic | Not verified | Yes (AI assistants as a channel, plus AI agent reports) | Yes |
| AI chat over your data | Yes (PostHog AI) | Not verified | Yes |
| MCP server | Yes (Hosted MCP server, free to connect) | Yes | Yes |
| API | Yes | Yes (HTTP reporting and tracking APIs) | Yes (REST API on every plan) |
| Web vitals from real visits | Yes (Core Web Vitals in web analytics) | Not verified | Yes |
| JavaScript error tracking | Yes (100,000 exceptions a month free) | Yes (Crash Analytics: in Cloud, Enterprise bundle when self-hosted) | Yes |
| Uptime monitoring and status page | Not verified | Not verified | Yes |
| Session replay | Yes (5,000 recordings a month free) | Yes (Cloud allowance from 150 recordings a month; paid plugin when self-hosted) | No |
| Heatmaps | Yes | Yes (Cloud allowance from 1,500 heatmap pageviews a month) | No |
| Feature flags | Yes (1M requests a month free) | Not verified | No |
| A/B testing | Yes (Billed with feature flags) | Yes (In Cloud; Enterprise bundle when self-hosted) | No |
| Surveys | Yes (1,500 responses a month free) | Not verified | No |
| Data warehouse | Yes (Query Stripe, HubSpot, Postgres and more with SQL) | Add-on (Data Warehouse Connector, paid extra on Cloud) | No |
| Free plan | 1M events a month (Then usage based) | Self-hosted (Cloud has a free trial) | No (14-day free trial, no card) |
| Every feature on every plan | Not verified | Not verified | Yes |
| Sites | 1 project on Free, 6 on paid (Unlimited with the Boost package) | 30 on Cloud Business (Unlimited when self-hosted) | 10 on Starter (Unlimited from Growth) |
| Trial of paid plans | Not verified | Yes (Cloud, no card needed; length not stated) | 14 days (No card required, every feature) |
| If you go over the plan | Not verified | Pay per extra hits (€2.20 per extra 5,000 hits on the 50k tier) | Paid: keeps recording (Paid plans stay open at $1 per extra 100k; the trial pauses at 25k a month) |
| Open source | Yes (MIT outside ee/) | Yes (GPL-3.0) | No |
| Self-hosting | Yes (Docker Compose deploy, officially unsupported) | Yes (Free On-Premise edition) | No (Hosted only) |
| Works on any host | Not verified | Not verified | Yes |

Sources:

- PostHog, checked 2026-11-23: [Pricing](https://posthog.com/pricing), [Pricing (Markdown)](https://posthog.com/pricing.md), [Web analytics](https://posthog.com/web-analytics), [Docs: JavaScript persistence and cookies](https://posthog.com/docs/libraries/js/persistence), [Docs: revenue analytics payment platforms](https://posthog.com/docs/revenue-analytics/payment-platforms), [Docs: self-host](https://posthog.com/docs/self-host), [Docs: heatmaps](https://posthog.com/docs/toolbar/heatmaps), [Docs: PostHog AI](https://posthog.com/docs/posthog-ai), [MCP server](https://posthog.com/mcp), [Docs: API](https://posthog.com/docs/api), [License](https://github.com/PostHog/posthog/blob/master/LICENSE)
- Matomo, checked 2026-11-23: [Pricing](https://matomo.org/pricing/), [Features](https://matomo.org/features/), [FAQ: cookies](https://matomo.org/faq/general/faq_146/), [FAQ: tracking without consent](https://matomo.org/faq/new-to-piwik/how-do-i-use-matomo-analytics-without-consent-or-cookie-banner/), [GitHub repository](https://github.com/matomo-org/matomo), [Guide: MCP](https://matomo.org/guide/apis/mcp-model-context-protocol/), [FAQ: AI assistant traffic](https://matomo.org/faq/reports/how-to-track-and-analyse-traffic-from-ai-assistants-like-chatgpt-in-matomo-reports/), [Guide: Crash Analytics](https://matomo.org/guide/reports/crash-analytics/)
- CrispStats, checked 2026-11-23: [CrispStats pricing](https://crispstats.com/pricing), [CrispStats docs](https://docs.crispstats.com)

## Where CrispStats fits

CrispStats is ours, and the reason most people compare PostHog and Matomo, owning the stack, rules it out: it is closed source and cannot be self-hosted. What it offers instead is a lighter hosted dashboard, cookieless by default, with funnels, revenue from Stripe and seven other payment providers, web vitals, error tracking, uptime checks and AI traffic reports on every plan. It has no session replay, heatmaps, feature flags, A/B tests, tag manager or data warehouse, no GA import, and it launched in November 2026.

## Frequently asked questions

### Is Matomo or PostHog cheaper?

Hosted, PostHog is cheaper up to 1M events a month, because its analytics is free to that point; Matomo Cloud is €38 a month at 100k hits and €172 at 1M. Self-hosted, both are free, but Matomo charges for plugin bundles such as funnels and heatmaps on your own server. Checked on 23 November 2026.

### Can I self-host PostHog and Matomo?

Yes, both. Matomo On-Premise is free under GPL-3.0 with unlimited traffic. PostHog has a free Docker Compose deployment under MIT outside the ee/ directory, which PostHog says is officially unsupported.

### Does Matomo or PostHog need a cookie banner?

With default settings both set cookies, so most sites with EU visitors ask for consent. PostHog says its cookieless option removes the need for a banner just for web analytics. Matomo says consent can be skipped only in a narrow cookieless setup where local law allows. This is general information, not legal advice.

### Which is closer to Google Analytics?

Matomo. Its reports cover ecommerce, goals, campaigns and custom dimensions in a similar way, it imports historic Google Analytics data, and its reports are not sampled. PostHog's web analytics is a simpler dashboard on top of a product analytics platform.
