Skip to content

Compare

nanolytics vs PostHog

nanolytics is web analytics, error tracking and session replay in one script, with an MCP server your coding agent reads. PostHog is a set of product tools, from analytics and session replay to feature flags and error tracking, each billed by usage.

At a glance

nanolyticsPostHog
Price at 1M a monthFreeFree
Free plan1M events a month1M events a month
The meter countspageviews and custom eventsevents
Data keptNo limit, at full detail2 years of events; 90 days of recordings
Hosted inEvents and recordings in the EU (Cloudflare R2); sign-in in the US (WorkOS)US (Virginia) or EU (Frankfurt)
Without cookiesYes. By default it keeps a random visitor ID in localStorage, which EU rules treat like a cookie; in consent mode it keeps none.Yes
Script size1.5 KB with every option off; replay adds up to 2 KB, and up to 20 KB more on page loads it recordsNot published
Open sourceNoMIT
Self-hostedNoYes

Features

nanolyticsPostHog
Traffic dashboardYesYes
Custom eventsYesYes
FunnelsYesYes
PathsYesYes
Error trackingYesYes
Session replayYesYes
Web VitalsYesYes
Query APIYesYes
MCP serverYesYes
Raw SQLNoYes

What a month costs

At each volume of the product’s own unit, on the cheapest plan that covers it. nanolytics counts pageviews and custom events; PostHog counts events.

A monthnanolyticsPostHog
100kFreeFree
1MFreeFree
10M$9$324
100M$54$2,618
  • nanolytics: Free up to 1M events a month; Pro, which opens soon, is $9 with 10M included, then $0.50 per million. Errors and replays aren’t billed.
  • PostHog: Pay as you go: the first 1M events free, then $0.00005 to $0.0000218 an event, falling with volume. Anonymous events; identified events cost extra. Replay and errors are billed apart.

Which to use

Use nanolytics when

  • You want traffic, errors and replays from one script, on one bill.
  • Your coding agent should install it and read the numbers over MCP.
  • You want full history with no retention limit, without paying for storage or seats.

Keep in mind

  • Hosted only: there is no self-hosted version.
  • New: no integrations marketplace or data warehouse export yet.

Use PostHog when

  • You want analytics, replay, feature flags, errors and SQL in one tool.
  • You want a free allowance on every product, with no trial clock.
  • You may want to self-host the MIT-licensed version later.

Keep in mind

  • Many products and settings take time to learn.
  • Each product has its own meter, so the bill is harder to predict.

Questions

Is nanolytics cheaper than PostHog?
At 1 million a month it's free for nanolytics and free for PostHog; at 10 million, $9 for nanolytics and $324 for PostHog. They don't meter the same thing: nanolytics counts pageviews and custom events, PostHog counts events.
What does each have that the other doesn't?
PostHog has raw SQL.
Do nanolytics and PostHog use cookies?
nanolytics sets no cookies. By default it keeps a random visitor ID in localStorage, which EU rules treat like a cookie; in consent mode it keeps none. PostHog says it works without cookies. Whether you need a consent banner also depends on what else your site does.
Can I self-host nanolytics or PostHog?
nanolytics is hosted only. PostHog can be self-hosted (MIT).
How long is data kept?
nanolytics, no limit, at full detail; PostHog, 2 years of events; 90 days of recordings.

Try nanolytics

Free up to a million events a month. Your coding agent can install it.

More comparisons

Checked on 17 November 2026 against each vendor’s own pages. Prices are list prices with monthly billing, before tax. Written by nanolytics, one of the products compared.