Lots of paid recomendations on this thread. There's also Umami[1] which is free, open source and self hosted.
I've not used it yet, just have it bookmarked for my next project.
[1] https://umami.is
I've not used it yet, just have it bookmarked for my next project.
[1] https://umami.is