Skip to content

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.

  • 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.
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.

  1. The tracker or SDK sends the event to <your Beacon URL>/x/e.
  2. Ingest checks that the website exists, is collecting data, and allows the page’s hostname.
  3. It drops bots, excluded IPs and paths, and visitors with Do Not Track or Global Privacy Control when the website respects them.
  4. 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.
  5. It adds browser, OS and device, and country, region and city when a GeoIP database is set up.
  6. It writes the event to ClickHouse in batches.

Read Privacy for the details.