Skip to content

Compare

nanolytics vs Google Analytics 4

nanolytics is web analytics, error tracking and session replay in one script, with an MCP server your coding agent reads. Google Analytics 4 is Google’s free, event-based analytics for websites and apps.

At a glance

nanolyticsGoogle Analytics 4
Price at 1M a monthFreeFree
Free plan1M events a monthNo monthly event cap
The meter countspageviews and custom eventsevents
Data keptNo limit, at full detail2 or 14 months of event-level data (a property setting)
Hosted inEvents and recordings in the EU (Cloudflare R2); sign-in in the US (WorkOS)Google’s data centers (no country named)
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.No
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 sourceNoNo
Self-hostedNoNo

Features

nanolyticsGoogle Analytics 4
Traffic dashboardYesYes
Custom eventsYesYes
FunnelsYesYes
PathsYesYes
Error trackingYesNo
Session replayYesNo
Web VitalsYesNo
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; Google Analytics 4 counts events.

A monthnanolyticsGoogle Analytics 4
100kFreeFree
1MFreeFree
10M$9Free
100M$54Free
  • 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.
  • Google Analytics 4: The standard, free property at every volume. Analytics 360 is priced by sales.

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 Google Analytics 4 when

  • You want free analytics with no traffic ceiling.
  • Your marketing runs on Google Ads and needs its conversion data.
  • You want raw events in BigQuery to query with SQL.

Keep in mind

  • It sets cookies, so EU sites usually need a consent banner.
  • Event-level data is kept for 14 months at most.

Questions

Is nanolytics cheaper than Google Analytics 4?
At 1 million a month it's free for nanolytics and free for Google Analytics 4; at 10 million, $9 for nanolytics and free for Google Analytics 4. They don't meter the same thing: nanolytics counts pageviews and custom events, Google Analytics 4 counts events.
What does each have that the other doesn't?
nanolytics has error tracking, session replay and Web Vitals. Google Analytics 4 has raw SQL.
Do nanolytics and Google Analytics 4 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. Google Analytics 4 uses cookies. Whether you need a consent banner also depends on what else your site does.
Can I self-host nanolytics or Google Analytics 4?
nanolytics is hosted only. Google Analytics 4 is hosted only.
How long is data kept?
nanolytics, no limit, at full detail; Google Analytics 4, 2 or 14 months of event-level data (a property setting).

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.