OpenAnalytics tracks page views, events, funnels and Stripe revenue with a small script, ClickHouse storage and an optional MCP server.
Overview
OpenAnalytics is a privacy-first web analytics product delivered as a pnpm monorepo you can self-host under AGPL-3.0. A lightweight browser tracker sends events to a collector pipeline that lands in ClickHouse, while Postgres holds configuration and Valkey handles queues and realtime presence.
The dashboard covers live visitors, sessions, funnels, retention, embeddable widgets, share links, web vitals, revenue from Stripe, CSV import and export, an AI assistant and an MCP server. Architecture rules keep the frontend behind OpenAPI contracts and route all ClickHouse reads through a signed query gateway.
Self-hosting is documented with a generator script and docker compose up, published container images on ghcr.io, and optional Neon-managed Postgres. A hosted instance at getopen.so runs the same codebase.
The tracker stays cookieless and aggregate-oriented, aimed at sites that want analytics without cross-site profiling or consent banners.
Key features
- Cookieless lightweight browser tracker with CI byte budget
- Realtime dashboard with SSE presence stream
- Custom events, funnels and per-site retention
- Stripe-linked revenue analytics
- Embeddable widgets and public share links
- MCP server and oa CLI for setup and stats
- Ed25519-signed ClickHouse query gateway
- Docker Compose self-host with automatic TLS guide
Use cases
- Self-hosting site analytics without third-party cookies
- Watching live traffic during a product launch
- Tying marketing funnels to Stripe revenue
- Connecting an AI assistant to analytics via MCP
Open-source alternative to
GGoogle Analytics 4“Open Analytics is a privacy-first Google Analytics alternative: realtime visitors, funnels and revenue attribution from one lightweight, cookieless script.” source
Does the same job as
OpenAnalytics doesn't name these products itself, but its own description shows it does the same job.