What is diy-analytics?
diy-analytics is a self-hosted web analytics tool for people who want full control over their data. It runs with a tiny 2 KB script tag, so you can add it to a site without an SDK or build step. It tracks pageviews and Web Vitals automatically, and also includes funnels, retention, visitor breakdowns, and error tracking with stack traces and breadcrumbs. The product is privacy-first, cookie-free, GDPR compliant, and built to live in your own Postgres database. There’s also an AI assistant and MCP server, so you can ask questions about traffic, funnels, and errors in plain English. It’s open source, MIT licensed, and designed for quick self-hosted deployment.
Key features
- Tracks pageviews and Web Vitals with one small script.
- Captures errors automatically with stack traces and breadcrumbs.
- Stores data in your own Postgres database.
- Includes funnels, retention, breakdowns, and visitor views.
- Offers an AI assistant and MCP server for questions.
- Deploys quickly with one connection string and no DevOps.
Category
Website





