A powerful, self-hosted analytics tool with funnels, errors, and an AI assistant built in. One 2 KB script.





No SDK, no build step. Tracks pageviews and Web Vitals automatically.
Resolved stack traces and breadcrumbs, no extra setup.
Read the code. Self-host it for free, forever.
One-click deployment
Own your data
One click, one connection string. No DevOps degree required.
Your data lives in your own database.
Async and deferred. Your Core Web Vitals stay untouched.
Funnels, journeys, retention, errors, and more. All free.
MIT licensed. Built by developers, for developers.

Your analytics already knows the answer — you just have to ask. Point any MCP client at your deployment and query traffic, funnels, and errors in plain English, live.
No vendor lock-in, no black box. Just your database and your data.
Point us at a Postgres instance — Neon, Supabase, or self-hosted — and deploy your own instance of the stack.
Set up your project and drop a single 2 KB tag into your site. No SDK, no build step.
Pageviews, funnels, and errors land in your dashboard live — ask the AI assistant for the rest.
| Feature | diy-analytics | Google Analytics | Plausible | Umami |
|---|---|---|---|---|
| Self-hosted, own your database | ||||
| Funnels & journeys | ||||
| Weekly retention cohorts | ||||
| Error tracking + source maps | ||||
| Ad-hoc session Explore | ||||
| AI assistant / MCP server | ||||
| Free, no per-event pricing |
Free, self-hosted, ten minutes to deploy.
No credit card.