Skip links
Bot traffic: find it and remove it from your WordPress stats

Bot Traffic: How to Find It and Remove It From Your WordPress Stats

Short answer: bot traffic is visits made by robots (crawlers, AI tools, scripts) instead of people. To find yours, open Opti-Behavior > Traffic, read the Bot Traffic and Spam Traffic cards, then switch Excluding Spam on and off and compare the totals. On optiuser.com, over the last 7 days (Traffic screen, spam excluded, read on 30 November 2026 at 06:50 UTC), we counted 185 sessions from 181 visitors, and 3,005 visits from robots. This guide shows how to read that screen card by card on your own site.

Why bot traffic skews your decisions

A robot does not buy, sign up or fill in a form. When part of your visits comes from robots, every ratio built on visits gets worse without any change on your pages. The typical signs are easy to recognise:

  • Visits go up but orders, leads or form submissions stay flat.
  • The conversion rate falls for no reason you can find on the page.
  • The bounce rate jumps, or average session time drops to a few seconds.
  • One page, often one that nobody links to, suddenly collects a lot of visits.

The cost is real: you may rewrite a page that was fine, switch off a campaign that worked, or trust a traffic curve that is mostly machines. Measuring the share of robots takes a few minutes and needs no external tool.

Visits that arrive through tagged ad links are grouped in a “Paid Ads” channel (Free). With Pro, Smart Ads adds the spend from your Meta Ads, Google Ads or TikTok Ads account and the cost per conversion.

One point first: not every robot is a problem. Search engine crawlers are how you get found, and some AI tools can send you readers. The goal is not to block everything. It is to know which numbers describe people and which describe machines.

A robot visit is not a session

The Traffic screen uses two different units, and mixing them gives wrong conclusions.

  • Sessions and visitors are people (or browser-like visitors) whose browser ran the tracking script. They are what Traffic Overview, Smart Insights and your conversion rate are built on.
  • Bot Traffic visits are requests made by robots that identify themselves. In the plugin code, the crawler log stores one row per hit and keeps it for 30 days. A visit in the Bot Traffic card is therefore one request, not one person, and not one session.

So 3,005 robot visits next to 185 sessions does not mean “94% of my visitors are robots”. It means identified crawlers made about 3,000 requests in the period while 185 sessions of people were recorded. The two figures answer different questions: how much machines read your site, and how much people use it.

Step 1: read Traffic Classification

In WordPress, open Opti-Behavior > Traffic and pick a period (7 days is a good start). The Traffic Classification card splits your sessions into human traffic and traffic the plugin considers automated or spam. Note three numbers: total sessions, the human share, and the flagged share.

Opti-Behavior Traffic Classification card: human traffic and automated visits counted apart
Look at the split between human traffic and flagged traffic. Example screen: the figures shown are not those of the 7 days quoted in the text.

Do not judge on one day. A single bad day can come from one crawler pass. Read a full week, then compare with the previous week.

Step 2: read the Bot Traffic card

The Bot Traffic card lists the robots that announce themselves, with their number of visits, their share and when they were last seen. This is where you learn who is reading your site. On optiuser.com, over the same 7 days, the top six were:

  • Meta-webindexer: 642 visits
  • YandexBot: 583
  • Facebook Bot: 564
  • Bingbot: 399
  • ClaudeBot: 175
  • Googlebot: 141
Bot Traffic card listing the bots that visit the site, with their visits and share
Look at the first rows: the robots with the most visits, and their share. Example screen: the figures shown are not those of the 7 days quoted in the text.

Which robots are useful, which are not

A simple way to sort them, with the question to ask for each:

  • Search engine crawlers (Googlebot, Bingbot, YandexBot). Useful: they index your pages. Ask whether the audience you want uses that engine. A big YandexBot count on a site with no Russian-speaking audience is a fair reason to look at your robots.txt rules.
  • Social link fetchers (Facebook Bot, Meta-webindexer). They fetch a page when a link is shared, or to index content. They are harmless for people but can be numerous. Useful if you rely on social sharing, otherwise just noise.
  • AI crawlers (ClaudeBot and others). They read your content so an AI product can use it. Whether that is good depends on your choice: being quoted by AI answers can bring readers, but you decide what you allow.
  • Unknown or generic scripts. No benefit. These are the ones to watch in your server logs.

Also note the “last seen” date. A robot seen once a month is irrelevant. A robot seen every hour is worth a decision.

Step 3: see which AIs read your site

The Traffic screen has an AI row with two cards. “Which AIs read your site” groups the AI robots by company. “What AI reads and who it sends” lists the pages the AI robots read most, with the total number of pages read. On optiuser.com, over the same 7 days, we counted 1,044 AI visits: Meta 63.5%, Anthropic 17%, OpenAI 15.5%.

AI insights on the Traffic screen: which AI crawlers read the site and which pages they read
Look at the company split and at the pages read most. Example screen: the figures shown are not those of the 7 days quoted in the text.

Two things to take from it. First, one company can account for most AI visits, so a single robots.txt line can change the picture. Second, the pages AI robots read are usually your most explanatory ones. If those pages are weak or outdated, that is what AI tools will repeat. The AI counters are kept as daily totals per robot and per page, with no IP address, so you can look back further than the 30-day crawler log.

Step 4: compare with and without spam

Spam is not the same as an identified robot. Spam sessions are visitors that look automated: almost no engagement, no scroll, no click, often one page only, or referrers known as spam. The plugin flags them in the Spam Traffic card. On optiuser.com, over the 7 days: 12 flagged sessions, 6% of the sessions.

The button labelled Excluding Spam on the screen (it shows “Including Spam” when the filter is off) switches the filter. Write down your totals with it on, then off. The gap is the number of sessions flagged as spam.

Excluding Spam button and Spam Traffic card with the number of flagged sessions
Look at the Excluding Spam button and the number of flagged sessions. Example screen: the figures shown are not those of the 7 days quoted in the text.

What spam changes in your numbers

Spam sessions are mostly short, single-page and without action. Keeping them in your totals has predictable effects:

  • Conversion rate: the denominator grows while the goals do not, so the rate looks lower than it is.
  • Bounce rate: a one-page, no-action session is a bounce by definition, so the rate looks higher.
  • Average session time and scroll depth: both fall because of near-zero sessions.
  • Smart Insights: findings are built from your visits. When spam is excluded, they describe real visitors only, so a page flagged as weak is weak for people.

With 6% flagged, as on our site this week, the effect is modest. On a site where a third of sessions are flagged, it can change your whole reading. That is why the first number to check is the flagged share.

A quick illustration, with round figures that are not from our site: 1,000 sessions and 20 orders give a conversion rate of 2%. If 300 of those sessions are flagged as spam, the 20 orders came from 700 real sessions, and the real rate is about 2.9%. The page did not change; only the denominator did.

Step 5: exclude spam from your stats

Keep Excluding Spam on so every screen, Smart Insights included, counts real visitors only. It is a display filter: it hides the sessions, it does not delete them, and you can switch it off to see them again. If you also want to remove the data of those sessions, the Clean Bot/Spam Traffic button deletes them with their events, recordings and heatmap files. It cannot be undone, so check the period and the numbers before you click.

Also exclude your own visits: in Opti-Behavior > Settings, uncheck Track Admin Users and add your IP address to Block Tracking for IPs. Otherwise your tests count as visitors.

Find bot traffic without any plugin

The method works with any site, even without our plugin:

  1. Read your server access logs. Ask your host where they are. Look at the user agent of the requests and count them by name. Crawlers usually announce themselves (Googlebot, bingbot, ClaudeBot and so on).
  2. Check the claim. A user agent can be faked. Search engines publish how to verify their crawlers (reverse DNS or published IP ranges). An unverified “Googlebot” that hits a login page 500 times is not Google.
  3. Open your robots.txt (yourdomain.com/robots.txt) and read what you allow. It is a request to well-behaved robots, not a lock: bad robots ignore it.
  4. Look at your analytics for the signs: one-page sessions with zero seconds, a spike from one country at night, a landing page nobody links to.
  5. Decide per robot: allow, limit in robots.txt, or block at the server or firewall level if it causes load.

The plugin only makes steps 1 and 4 quicker: the crawler log and the classification are already sorted on the Traffic screen.

Example: limit one crawler in robots.txt

Say the Bot Traffic card shows a crawler you do not want, and your audience does not use the service behind it. A robots.txt rule for that crawler alone looks like this:

User-agent: ExampleBot
Disallow: /

Replace ExampleBot with the exact name the crawler gives in its own documentation, which is not always the label shown in the card. Keep the rest of the file unchanged, so search engines still read your pages. To keep robots away from one area only, such as internal search results, disallow that path instead of the whole site:

User-agent: *
Disallow: /?s=

Three checks before you save. The file must stay at the root of your domain. One wrong line, such as Disallow: / under User-agent: *, asks every search engine to stop reading your whole site. Some SEO plugins generate robots.txt for you, so edit it where it is generated. Crawlers read robots.txt again from time to time, so the change is not instant. Then watch the Bot Traffic card over the following days: a crawler that respects the rule drops down the list, while one that keeps coming has to be blocked at the server or firewall level.

Our case: optiuser.com

Over the last 7 days (Traffic screen, spam excluded, read on 30 November 2026 at 06:50 UTC), optiuser.com recorded 185 sessions and 181 visitors. In the same period, Bot Traffic counted 3,005 robot visits, led by Meta-webindexer, YandexBot and Facebook Bot, and the AI row counted 1,044 visits from AI robots. Spam Traffic flagged 12 sessions, 6% of the total.

What we concluded: the 3,005 robot visits do not hurt the human figures, since they are counted apart. The 12 spam sessions are small enough not to change our reading. What we do not need is to treat the robot count as audience: it says how much machines read us, not how many people do. We keep spam excluded for every page analysis.

What to check afterwards

  • Repeat the comparison in a week: did the flagged share change?
  • Re-read your conversion rate and bounce rate with spam excluded.
  • Look at the top robot of the Bot Traffic card and decide: keep, limit or block.
  • Check which pages AI robots read most, and update them if they are outdated.
  • Keep spam excluded for every page analysis and every Smart Insights reading.

A 10-minute weekly routine

  1. Open Traffic on the last 7 days, with Excluding Spam on. Write down sessions and visitors.
  2. Switch the filter off, write down the totals again, and note the gap.
  3. Open the Bot Traffic card: note the top three robots and their visits.
  4. Open the AI row: note the company with the largest share and the page read most.
  5. Compare with last week’s notes. Act only on what moved: a new robot at the top, a flagged share that doubled, a page that AI robots suddenly read a lot.

A shared sheet with one row per week is enough. After a month you know your normal level, and a spike stands out at once instead of being read as new visitors.

More on measuring visitors: website visitor tracking. Opti-Behavior runs inside WordPress and keeps data on your own server: see the real-time dashboard.

FAQ

Is a bot always bad?

No. Search engine crawlers are useful, but they are not customers and should not count in visitor statistics.

Why is my bot count different from my server logs?

The Bot Traffic card counts robots that identify themselves. Server logs record every request the server receives, including scripts that pretend to be a browser and never give a robot name. Use the card to see who reads you, and the logs when you need every single request.

How often should I check bot traffic?

Once a week is enough for most sites. Check sooner after a sudden jump in visits, a drop in conversion rate, or a server load alert from your host.

Does Excluding Spam delete data?

No, it is a display filter. Only Clean Bot/Spam Traffic deletes sessions.

Are robot visits and sessions comparable?

No. A Bot Traffic visit is one request by an identified robot; a session is a person’s visit. Do not add them or compute a share between them.

Does robots.txt stop bad bots?

No. It only guides robots that choose to follow it. Block abusive ones at server or firewall level.

The Opti-Behavior Team

Leave a comment

Explore
Drag