Introduction
Beacon is self-hosted web analytics that works without cookies. It records pageviews, custom events, outbound link clicks, file downloads and Core Web Vitals, and keeps everything in databases you run yourself.
What you get
Section titled “What you get”- Analytics: an overview with visitors, visits, pageviews, bounce rate and visit duration, breakdowns by page, referrer, UTM tag, location, browser, OS and device, and filters on any of them. See Overview.
- Events and funnels: custom events with properties, and funnels across pages and events.
- Live view: the event stream as it arrives, and who is on the site right now.
- Web Vitals: LCP, INP, CLS and TTFB from real visitors, per page.
- Annotations: markers on the chart for deploys and launches, from the dashboard or from CI.
- Alerts and digests: scheduled summaries, traffic spikes and downtime, by email or webhook.
- Sharing: public read-only dashboards and a pageview badge.
- Exports: raw events as CSV or NDJSON.
- Teams: users with roles, per-website access, API keys and two-factor sign-in.
How it fits together
Section titled “How it fits together”browser / server ──► nginx ──► /x/* ingest (Go) ──► ClickHouse └──► /* dashboard (TanStack Start) ──► Postgres, ClickHouse, Redis worker (BullMQ) ◄── Redis: exports, digests, alerts, retention| Part | What it does |
|---|---|
| Ingest | A Go service that serves the tracker script, receives events, enriches them and batch-writes to ClickHouse. |
| Dashboard | The web app and its API. It reads analytics from ClickHouse and keeps users, websites and settings in Postgres. |
| Worker | Background jobs: exports, email digests, anomaly alerts, webhooks, session cleanup and data retention. |
| Nginx | Sends everything under the ingest prefix (default /x) to ingest and the rest to the dashboard. |
Because the tracker is served from your own domain under a neutral path, it is less likely to be blocked than a third-party analytics script.
What happens to an event
Section titled “What happens to an event”- The tracker or SDK sends the event to
<your Beacon URL>/x/e. - Ingest checks that the website exists, is collecting data, and allows the page’s hostname.
- It drops bots, excluded IPs and paths, and visitors with Do Not Track or Global Privacy Control when the website respects them.
- It turns the IP and user agent into a visitor ID with a salted hash. The salt rotates daily or monthly, so a visitor can’t be followed across periods. The raw IP and user agent are never stored.
- It adds browser, OS and device, and country, region and city when a GeoIP database is set up.
- It writes the event to ClickHouse in batches.
Read Privacy for the details.
Next steps
Section titled “Next steps”- Self-hosting: run Beacon on your server.
- First run: create the first account and add a website.
- Script tag or JavaScript SDK: start tracking.