Skip to content

Web analytics for developers and their agents.

The analytics you already know, for the next thing you build. Your coding agent installs it, then answers your questions from it.

Add nanolytics to this project by following nanolytics.dev/AGENTS.md

Paste it into Claude Code, Cursor, Codex or VS Code. Or sign up and add the script yourself.

Example data · example.com · Oct 17 – Nov 15, 2026

nanolytics is web analytics , error tracking and session replay in one 1.5 KB script. You read it in a dashboard; your agent reads the same numbers over MCP. And every event is kept, on every plan.

Everything in one script.

Turn on only what you need.

  1. Google7,585
  2. Direct6,025
  3. Hacker News3,340
  4. ChatGPT1,976

Web analytics

Visitors, pages, sources and countries, with goals, funnels and paths.

How many came from Google?

7,585visitors · 30% of all

via nanolytics MCP

MCP

Your coding agent asks over MCP and gets the same numbers as the dashboard.

  1. TypeError: Cannot read properties of undefined (reading 'id')426
  2. ChunkLoadError: Loading chunk <n> failed.207
  3. AbortError: The user aborted a request.92

Errors

The errors your visitors hit, with the page, the browser and the stack.

0:42 / 2:08

Session replay

Watch a visit back. What people type is masked in the browser.

99,048pageviews on record

Full history

Every event is kept at full detail, on every plan, Free included.

document.cookie → ""

Privacy

No cookies or stored IP addresses, and data kept in the EU. Consent mode keeps no ID in the browser.

Free up to a million events a month.

No trial that runs out, and every event is kept. Sites, members and storage are never billed.

Free

$0a month

1 million events a month

  • Unlimited sites and members
  • Every event kept, at full detail
  • Dashboard, API and MCP
  • Funnels, paths and errors
  • A DPA, accepted at signup

ProOpens soon

$9a month

10 million events a month, then $0.50 per million

  • Everything in Free
  • A larger query budget
  • Spend alerts at any amount

Until it opens, Free covers you.

Your monthly cost

Pageviews and custom events count as events, across all your sites. Bots don’t.

a month

events · Free

Add it to your next project.

With your agent

Paste the prompt into Claude Code, Cursor, Codex or VS Code. You approve it once.

AGENTS.md

By hand

Sign up for your site's key, then put one line in the head of every page.

<script defer src="https://app.nanolytics.dev/s/pk_….js"></script>
Sign up for your key