Dev.to WebDev 🛠 Dev 👁 0 📖 3 min read

Your launch page says 300 views. Probably about 20 were people.

On one Sunday our launch platform counted 316 views across its product pages. Our analytics, for the same day, saw 21 sessions from real people. That's not a rounding error. About 15 of every 16 "views" were bots: uptim

On one Sunday our launch platform counted 316 views across its product pages. Our analytics, for the same day, saw 21 sessions from real people.

That's not a rounding error. About 15 of every 16 "views" were bots: uptime checkers, SEO crawlers, link-preview fetchers, AI crawlers, and scripts that load pages without a browser. We had been showing makers those numbers on their launch pages, so we changed how we count. Here's what we learned, because if you're judging a launch by the view counter on a directory, you're probably judging it by bots too.

Why server-side view counts are so inflated

Most small sites count a view when the server renders a page. That's easy and it feels accurate, but every request counts:

  • Crawlers. Search engines, SEO tools and the newer AI crawlers fetch the same pages again and again, and many don't say they're bots.
  • Link previews. Every time someone pastes your URL into a chat app or a social post, a bot fetches it to build the preview card.
  • Monitoring and scrapers. Directories get scraped constantly, often by tools that pretend to be a normal browser.
  • Prefetching. Browsers and some apps load pages a user never actually looks at.

Filtering by user agent catches some of this, but the noisier bots look like Chrome on Windows.

What we count now

A view now counts only when:

  1. The page was actually visible in a browser tab for 3 seconds, measured by the page itself, and
  2. The browser isn't reporting itself as automated (headless or driven by a script), and
  3. It isn't the maker or an admin looking at their own listing.

The page sends a small beacon after those 3 seconds. A crawler that fetches the HTML never runs it. Here's the core of it:

const viewed = document.querySelector('[data-view]')
const automated = navigator.webdriver || /headless/i.test(navigator.userAgent)
if (viewed && !automated) {
  let shown = 0, last = document.visibilityState === 'visible' ? Date.now() : 0
  const tick = setInterval(() => {
    if (document.visibilityState !== 'visible') return (last = 0)
    const now = Date.now()
    if (last) shown += Math.min(now - last, 1000) // a sleeping laptop doesn't count
    last = now
    if (shown >= 3000) {
      clearInterval(tick)
      navigator.sendBeacon('/view/' + viewed.dataset.view)
    }
  }, 500)
}

Capping each tick at one second matters: timers freeze while a laptop sleeps, and without the cap the first tick after waking would add the whole gap at once.

The numbers dropped hard the day we switched. That's the point.

What this means for your launch

Don't compare launch sites by their view counters. A site with a big number may just have more bots. If a directory shows you views, ask how it counts them, or ignore them.

Measure on your side. The only numbers you control are your own analytics. Before launch day:

  • Tag every link you post with UTM parameters (?utm_source=sitename&utm_medium=referral&utm_campaign=launch), so you can see which site actually sent people.
  • Look at engaged sessions, not page views. A visit that scrolls, stays 10 seconds or clicks something is worth far more than a hit.
  • Set up a "likely bots" segment in your analytics: very old screen sizes like 800x600 and a few data-center cities give most of them away. Subtract it before you celebrate.

Count the things bots can't do. Sign-ups, replies, reviews, votes and clicks through to your site are much harder to fake than views. On a good launch week those move; on a bot-heavy one only the view counter does.

Expect smaller, truer numbers. Twenty real visitors who read your page are more useful than three hundred hits, because some of them will become users, and you can talk to them.

AI-assisted.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.