Guide

The 16 best PostHog alternatives in 2026

PostHog bundles product analytics, web analytics, session replay, feature flags, experiments and surveys, and most teams that leave it replace one of those. This guide groups 16 alternatives by the PostHog product each one replaces, with prices and SSO plans from each vendor’s own pages.

We build Pug, so it is listed first in product analytics. Its entry lists what it does not do: session replay, feature flags, experiments and surveys. Every other price, plan and license on this page links to the vendor page it came from, read on November 21, 2026.

All 16 alternatives at a glance

Prices from each vendor’s own page, checked November 21, 2026. The last column links the source.
ToolPostHog product it replacesSelf-hostFree each monthPaid fromSource
PostHogThe one being replacedUnsupported Docker Compose deploy (MIT)1M events, 1 year of history$50 per million events past 1M, falling to $9 past 250M; person profiles extraPostHog pricing
PugProduct analytics and web analyticsYes, AGPL-3.0, every feature100k events, 1 year of history$1 a month plus $20 per million eventsPug pricing
MixpanelProduct analytics, session replay, experiments and feature flagsNo1M events, unlimited seatsGrowth from $0 with 1M events; $613 a month at 5MMixpanel pricing
AmplitudeProduct analytics, session replay, experiments and feature flagsNo2M events, unlimited seatsPlus from $0, up to 70M eventsAmplitude pricing
HeapProduct analytics, and session replay as a paid add-onNo10k sessions, 6 months of historyNo published price; Growth is estimated after installHeap pricing
PlausibleWeb analyticsCommunity Edition (AGPL-3.0), without funnels or SSONone; a 30-day trial$9 a month for 10k pageviewsPlausible pricing
UmamiWeb analyticsYes, MIT100k events, 1 websitePro $20 a month with 1M eventsUmami pricing
MatomoWeb analytics, and session replay through a paid pluginYes, GPL-3.0; funnels and heatmaps are paidUnlimited on your servers; a cloud trialTeam bundle, 275 € a month on your serversMatomo pricing
OpenReplaySession replayYes, AGPL-3.0 outside its ee/ directoryFree on your own serversDedicated from $199 a monthOpenReplay pricing
LogRocketSession replayEnterprise plan only1,000 sessionsCore $83 a month for 10,000 sessions, billed yearlyLogRocket pricing
Microsoft ClaritySession replay and heatmapsNoEverything, with no traffic limitsNo paid planClarity FAQ
GrowthBookFeature flags and experimentsYes, MIT outside its enterprise code3 users on cloud; unlimited users self-hostedPro $40 per seat a monthGrowthBook pricing
StatsigFeature flags, experiments, product analytics and session replayWarehouse-native on Enterprise2M events, 50,000 session replaysPro $150 a month with 5M eventsStatsig pricing
LaunchDarklyFeature flagsRelay Proxy only5 service connections, 1K client-side MAU$10 per service connection a month, billed yearlyLaunchDarkly pricing
UnleashFeature flagsYes, AGPL-3.0Open source: 1 project, 2 environments, 5,000 flags$75 per seat a monthUnleash pricing
FlagsmithFeature flagsYes, BSD 3-Clause50,000 API requests, 1 team memberStart-Up $45 a monthFlagsmith pricing
FormbricksSurveysYes, AGPL-3.0 outside its ee code250 responses on cloudSurveys Pro $89 a monthFormbricks pricing

Why teams look for a PostHog alternative

PostHog is open source (MIT outside its ee/ directory, per its license) and covers more products than any single tool below. Teams still leave it for four reasons:

  • Self-hosting is unsupported. PostHog’s self-hosting docs call self-hosted deployments officially unsupported, offer no customer support for them, keep every paid-plan feature on PostHog Cloud, and no longer support new Kubernetes deployments.
  • SSO costs extra. SAML and OIDC need the Scale package, $750 a month on top of usage, and enforcing SSO needs Boost, $250 (PostHog pricing). The SSO comparison below has every tool’s plan.
  • Person profiles are billed separately. Profiles for signed-in users are billed as identified events, from $0.000198 each past their own free million, on top of the analytics events (PostHog pricing).
  • Breadth you don’t use. If you came for analytics, replay, flags, experiments, surveys, a data warehouse and a CDP are a lot of product to learn and pay for.

Product analytics alternatives

1. Pug

Open-source product analytics with a profile for every visitor and signed-in user. Insights has Trends, Funnels, Retention, User flow (a Sankey), Top K and Map, and funnels and retention count a person’s activity before and after identify() as one person. The Overview shows sources, pages, locations and devices, and Live maps the last few minutes of visitors. SDKs ship for Web, Android, iOS, Flutter, Node, Go and Ruby; React Native is in development, and the HTTP API covers any other language. Full breakdown: Pug vs PostHog.

  • Best for: teams that want product analytics and profiles on their own servers, or on a cloud billed per event.
  • What it replaces in PostHog: Product analytics and web analytics.
  • Watch out for: Pug has no session replay, feature flags, experiments or surveys, so pair it with a tool from the sections below. Its SSO is Google Workspace or OIDC, with no SAML or SCIM. Click, scroll and form autocapture is web only, and capture is cookieless by default until a visitor consents, so identify() does nothing before then.
  • Pricing: 100k events a month free on Pug Cloud, with 1 year of history. Pay as you go is $1 a month plus $20 per million events, falling to $10 past 100M, with 5 years of history; seats, projects and SSO cost nothing extra. Self-hosted, every feature is free under AGPL-3.0. See Pug’s pricing page.

2. Mixpanel

Cloud-only product analytics with session replay, experiments and feature flags on every plan, Free included (Mixpanel pricing). Its hosted MCP server reads and writes, deleting dashboards included, and is on by default for Free and Growth accounts created after August 1, 2026 (Mixpanel MCP docs). For tools that replace Mixpanel itself, see the best Mixpanel alternatives; Pug vs Mixpanel compares the two.

  • Best for: product teams who want a mature hosted tool and SAML sign-in without an enterprise contract.
  • What it replaces in PostHog: Product analytics, session replay, experiments and feature flags.
  • Watch out for: past the Free plan’s monthly limit, Mixpanel keeps collecting but pauses querying until you upgrade (Mixpanel pricing docs). Above 20M events a month, pricing goes through sales (Mixpanel pricing), and SCIM is Enterprise only (Mixpanel SSO docs).
  • Pricing: free up to 1M events a month with unlimited seats. Growth starts at $0 with 1M events included; Mixpanel’s pricing page lists the bill at each volume up to 20M: $613 a month at 5M on monthly billing ($438 billed yearly) and $2,289 at 20M (Mixpanel pricing).

3. Amplitude

Analytics, experiments, feature flags and session replay in one hosted platform. Its MCP server works on every plan, Free included (Amplitude pricing), and creates and edits charts, dashboards, notebooks, experiments, cohorts, feature flags and metrics (Amplitude MCP docs). See Pug vs Amplitude.

  • Best for: larger teams that want one managed platform in place of PostHog’s bundle.
  • What it replaces in PostHog: Product analytics, session replay, experiments and feature flags.
  • Watch out for: Plus, the one self-serve paid plan, needs a card and stops at 70M events, and Growth and Enterprise are quoted by sales (Amplitude pricing). SSO starts at Growth (Amplitude SSO docs).
  • Pricing: free with 2M events a month and 1 year of data. Plus starts at $0 for its first 2M events, scales to 70M and keeps 2 years; Growth and Enterprise have custom, event-based pricing (Amplitude pricing).

4. Heap

Autocapture analytics: Heap records interactions and lets you define events over them after the fact. Its MCP server, available since October 22, 2026, is read-only (Heap MCP announcement). See Pug vs Heap.

  • Best for: teams that want to analyze behavior they didn’t instrument up front, with SAML on the free plan.
  • What it replaces in PostHog: Product analytics, and session replay as a paid add-on.
  • Watch out for: Heap bills on sessions, not events, and publishes no paid price. Session replay is an add-on on Pro and Premier, SCIM is Premier only, and the free plan keeps 6 months of history (Heap pricing).
  • Pricing: free up to 10k sessions a month. Growth is estimated once you install the snippet, and Pro and Premier have custom session pricing (Heap pricing).

Web analytics alternatives

If you used PostHog for traffic numbers, a web analytics tool may cover it. The best cookieless analytics tools compares more of them by how each counts visitors.

5. Plausible

Web analytics without cookies, with the main stats on one page, made and hosted in the EU. See Pug vs Plausible.

  • Best for: traffic numbers on one page, without cookies.
  • What it replaces in PostHog: Web analytics.
  • Watch out for: funnels and user journeys start at the Business plan (Plausible pricing), and SSO (SAML) is Enterprise only (Plausible SSO docs). The self-hosted Community Edition leaves out marketing funnels, user journeys, ecommerce revenue goals and SSO (Plausible Community Edition).
  • Pricing: Starter is $9 a month for up to 10k monthly pageviews, after a 30-day trial with no card (Plausible pricing).

6. Umami

Open-source web analytics under the MIT license, in its cloud or on your own server (Umami license). See Pug vs Umami.

  • Best for: a light traffic dashboard on your own server.
  • What it replaces in PostHog: Web analytics.
  • Watch out for: the free Hobby plan covers 1 website and keeps 6 months of data, MCP access starts at Pro, and SAML SSO is Enterprise only (Umami pricing).
  • Pricing: Hobby is free for up to 100k events a month. Pro is $20 a month with 1M events included, then $0.00003 an event, which is $30 per million (Umami pricing).

7. Matomo

The long-standing open-source Google Analytics alternative (GPL-3.0, Matomo license), in its cloud or on your servers, with a free MCP Server plugin for On-Premise (Matomo MCP Server plugin). See Pug vs Matomo.

  • Best for: teams replacing Google Analytics with something they can host.
  • What it replaces in PostHog: Web analytics, and session replay through a paid plugin.
  • Watch out for: the free Community edition leaves out Funnels and Heatmaps & Session Recording, which come in paid bundles from Team. SAML is in the Enterprise bundle on your servers and the Enterprise plan in its cloud (Matomo pricing).
  • Pricing: on your servers, Community is free with unlimited users and hits, and the Team bundle is 275 € a month (230 € a month billed yearly). Matomo Cloud has a free trial and is priced by hits a month from 50,000, in your local currency (Matomo pricing).

Session replay alternatives

Pug doesn’t record sessions. If you watched PostHog replays, one of these fills that gap.

8. OpenReplay

Open-source session replay for reproducing bugs, on your servers or as a managed instance. Its code is AGPL-3.0 outside an ee/ directory and a few MIT folders (OpenReplay license).

  • Best for: engineering teams that debug from replays and want to host them.
  • What it replaces in PostHog: Session replay.
  • Watch out for: SSO comes with the managed Dedicated plan, and SAML and SCIM with Enterprise, a self-hosted plan on a multi-year contract (OpenReplay pricing).
  • Pricing: the open-source edition is free on your servers. Dedicated, a managed instance, starts at $199 a month, billed hourly at $0.276, and Serverless bills for the sessions you record (OpenReplay pricing).

9. LogRocket

Hosted session replay, with SSO from its first paid plan, Core (LogRocket pricing).

  • Best for: frontend teams fixing bugs from real sessions.
  • What it replaces in PostHog: Session replay.
  • Watch out for: paid prices are monthly equivalents on an annual plan, and self-hosting needs the Enterprise plan (LogRocket pricing).
  • Pricing: free for 1,000 sessions a month. Core starts at $83 a month for 10,000 sessions, billed annually (LogRocket pricing).

10. Microsoft Clarity

Free session recordings and heatmaps from Microsoft.

  • Best for: replay and heatmaps at no cost.
  • What it replaces in PostHog: Session replay and heatmaps.
  • Watch out for: recordings are kept 30 days (favorites and a random sample up to 9 months), Microsoft has access to the data, and Clarity can’t sign people in through your company’s Azure AD, so they use their own accounts (Clarity FAQ).
  • Pricing: free, with no traffic limits and no paid plan (Clarity FAQ).

Feature flag and experiment alternatives

11. GrowthBook

Open-source feature flags and experiments, in its cloud or on your servers. Code in its enterprise directories is under the GrowthBook Enterprise License, and the rest is MIT (GrowthBook license).

  • Best for: teams that want to host flags and experiments with unlimited users.
  • What it replaces in PostHog: Feature flags and experiments.
  • Watch out for: cloud’s free Starter plan stops at 3 users, Pro on cloud signs in with Google only, and SAML SSO and SCIM are Enterprise (GrowthBook pricing).
  • Pricing: Starter is free for up to 3 users on cloud, and the self-hosted free plan has unlimited users. Pro is $40 per seat a month (GrowthBook pricing).

12. Statsig

Experiments, feature flags, product analytics and session replay in one cloud product.

  • Best for: teams that run many experiments.
  • What it replaces in PostHog: Feature flags, experiments, product analytics and session replay.
  • Watch out for: Statsig is a cloud product, and running it in your own data warehouse is an Enterprise deployment (Statsig pricing). SSO, over OIDC, is Enterprise too (Statsig SSO docs).
  • Pricing: the free Developer plan includes 2M events, unlimited flag checks and 50,000 session replays a month. Pro is $150 a month with 5M events, then $0.05 per 1,000 events (Statsig pricing).

13. LaunchDarkly

Hosted feature management for controlled releases, priced on usage rather than seats. Its open-source Relay Proxy runs on your own servers and passes flag updates to your services (LaunchDarkly Relay Proxy docs).

  • Best for: release control across large engineering teams.
  • What it replaces in PostHog: Feature flags.
  • Watch out for: SSO, SAML and SCIM are Enterprise only; Developer and Foundation include two-factor authentication instead (LaunchDarkly pricing).
  • Pricing: the free Developer plan includes 5 service connections and 1K client-side monthly active users, with unlimited seats. Foundation costs $10 per service connection a month and $8.33 per 1K client-side MAU billed yearly, or $12 and $10 billed monthly (LaunchDarkly pricing).

14. Unleash

Open-source feature flags under AGPL-3.0, on your servers or its cloud (Unleash license).

  • Best for: self-hosted flags with SSO on a self-serve plan.
  • What it replaces in PostHog: Feature flags.
  • Watch out for: the open-source edition stops at 1 project, 2 environments and 5,000 flags and has no SSO or SCIM, and a self-hosted Pay-As-You-Go plan needs at least 5 seats (Unleash pricing).
  • Pricing: open source is free on your servers. Pay-As-You-Go is $75 per seat a month, billed monthly with no contract, and includes SSO over SAML 2.0 or OpenID Connect (Unleash pricing).

15. Flagsmith

Open-source feature flags under the BSD 3-Clause license, in its cloud or on your servers (Flagsmith license).

  • Best for: open-source flags on a small cloud plan.
  • What it replaces in PostHog: Feature flags.
  • Watch out for: the free plan has 1 team member, and SAML SSO starts at Scale-Up, $250 a month billed yearly or $300 monthly (Flagsmith pricing).
  • Pricing: free for up to 50,000 API requests a month. Start-Up is $45 a month, or $40 a month billed yearly (Flagsmith pricing).

Survey alternatives

16. Formbricks

Open-source surveys, in its cloud or on your servers. Its code is AGPL-3.0, with the SDK packages under MIT and an ee directory under its own license (Formbricks license).

  • Best for: surveys you can host.
  • What it replaces in PostHog: Surveys.
  • Watch out for: the self-hosted Community Edition has one workspace, and SAML and OIDC sign-in need an Enterprise license (Formbricks license docs).
  • Pricing: Hobby is free for 250 responses a month on cloud. Surveys Pro is $89 a month, or $74 a month billed yearly, and the self-hosted Community Edition takes unlimited responses (Formbricks pricing).

Moving a PostHog setup to Pug

For the parts Pug covers, its SDK calls take the same shape as PostHog’s. The web side, with PostHog’s calls as the PostHog JavaScript SDK docs write them:

// PostHog (posthog-js)
posthog.init('<ph_project_token>', { api_host: 'https://us.i.posthog.com' })
posthog.identify('user_123', { email: 'ada@example.com' })
posthog.capture('user_signed_up', { plan: 'pro' })

// Pug (@pug-sh/browser)
init('your-project-id', { apiKey: 'pub_your_key' })
identify('user_123', { email: 'ada@example.com' })
track('user_signed_up', { plan: 'pro' })
posthog-js against @pug-sh/browser.
PostHogPugWhat differs
posthog.init(token, { api_host })init(projectId, { apiKey, endpoint })Pug takes a project ID and a public key (pub_). endpoint defaults to Pug Cloud; point it at your own server when you self-host.
posthog.capture(event, properties)track(event, properties)Same arguments.
posthog.identify(id, properties)identify(id, traits)Capture stays cookieless until the visitor consents, and identify() does nothing before then: call it after optInTracking(), or init with trackingConsent: 'granted' where you have a basis for it.
posthog.reset()reset()Call it on logout in both.
posthog.opt_in_capturing()optInTracking()Pug’s consent states are granted, cookieless (the default) and denied.
AutocaptureOn after init()Page views, clicks, scrolls, form interactions, rage clicks and dead clicks, on the web. The autoCapture option is an allowlist.
posthog.register(properties)NonePug has no super properties: pass the property on each track() call.
posthog.group(type, key)NonePug has no group analytics.
posthog.getFeatureFlag(key)NonePug has no feature flags: keep PostHog’s, or move to a flag tool above.

On a server, PostHog’s Node SDK (PostHog Node SDK docs) maps onto @pug-sh/node:

posthog-node against @pug-sh/node. Pug’s Go and Ruby SDKs take the same calls.
PostHogPugWhat differs
new PostHog(key, { host })new Pug({ apiKey, endpoint })Server SDKs take a private key (prv_), which can also read profiles and insights.
client.capture({ distinctId, event, properties })pug.track(distinctId, event, props)Positional arguments, user first.
client.identify({ distinctId, properties })pug.identify(externalId, traits)Traits are shallow-merged into the stored ones.
await client.shutdown()await pug.close()Both drain the queue before the process exits.
client.isFeatureEnabled(key, distinctId)NoneNo feature flags.

Three things don’t carry over. Pug has no importer for PostHog data yet, so its reports start on the day its SDK goes in. Automatic events change name: PostHog’s $pageview and $rageclick (PostHog autocapture docs) arrive in Pug as page_view and rage_click. And replays, flags, experiments and surveys stay in PostHog or move to one of the tools above. The Android, iOS and Flutter SDKs take the same track and identify calls: see Pug’s SDKs.

What Pug Cloud costs next to PostHog Cloud

Both bill analytics per event at rates that fall as volume grows. PostHog’s free allowance is larger (1M events a month against Pug’s 100k), so it costs less at 1M; the table shows where that turns. Past 250M events, PostHog’s $9 per million is below Pug’s last tier of $10.

Monthly totals for analytics events. PostHog’s rates are from PostHog pricing, checked November 2026, and exclude the identified events it bills on top for person profiles.
Events a monthPug CloudPostHog Cloud
1M$19$0
5M$87$153
10M$167$324
50M$687$1,528
100M$1,287$2,618

Pug Cloud keeps 5 years of history on Pay as you go (1 year on the free allowance), and charges nothing for seats, projects or SSO. PostHog keeps 1 year on its free plan and 2 years on its paid plan. Try your own volume on Pug’s pricing page, or across vendors in product analytics pricing, compared.

Self-hosting Pug next to self-hosting PostHog

Pug documents one path from a small node to production. The pug Go binary runs the API server, every worker, migrations and the CLI; the dashboard is static files; and the data lives in four stores you may already run: PostgreSQL 15+, ClickHouse, NATS JetStream, and Dragonfly or any Redis 7+. pug start runs the server and every worker in one process on a small node. In production each role is its own container image, built for amd64 and arm64, for a VM, a container platform or Kubernetes. Your SDKs change one option, endpoint, and a self-hosted server has no plans or limits.

PostHog’s column is from its self-hosting docs, disclaimer and SAML docs, checked November 2026.
AreaPugPostHog
LicenseAGPL-3.0 for every featureMIT outside ee/; paid-plan features stay on PostHog Cloud
DeploymentOne process on a small node, or a container image per role (amd64, arm64)A hobby Docker Compose deploy; new Kubernetes deployments are no longer supported
Vendor stanceDocumented for production at docs.pug.shOfficially unsupported, with no customer support
SSOGoogle Workspace and OIDC, includedNeeds an enterprise license

PostHog’s self-hosting disclaimer adds that the hobby deploy is unlikely to scale past a couple hundred thousand events without significant effort. Read PostHog’s self-hosting docs and Pug’s self-hosting docs side by side, and see the best self-hosted analytics for what other tools take to run.

SSO: which alternatives charge for it

Pug includes SSO on every plan, cloud and self-hosted: Google Workspace sign-in, or your own identity provider over OIDC (Okta, Microsoft Entra ID, Keycloak, Auth0, OneLogin), with verified domains, auto-join and Require SSO per domain. It has no SAML or SCIM.

From each vendor’s pricing page or SSO docs, checked November 21, 2026.
ToolSSO through your identity providerProtocolSource
PugEvery plan, cloud and self-hostedOIDC, Google WorkspacePug SSO docs
PostHogScale package, $750 a month on top of usage; enforcing SSO needs Boost, $250SAML, OIDCPostHog pricing, PostHog SAML docs, PostHog OIDC docs
MixpanelGrowth, from $0SAMLMixpanel SSO docs
AmplitudeGrowth and Enterprise, custom pricingSAMLAmplitude SSO docs
HeapEvery plan, Free includedSAMLHeap pricing, Heap SAML guide
PlausibleEnterpriseSAMLPlausible SSO docs
UmamiEnterpriseSAMLUmami pricing
MatomoCloud Enterprise; the Enterprise bundle on your serversSAML, LDAPMatomo pricing
OpenReplayDedicated and EnterpriseSAML on EnterpriseOpenReplay pricing
LogRocketCore, its first paid planNot listedLogRocket pricing
Microsoft ClarityNone; no sign-in through your company’s Azure ADn/aClarity FAQ
GrowthBookEnterprise; Google sign-in on ProSAMLGrowthBook pricing
StatsigEnterpriseOIDCStatsig pricing, Statsig SSO docs
LaunchDarklyEnterpriseSAMLLaunchDarkly pricing
UnleashPay-As-You-Go, $75 per seat a monthSAML 2.0, OIDCUnleash pricing
FlagsmithScale-Up, $250 a month billed yearlySAMLFlagsmith pricing
FormbricksEnterprise licenseSAML, OIDCFormbricks license docs

MCP servers and AI crawler reports

Pug’s MCP server is listed in Claude’s connectors directory and as a ChatGPT plugin, and Claude Code, Cursor or any other MCP client can add it by URL. Sign in once and a connection reads every project in your orgs, or connect one project with a private key. Sixteen of its seventeen tools read trends, funnels, retention, user paths, top lists, country maps, people and recent events; upsert_dashboard creates or edits a dashboard. A connection can’t delete a dashboard, erase a person or send events. How Pug’s MCP server works.

From each vendor’s MCP docs and pricing page, checked November 21, 2026.
ToolHosted MCP serverWhat it can changeSource
PugEvery plan, and on your own serverCreates and edits dashboardsPug MCP server
PostHogFreeReads and writes; a read-only option drops the tools that change dataPostHog MCP docs, PostHog MCP FAQ
MixpanelEvery plan; on by default for Free and Growth accounts created after August 1, 2026Reads and writes, deleting dashboards includedMixpanel pricing, Mixpanel MCP docs
AmplitudeEvery plan, Free includedCreates and edits charts, dashboards, experiments, cohorts and flagsAmplitude pricing, Amplitude MCP docs
HeapAccounts with access to Heap MCP, since October 2026Nothing; it’s read-onlyHeap MCP announcement

Crawlers such as GPTBot, ClaudeBot and ChatGPT-User fetch HTML and never run JavaScript, so a browser script can’t count them. Pug’s @pug-sh/crawlers package runs in your own request handling (Cloudflare Workers, Vercel and Next.js, Hono, Bun, Deno, Express or Node), checks each request’s IP against the ranges the crawler’s operator publishes, and the Overview’s AI and search crawlers section shows the pages they read, 404s included. How crawler reporting works. PostHog reads forwarded server or CDN logs as $http_log events, with a Bots tab in alpha (PostHog bot traffic docs).

When PostHog is still the better choice

  • You use three or more of its products. One SDK and one bill cover analytics, replay, flags, experiments and surveys. Leaving means two or three tools from this guide, each with its own SDK.
  • Your volume sits near its free allowance. PostHog gives 1M analytics events a month against Pug’s 100k, so at 1M events PostHog Cloud costs $0 and Pug Cloud $19.
  • Your identity provider only speaks SAML. Pug’s SSO is Google Workspace or OIDC, with no SAML or SCIM; PostHog has SAML from its Scale package.
  • You report on companies as well as people. PostHog’s group() attaches events to a company, and Pug has no equivalent.

How to choose

Start from the PostHog product you’re replacing. For product analytics you can host, Pug. For polished hosted analytics, Mixpanel or Amplitude, or Heap to define events after the fact. For traffic numbers, Plausible, Umami or Matomo. For replay, OpenReplay to host it, LogRocket to debug from it, or Clarity at no cost. For flags and experiments, GrowthBook or Unleash to host them, Statsig or LaunchDarkly managed. For surveys, Formbricks. To keep everything in one product, stay on PostHog Cloud.

Estimate a bill for your volume with the analytics cost calculator, and see every head-to-head on the comparisons hub. Other roundups: the best Mixpanel alternatives, the best product analytics tools, the best open source analytics tools, and the best cookieless analytics tools.

How we checked

Every competitor price, plan limit, SSO plan, MCP fact and license on this page was read on the vendor’s own pages on November 21, 2026, and each figure links to the page it came from. Licenses come from the LICENSE file in each open-source repository. Matomo Cloud shows prices in your local currency, so this page quotes none for it. Pug’s figures come from Pug’s pricing page and docs.pug.sh. The pages read:

What is the best PostHog alternative?

It depends on which PostHog product you’re replacing. For product analytics you can self-host, Pug (AGPL-3.0). For hosted product analytics, Mixpanel or Amplitude. For web analytics, Plausible, Umami or Matomo. For session replay, OpenReplay, LogRocket or Microsoft Clarity. For feature flags and experiments, GrowthBook, Statsig, LaunchDarkly, Unleash or Flagsmith. For surveys, Formbricks.

Is there an open-source PostHog alternative you can self-host?

Yes, one for each PostHog product: Pug for product analytics, Plausible, Umami or Matomo for web analytics, OpenReplay for replay, GrowthBook, Unleash or Flagsmith for flags, and Formbricks for surveys. Several hold features back for paid editions: Plausible’s Community Edition leaves out funnels and SSO, and Matomo’s free Community edition leaves out funnels and heatmaps. Pug has one edition, with every feature in it.

Does PostHog support self-hosting?

Only as a hobby Docker Compose deploy under MIT. PostHog’s own docs call it officially unsupported, offer no customer support for it, keep every paid-plan feature on PostHog Cloud, and no longer support new Kubernetes deployments. Its disclaimer adds that the deploy is unlikely to scale past a couple hundred thousand events without significant effort.

Which PostHog alternatives include SSO without an enterprise plan?

Pug includes SSO on every plan, cloud and self-hosted, through Google Workspace or an OIDC provider, though not SAML. Heap includes SAML on every plan, Free included, Mixpanel includes SAML on its Growth plan, which starts at $0, and Unleash includes SAML or OIDC on Pay-As-You-Go at $75 per seat a month. PostHog needs its Scale package, $750 a month, for SAML or OIDC, and most of the other tools here keep SSO for enterprise contracts.

Do PostHog alternatives include session replay and feature flags?

Rarely in one product. Mixpanel, Amplitude, Statsig and LogRocket record sessions, and Mixpanel, Amplitude and Statsig run experiments and feature flags. Most teams that leave PostHog pair a focused analytics tool with a replay or flag tool from this guide. Pug has neither.

Which PostHog alternatives have an MCP server?

PostHog, Mixpanel, Amplitude and Pug run hosted MCP servers that work on their free plans, and Heap’s is read-only. Umami includes MCP access from its Pro plan, and Matomo has a free MCP Server plugin for On-Premise. Pug’s is listed in Claude’s connectors directory and as a ChatGPT plugin.

Start on Pug Cloud, or run Pug yourself

Create a project on Pug Cloud and send your first event, or follow the self-hosting docs to run Pug on your own servers.

Questions? Email hello@pug.sh