How to build a free, privacy-focused alternative to Google Analytics ↦
Google Analytics runs on over 56% of all websites. It’s the backbone of ad-tech across the web. Unfortunately, for site owners like me who just want to learn how people are using their website—while respecting their privacy—there simply aren’t any alternatives that meet all my requirements. So in two days, after a couple dead-ends, I built my own using React, AWS Lambda, and a spreadsheet. This is how.
It’s somewhat ironic that the datastore for this project is Google Sheets. That aside, this is a well-done effort and one that I wouldn’t mind adapting for use around these parts.
Discussion
Sign in or Join to comment or subscribe
Lal
2019-03-22T18:29:29Z ago
Are you kidding me ? The right way is to do analytics on your nginx server with lua. Period.
Cody Peterson
Portland, Oregon
UI/UX Designer and Developer. Future private detective. I now have a dog.
2019-03-23T16:58:24Z ago
Very cool. Also, I’ve been meaning to try out Fathom, which bills itself as “a simpler and more privacy-focused alternative to Google Analytics”. It is built with Golang and Preact and can be self-hosted.
Jerod Santo
Bennington, Nebraska
Jerod co-hosts The Changelog, crashes JS Party & takes out the trash (his old code) once in awhile.
2019-03-23T19:02:27Z ago
Ooh Fathom looks very nice! 🤩
----
2019-03-24T13:25:21Z ago
What about Matomo?