Self-host OpenAnalytics
v0.8.0Privacy-first web analytics with revenue attribution
- Stars
- 642
- RAM
- about 4 GB
- Storage
- 25 GB of free disk
- Ports
- 443 (HTTPS for the four public hostnames (dashboard, api, collector, realtime), served by the bundled Caddy with Let's Encrypt certificates), 8081 (query-gateway, the only process allowed to read ClickHouse), 8082 (api control plane (auth, sites, keys, sharing, MCP)), 8083 (collector ingest endpoint), 8084 (realtime SSE stream behind the live dashboard), 8085 (worker (queue drain, rollups, mail, deletions)), 3000 (web dashboard (Next.js) server)
- Requires
- ClickHouse, PostgreSQL, Valkey
ghcr.io/openlabs-so/openanalyticsWhat is OpenAnalytics?
OpenAnalytics (branded Open Analytics) is a privacy-first web-analytics product: a tiny async tracker script on your pages plus a dashboard, and nothing personal is retained — no cookies are set, nobody is fingerprinted, IP addresses are dropped after being hashed into a per-day visitor id. Day-to-day reporting covers pageviews, custom events, sessions, Core Web Vitals, funnels, campaign and UTM cuts, visitor journeys, a live presence view with a country globe, per-site retention, embeddable widgets and read-only share links. Money is tracked too: connect your own Stripe or Polar account with a read-only credential and payments appear next to the visit that produced them. It also ships a read API behind Bearer keys, an oa CLI, an MCP server for AI assistants, an optional OpenAI-powered chat, team roles, and CSV/JSON import and export backed by an S3-compatible bucket. Self-hosting is the supported Docker Compose path — point four hostnames at a Linux box, run ./generate-secrets.sh, then pull and start the stack; Caddy requests the TLS certificates itself, and seven services sit over Postgres, ClickHouse and two Valkey instances. Caveats: releases are still 0.x (v0.8.0), images are amd64 only so arm64 must build them, going back a version means restoring a snapshot, and the getopen.so cloud is subscription-billed while the repo's schema holds no billing tables.
Should you self-host OpenAnalytics?
OpenAnalytics scores 47/100 on selfhost.directory (how scoring works) and ranks #18 of 21 in Web analytics. It has 642 GitHub stars.
It shipped 7 stable releases in the past year. The latest, v0.8.0, came out on 19 September 2026. New versions land roughly every 3 days.
Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is Plausible Analytics (81/100, 29 704 stars). It scores higher overall, so compare the two before you pick. See OpenAnalytics vs Plausible Analytics side by side.
Features
- Campaign / UTM reporting
- City-level geolocationRequires downloading a GeoIP database (none bundled) and per-site opt-in for city detail.
- Cookieless, fingerprint-free tracking
- Core Web Vitals
- CSV/JSON import and exportImport/export needs an S3-compatible bucket to be configured.
- Custom Events
- Embeddable Widgets
- Funnels
- Live visitor globe
- MCP Server
- Public share dashboards
- Realtime visitor presence
- Revenue attribution
- Team roles
- Visitor journeys
OpenAnalytics README
FAQ
Will it slow my site down?
The tracker is a single small async tag of about 2 KB compressed, with no SDK or build step.
How does revenue attribution work?
You connect Stripe or Polar with a read-only credential, and each payment is joined to the visit that produced it.
Can I bring my history from another tool?
Yes, you can upload an export from Plausible, Fathom and other supported tools as a single ZIP, review it, and roll it back in one click.
Is there a free plan?
There is no free plan; the hosted service offers a 7-day free trial on the size you pick, and cancelling before day 7 costs nothing.
Why my numbers look lower than Google Analytics?
Visits from browsers sending Global Privacy Control or Do Not Track are not recorded at all, so lower counts are respected opt-outs rather than missing data.
What do you store about my visitors?
Only aggregate-style signals — pageviews, referrers, devices and the events you send — with visitors counted by an anonymous hash that rotates daily.
Can I self-host it?
Yes, the project is open source and can run on your own infrastructure with your own keys, or on their hosted cloud.
Do I need a cookie consent banner?
No — the tracker sets no cookies and collects nothing personal, so there is no consent to ask for, in the EU included.
More in Web analytics
openpanelOpen-source, self-hosted web and product analytics in the spirit of Mixpanel: funnels, cohorts, session replay, A/B testing, revenue tracking, cookieless by default.
openwebanalyticsSelf-hosted, open-source web analytics with a first-party JS tracker, dashboards, heatmaps, session recordings and a REST API — an alternative to Google Analytics.
Plausible AnalyticsOpen-source, privacy-first web analytics with a one-page dashboard and a cookie-free tracker; self-hosted as Community Edition via Docker Compose.
Plausible CESelf-hosted, AGPL-licensed community edition of Plausible: cookieless web analytics with a single-page dashboard, run via Docker Compose with PostgreSQL and ClickHouse.
poeticmetricPoeticMetric is a self-hosted, open-source web analytics platform replacing Google Analytics with privacy-first, cookie-free tracking.
PostHogOpen-source product toolkit - analytics, session replay, feature flags, error tracking - with a one-line self-hosted hobby deploy using Docker Compose.
rightanaRightAna is a self-hosted, open-source web analytics platform tracking sessions with GDPR compliance, running as a single Go binary with embedded BoltDB.
RybbitOpen-source cookieless web & product analytics replacing Google Analytics: session replays, funnels, retention, self-hosted with Docker, Postgres and ClickHouse.
shynetSelf-hosted, open-source web analytics that watches visitors with no cookies and no required JavaScript, giving sessions, referrers, bounce rate and location data.
sinkOpen-source, self-hosted URL shortener with visit analytics, custom slugs, QR codes and Cloudflare Access support, deployed serverlessly on Cloudflare Workers.
stack-authSelf-hosted open-source user platform for SaaS apps: auth with passkeys, teams and RBAC, API keys, payments, emails, webhooks, and product analytics with replays.
swetrixOpen-source, cookieless Google Analytics alternative: privacy-first traffic stats plus error tracking, performance monitoring and self-hosted session replays.




0 comments