Plausible

From NixOS Wiki

Plausible is a privacy-friendly alternative to Google analytics.

It is documented in the NixOS manual.