matomo has a free self-hosted option. and it doesn't require js injection. if you don't need lots of metrics, it's able to parse some data from nginx/apache logs alone.