- Counting without cookies.
POST /api/events, the analytics relay, counts page views from the site and the web app and screen views from the mobile app: the path without its query (exceptutm_*), or the route pattern on signed-in screens and in the app, the referrer's host, the country from the edge and device and browser codes. No cookie, storage, IP address, user agent or id is kept; bots and automated browsers count nothing. The web client is about 0.8 KB gzip and starts after hydration. A database rate limit keyed by an HMAC of the address works on Node as on Workers. Mixpanel or PostHog can be added later as providers that only receive batches sent with consent; none ships (6911556e, 414b65c8, 97f278c9). Confirm the cookieless counting with your data protection owner before launch. Analytics explains what is kept and why. - Totals in Postgres, folded by the cron. Raw events live for 30 days; the one-minute tick folds them into daily tables exactly once under a lease and a watermark, writes one release annotation per new Worker version, and, with
CLOUDFLARE_ANALYTICS_TOKENandCLOUDFLARE_ANALYTICS_ZONE_ID, syncs Cloudflare's zone totals every 30 minutes. Every analytics table denies the tenant role, proved in the RLS matrix (f07c51e3). /admin/analytics. Platform admins see the period's views, events, countries, active sources, the share with consent and Cloudflare's unique visitors (both dimmed, the latter marked "CF"), views per day stacked by source with imported days hatched, release markers and campaign bands, annotations they can add or delete, and the top pages, countries, referrers and events (414b65c8, 96a821dd).- Bklit charts in
packages/ui. The first Bklit components in the template: the composed chart, markers, reference area and sparkline, withmotion14.14.0 andd3-array,d3-scaleandd3-shape; the chart roles are theme tokens (481029fc). Bundle cost:docs/measurements/2026-11-27-admin-analytics.md.
First-party analytics in the admin, counted without cookies
Page, screen and event counts kept by our own server without cookies or identifiers, rolled up by the cron, and shown on /admin/analytics with a Bklit chart, annotations and optional Cloudflare numbers.
Edit on GitHubDocumentation is in English.