https://github.com/matomo-org/matomo
https://github.com/plausible/analytics
https://github.com/arp242/goatcounter
All 3 of them open source and you can host yourself. If you don't want to self host all 3 have options for you.
I am currently self hosting Matomo and am happy with it.
Fun timing for you to ask as just running a poll to see what others are using:
https://fosstodon.org/@softinio/109689221718875173