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.
Pages
Visitors- /15,540
- /blog/sqlite-at-the-edge5,517
- /pricing4,923
- /docs/install4,277
- /docs3,945
Sources
Visitors- Google7,585
- Direct6,025
- Hacker News3,340
- ChatGPT1,976
- GitHub1,693
Browsers
Visitors- Chrome14,685
- Safari6,475
- Firefox1,900
- Edge1,524
- Opera343
What changed on example.com this month?
Used nanolytics · query
25,038 visitors in the last 30 days, +40% on the 30 days before (17,891).
Most came from Google (7,585), and the top page was / (15,540).
43% of visits saw one page; the average visit lasted 1m 03s.
authorization: Bearer ••••••••••••
content-type: application/json
{
"range": "30d",
"metrics": ["visitors", "pageviews"],
"interval": "day"
}{
"totals": {
"visitors": 25038,
"pageviews": 57448,
"error": {
"visitors": 0.0081
}
},
"series": [
{"start": "2026-10-17", "visitors": 506, "pageviews": 1195},
{"start": "2026-10-18", "visitors": 494, "pageviews": 1155},
{"start": "2026-10-19", "visitors": 763, "pageviews": 1782},
…
],
"meta": {
"query_id": "q_01M7K8JRKZQ4XMJ015MHZ0KWRE",
"as_of": "2026-11-16T22:45:25.584Z"
}
}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.
- Google7,585
- Direct6,025
- Hacker News3,340
- 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.
- TypeError: Cannot read properties of undefined (reading 'id')426
- ChunkLoadError: Loading chunk <n> failed.207
- AbortError: The user aborted a request.92
Errors
The errors your visitors hit, with the page, the browser and the stack.
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.
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