Counting website visitors is hard
bobbiechen.com
bobbiechen.com
It's a remarkably bad way to do tracking. At the very least, a page view shouldn't be tracked until the page is finished loading for the user. Otherwise you are collecting garbage data.
But fwiw, the specific number of page views is never that important in the grand scheme. You should really be looking at trends, and so long as you pick a number that is consistently measured as your baseline, you can leave well enough alone.
Very true. I do think metrics are always a balance between precision and ease of collection, and counting IP addresses is definitely towards the ease of collection side. Regarding the bots crawling HN submissions, that would be backed up by an even higher rate of Cloudflare:Squarespace visitors for this submission (about 10:1 vs about 8:1).
>You should really be looking at trends, and so long as you pick a number that is consistently measured as your baseline, you can leave well enough alone.
Thanks for the perspective here - a kind reader sent me a similar message via email as well! The nice thing is that I don't have particular goals for my personal blog, so these analytics numbers feel more like interesting trivia than some OKR metric that I need to increase somehow.
Isn't this a little more client-driven than Cloudflare would have visibility to, unless we narrow "page load" down to something like "probably read all of the input stream"?
If you owned a store at a mall, there are many decent thresholds for constituting foot traffic. But you should probably at least count people who step into the store and not just people who stop and look at it.
Similarly, focus on a few core metrics and don’t go down the rabbit hole that something like GoogleAnalytics tends to compel. Usually those metrics are a few basics (uniques) plus a small number of domain/operation specific conversion metrics.
At Appsmith, we use Plausible, which is laughably simple (and open source too).
ELK is too heavy and GoAccess is too simple and I haven't found anything useful in between.
- Plausible: https://plausible.io/
- umami: https://umami.is/
- Fathom: https://usefathom.com/
Eventually these new-gen solutions all look and work the same now so it's mostly about the UI you prefer. Can't do magic without cookies and stuff.
FWIW I'm trialing out using Grafana's Loki for this.
Note to author, iOS Safari has adblockers available via the App Store. I believe the same is true for whatever browser(s) Android uses.