News for hackers. Stuff that matters.
Re:Stop donating your customers' data to Google Analytics by awb on Wednesday January 22, 2020 @10:17AM (#22118204)
Agreed if you're already self-hosting. However, I don't know of a JS-free solution if you're hosting on a 3rd party like GitHub pages or Netlify for example.

(Netlify does sell access to log data but it looks expensive for most hobby / personal sites)

Re:Stop donating your customers' data to Google Analytics by Carpetsmoker on Wednesday January 22, 2020 @12:20PM (#22119624)
You can probably use the "tracking pixel" method with at least some analytics tools. This is a very old which probably predates even the invention of JavaScript.

Basically, if it accepts a GET with query parameters, it should work.

Re:Stop donating your customers' data to Google Analytics by awb on Wednesday January 22, 2020 @01:55PM (#22120719)
Right, but don't you still need to own a server in order to log these GET requests?
Re:Stop donating your customers' data to Google Analytics by Carpetsmoker on Wednesday January 22, 2020 @02:33PM (#22121136)
You can do it with one of the hosted services. I don't know which ones support it exactly, but GoatCounter does (although it's kind of an undocumented feature until I merge PR #122).
Re:Stop donating your customers' data to Google Analytics by awb on Wednesday January 22, 2020 @03:11PM (#22121496)
Cool, I saw GoatCounter on HN a few days ago. I've looked into ways to get a user count without JS and without paying for hosting, but no luck yet. If you find out what free services support it I'd love to know.
Re:Stop donating your customers' data to Google Analytics by Carpetsmoker on Wednesday January 22, 2020 @11:58PM (#22124985)
Well, GoatCounter does :-)

But any service that sends something like "GET example.com/collect?path=/foo" can be loaded with an <img>. It's perhaps not an explicitly documented feature, but it will still work :-)

Re:Stop donating your customers' data to Google Analytics by awb on Thursday January 23, 2020 @03:28PM (#22131588)
Perfect! I'll give it a go :)