Open source version of google analytics
No AI needed
not yet reviewed by publik. It is live now; the founder has not reviewed this version yet.
OpenAnalytics
open source · on publik
Every step written out. No terminal experience needed. Pick your setup.
Web analytics without the surveillance. An alternative to Google Analytics that gives you the numbers you actually need — visitors, traffic sources, conversions — in one fast, cookieless dashboard.
data-oana-event attributeexample.com).<head> of every page:<script async defer src="https://your-analytics-host/oana.js" data-domain="example.com"></script>
your-analytics-host is where this instance is served — the dashboard shows the snippet
with the correct URL pre-filled.
window.oana('Signed Up');
or declaratively:
<button data-oana-event="Signed Up">Get started</button>
Create goals in Settings → Conversion goals. A goal converts when a custom event fires or a page matching a path prefix is visited.
docker build -t openanalytics .
docker run -p 3000:3000 -v openanalytics-data:/app/db openanalytics
The SQLite database is stored in /app/db inside the container — mount a volume to
persist it across restarts.
| Variable | Description | Default |
|---|---|---|
DATABASE_URL | SQLite file path (relative paths resolve from prisma/) | file:../db/custom.db |
| Command | Description |
|---|---|
bun run dev | Start the dev server |
bun run build | Production build |
bun run start | Run the production build |
bun run db:push | Create/update the SQLite schema |
bun run db:generate | Generate the Prisma client |
bun run lint | ESLint |