How to Filter Bot Traffic from Your Website Analytics

Analytics that count every request skew the decisions you make from them. Industry reports such as Imperva's Bad Bot Report estimate that around half of all internet traffic is now automated: search crawlers, scrapers, uptime monitors and security scanners. If your tracking counts those visits as people, your numbers are wrong.

This guide explains how bot traffic gets into your analytics and three ways to keep it out.

The problem with raw website hits

Many tracking tools record a visit whenever a page is requested. That creates problems:

3 ways to remove bot traffic from your data

1. Block or filter known bots by user-agent

Configure your web server (Apache or Nginx) or your analytics tool to reject requests whose user-agent matches common automation tools, such as python-requests, Go-http-client or HeadlessChrome. This stops simple scripts. Take care not to block search engine crawlers such as Googlebot at the server, because you want them to index your site; exclude them from your analytics instead. Sophisticated scrapers can fake their user-agent, so this should not be your only layer.

2. Add honeypots to your forms

A honeypot is a form field that is hidden from people with CSS but visible to simple bots. If the field comes back filled in, you know the submission was automated and can discard it. This protects sign-up and contact forms from spam. It does not stop bots from loading your pages, so it helps your lead data rather than your visit counts.

3. Score each visit on several signals

The most dependable approach is to judge every visit on several independent signals instead of one rule. Typical signals include:

No single signal proves a visit is a bot, but together they give a score you can act on.

How Ekameva Visitor Analytics does it

Ekameva Visitor Analytics uses the third approach. Each visit is given a bot score from signals like the ones above. Visits that score as likely bots are discarded before they reach your reports, so the visitor numbers in your emails and dashboard are real people. Create a free account to try it on your own site for a month.

Check your own numbers

To see how much bot traffic you have, compare the visit count in your current analytics with the requests in your server logs for the same day. A large gap, or visits at odd hours from a single network, usually means automated traffic.

Start your 1-month free Pro trial