3 self-hostable options with public code.
Full-featured web analytics you can own
Light, cookie-free web analytics
Simple, privacy-focused website analytics