You can collect stats behind the scenes, without using JS-powered analytics or embedded statistics pixels with GoAccess[0].
This isn't a violation of privacy since you have the right to inspect the logs of your own server(s). Analytics like Google Analytics, etc are not privacy champions and use that data to feed into their AD business.
There is also AWStats which is pre-bundled with cPanel. The only caveat is that 30% of the traffic monitored is likely bots, scrapers, or otherwise malicious actors.