Architecture portfolio

ADR 007

Self-hosted, cookieless analytics instead of Google Analytics

AcceptedNovember 2026Scope: all public sites

Context

I need basic product analytics: which apps get used, where visitors come from, and which pages fail to engage. The audience includes families and children, and the platform's selling point is privacy.

Options considered

OptionForAgainst
Google Analytics 4Free, powerfulVisitor data goes to a third party; a cookie-consent banner is needed; ad-blockers skew the numbers; at odds with the privacy promise
Hosted privacy analytics (Plausible, Fathom)No servers to runPaid per site and per pageview volume
Self-hosted Umami with its own PostgresCookieless; data stays on my server; one script tag for every site; no per-site costAbout 230 MB RAM; I maintain and back it up

Consequences

At bank scale

Product analytics in a bank goes through a consent-aware tag manager, server-side collection, and a data catalogue that marks each event field as personal data or not. The question to ask any vendor stays the same: does this data need to leave our boundary at all?