AWStats does something similar: https://www.awstats.org/
You get a full picture of traffic without relying on inserting JS into the page
You get a full picture of traffic without relying on inserting JS into the page
If you're concerned about injecting third-party scripts into your website, you can use FullAnalytic's Zero Trust solution [1] to minimize risks.
[0] https://www.cloudflare.com/en-gb/web-analytics/
[1] https://www.getfullanalytics.com/docs/enterprise/zero-trust