TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Counting website visitors is hard

32 pointsby bobbiechenover 3 years ago

5 comments

legitsterover 3 years ago
I work in website analytics. Cloudflare&#x27;s numbers are laughably bad. Really, they are not even tracking visits, they are tracking times the link is requested. So everytime the HN page gets updated, that link is getting clicked by the dozen or so bots that trawl <i>that</i> page.<p>It&#x27;s a remarkably bad way to do tracking. At the very least, a page view shouldn&#x27;t be tracked until the page is finished loading for the user. Otherwise you are collecting garbage data.<p>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.
评论 #29659723 未加载
评论 #29669344 未加载
technotarekover 3 years ago
The advice I give more and more to my clients is to stop focusing on absolute numbers. Instead, pick a decent analytics package and use it to monitor changes over time. Focus on the relative, not the absolute. (You still need to be careful to make sure your changes over time aren’t because of an increase&#x2F;decrease in bots.)<p>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&#x2F;operation specific conversion metrics.
评论 #29669634 未加载
soheilproover 3 years ago
Ask HN: How do you analyze your web server logs?<p>ELK is too heavy and GoAccess is too simple and I haven&#x27;t found anything useful in between.
评论 #29669967 未加载
评论 #29669969 未加载
评论 #29671420 未加载
评论 #29669492 未加载
geuisover 3 years ago
&gt; It&#x27;s likely lower on mobile, where Firefox is the only major browser that has any sort of adblocker integration (that I know of).<p>Note to author, iOS Safari has adblockers available via the App Store. I believe the same is true for whatever browser(s) Android uses.
评论 #29670634 未加载
karmanyaahmover 3 years ago
I use goatcounter, self hosting the script and proxying the metrics endpoint through my website&#x27;s server. This way there are no 3rd party assets to block. Also, there&#x27;s a noscript image tag in case js is disabled that just lets me know how many times the page was accessed. The script prevents most bots, but the noscript probably causes a bunch of bots to count.<p><a href="https:&#x2F;&#x2F;kar.goatcounter.com" rel="nofollow">https:&#x2F;&#x2F;kar.goatcounter.com</a>