I've been playing a bit with caozilla’s Umami app for self-hosted web analytics. It seems pretty nice so far.
Even managed to coax Cloudformation into making it work in ECS+Fargate, and with Aurora MySQL Serverless. Should be highly-available this way.
umami.is/