Free, independent guides since 2010

Analytics & data

Bot traffic and spam in your analytics

How to recognise and filter bot traffic and referral spam in website analytics: signs of bots, built-in filters, AI crawlers, form spam bots and keeping your data clean.

<guide section="Analytics & data" type="article" read="1 min"/>

A sudden spike in visitors from an unexpected country, all leaving after zero seconds, is rarely good news. Bots and spam pollute analytics data and lead to wrong decisions. Fortunately they are usually easy to recognise.

Signs of bot traffic

SignLikely cause
Spike of visits to one page, no engagementScraper or monitoring bot
Unknown referral domains you never linked withReferral spam
Unusual screen resolution or browser version for all visitsAutomated browser
Traffic from one data centre city at odd hoursBots running in the cloud
Form submissions with nonsenseSpam bots (see form spam)

Filtering

  • Enable the built-in bot filtering of your analytics tool (GA4 does this automatically; Matomo has settings).
  • Exclude your own visits and your developers’ IP addresses.
  • Create segments that exclude zero-engagement sessions when analysing behaviour.
  • Do not click on spam referrer domains – some lead to malicious sites.

Bots in your logs

Server logs show all bots, including search engines and AI crawlers. Use them to check crawl activity and identify abusive bots (see server log analysis). Block harmful bots at the CDN or firewall level.

Frequently asked questions

Do AI crawlers show up in my analytics?

Usually not in JavaScript-based analytics, because most crawlers do not run scripts. They do appear in server logs.

Can bot traffic hurt my site?

Heavy bot traffic can slow your server and inflate bandwidth costs. Malicious bots look for vulnerabilities. Use rate limiting or a firewall for those.