"80% of my traffic is bots"
Telemetry-specific Javascript on the other hand is prevented from executing by many ad blockers, for good reasons.
On the other hand, JavaScript inline in the page is almost never blocked by users.
Ad blockers also often cut GA off.
1. Open devtools networking
2. Visit any site with analytics
3. See requests to https://www.google-analytics.com/j/collect?... (for GA), https://plausible.io/api/event (for Plausible) etc
EDIT: expanded this into a post https://jefftk.com/p/firefox-does-not-block-analytics-by-def...
Google is a Mozilla donor and I don't think they'd like it if the browser blocked one of their major services. Ublock Origin will block GA and GTM (Google Tag Manager) however.
Even among js analytics tools, there are differences. In a past job, the main question customers where asking, was "why there is not the same number of pageviews than GA?".
Everyone detect bots differently, blacklist different IP, js execution orders is different and some script are blocked by adblockers and some not
As for relevancy - GA can still be useful as it can give you more detailed information which you can't get without JS.
Detailed information about users who allow the site to execute JS, that is.
I'm not sure how useful such skewed information is.
I think you are massively overestimating the number of people outside the HN crowd that have NoScript or an equivalent turned on.
This isn't applicable to internal analytics i.e. using Google Measurement Protocol, Which is a good way to avoid the cookie-tracking mess altogether and to gain more control over the analytics.
[1] https://developers.google.com/analytics/devguides/collection...