Free SEO audit for new clients — claim yours
Home/Blog/Analytics/Bot Traffic in Analytics: How to Spot and Filter…
Analytics

Bot Traffic in Analytics: How to Spot and Filter It

Bot Traffic in Analytics: How to Spot and Filter It
Table of contents
  1. Good bots, bad bots and the ones that run JavaScript
  2. What GA4's automatic bot exclusion catches, and what slips through
  3. Seven fingerprints of bot sessions in GA4 reports
  4. A diagnostic exploration you can build in GA4
  5. Filtering options compared: which tool for which problem
  6. Stopping bots at the form and checkout
  7. Worked example: a lead-gen site whose conversion rate halved
  8. Reporting on clean data without rewriting history
  9. Questions about bot traffic in GA4
    1. Does GA4 filter bot traffic automatically?
    2. Can I remove bot traffic from historical GA4 data?
    3. Why do I see sessions with strange hostnames?
    4. Will blocking bots at the firewall hurt my SEO?
    5. Is a 0-second engagement time always a bot?
  10. A one-afternoon bot audit for your GA4 property
  11. Further reading on bot traffic in GA4
  12. Sources for this bot traffic analytics guide

Sessions jump 40% overnight. Engagement rate collapses. Conversion rate halves, or, just as confusingly, form submissions spike with names like "asdfgh" and phone numbers that don't exist. Before anyone celebrates or panics, someone has to ask the boring question: are these people at all?

Often they aren't. Imperva's 2025 Bad Bot Report, as summarised by Malwarebytes, found that automated traffic made up about half of all internet traffic in 2024, with bad bots alone accounting for 37%, up from 32% the year before. Most of that never reaches your analytics, but the share that does can quietly distort every rate-based metric you report: engagement, conversion, cost per lead and A/B test results.

This guide explains which kinds of bots reach GA4, what Google filters automatically, the fingerprints that give bot sessions away, how to build a diagnostic exploration, which filtering options to use for which problem, and how to stop bots at your forms and checkout. It ends with a reporting approach that keeps historical comparisons honest.

Good bots, bad bots and the ones that run JavaScript

GA4 runs as JavaScript in the browser. That single fact explains most of what you see. A bot that only requests your HTML (like most search engine crawlers) never executes the GA4 tag and never appears in your reports. A bot that runs a real browser engine (a "headless browser") executes everything, including your tag, and looks much more like a person.

Bot typeExamplesUsually reaches GA4?Main harm
Search engine crawlersGooglebot, BingbotRarely; known bots are excludedNone (you want them)
AI search and training crawlersOAI-SearchBot, GPTBot, other AI agentsMostly not, but agent-style browsers canServer load; occasional analytics noise
SEO and monitoring toolsUptime checkers, site audit crawlersSometimes, if configured to render JavaScriptInflated pageviews on specific URLs
ScrapersPrice and content scrapersSometimes (headless browsers)Content theft, distorted engagement
Form and comment spam botsAutomated form fillersOftenFake leads, inflated conversions
Click fraud and ad botsBots clicking paid adsOften, arriving with paid UTMs or click IDsWasted ad spend, polluted campaign data
Measurement protocol spamHits sent directly to your measurement IDYes, without visiting your site at allFake sessions, fake hostnames and referrers
Credential stuffing and carding botsAutomated logins, card testing at checkoutOftenSecurity risk, fraud, distorted checkout data

AI agents are a newer complication. Some browse on a user's behalf in a real browser, which can trigger your tag. Our guide on detecting AI agent visits covers how to tell those apart, and OpenAI publishes the user agents and IP ranges of its crawlers, which helps you verify them at the server.

What GA4's automatic bot exclusion catches, and what slips through

GA4 automatically excludes traffic from known bots and spiders. Google's help page says these are identified using a combination of Google research and the International Spiders and Bots List maintained by the IAB. There's no setting to configure, and also no visibility:

“At this time, you cannot disable known bot traffic exclusion or see how much known bot traffic was excluded.”

— Google Analytics Help, [GA4] Known bot-traffic exclusion

The weakness is in the word "known". A list-based approach catches bots that identify themselves honestly or have been catalogued. It doesn't catch:

  • Headless browsers that present a normal Chrome user agent.
  • Bots routed through residential proxies, so their IP addresses look like ordinary home connections.
  • Measurement protocol spam, which never visits your site.
  • Your own tools: uptime monitors, QA scripts and staging environments sending data to the live property.
  • New bots that haven't been catalogued yet.

So GA4 removes the polite bots and leaves you to deal with the rest.

Seven fingerprints of bot sessions in GA4 reports

No single signal proves a session is a bot. Clusters of signals do. Look for these, especially in combination and especially when they appear suddenly.

  1. Sudden spikes in sessions or users with no matching campaign, press mention or seasonal reason.
  2. Zero or near-zero engagement: average engagement time close to 0 seconds and an engagement rate far below your normal for that channel.
  3. One page per session, always the same page, often the homepage or a single landing page.
  4. Odd geography: a burst of traffic from a city or country you don't serve, or a concentration in data-centre locations.
  5. Uniform technology: the same browser version, screen resolution and operating system across hundreds of sessions. Real audiences are messy.
  6. Strange sources: referral domains you've never heard of, sessions with (not set) source and medium landing in Unassigned, or a hostname that isn't yours.
  7. Impossible conversion patterns: form submissions with gibberish data, many conversions from one city, or a conversion rate that jumps while revenue doesn't.

Semrush's guide to bot traffic lists a similar set of warning signs, including spikes, single-page visits, zero engagement time, unusual conversion rates and traffic from unexpected locations. The table below shows where to check each one and what the contrast usually looks like.

SignalWhere to check in GA4Typical human patternTypical bot pattern
Engagement timeTraffic acquisition report, by sourceVaries widely by page and channelClustered at 0–1 seconds
Pages per sessionExploration: Views / Sessions by sourceMix of single and multi-page sessionsExactly one view, same landing page
LocationDemographic details, CityMatches your marketsBursts from one unexpected city or country
TechnologyTech details: browser, OS version, screen resolutionSpread across many combinationsOne combination dominates a spike
HostnameExploration with Hostname dimensionYour domains onlyUnknown domains or (not set)
TimingExploration with Date and HourFollows your audience's daily rhythmFlat around the clock, or sharp bursts

Unassigned traffic deserves its own investigation, because bots aren't the only cause. Our set guide to why GA4 puts traffic in Unassigned covers the tagging reasons, and our guide to engagement rate versus bounce rate explains what "normal" engagement looks like.

A diagnostic exploration you can build in GA4

Standard reports aggregate too much to show bot fingerprints clearly. Build a free-form exploration instead. Our guide to GA4 explorations covers the interface if you're new to it.

  1. Set the date range to cover the suspicious period plus an equal "normal" period before it.
  2. Add dimensions: Date, Hostname, Session source / medium, City, Browser, Operating system with version, Screen resolution, Landing page.
  3. Add metrics: Sessions, Engaged sessions, Average engagement time per session, Key events, Event count.
  4. Start with Hostname in rows. Anything other than your own domains (and legitimate tools like translation proxies) is a red flag, often measurement protocol spam or a copied tag.
  5. Swap in Date in rows and Session source / medium in columns to see which source drove the spike.
  6. Drill into the suspicious source with City, Browser and Screen resolution. If 90% of sessions share one combination, you've found your bot.
  7. Save the defining combination as a segment (for example, City = X and Screen resolution = Y and engagement time = 0) so you can exclude it in analysis.

If the patterns are subtle, the raw event data in BigQuery lets you look at timing between events, which bots often get wrong. Our set guide on the GA4 BigQuery export shows how to set it up.

Filtering options compared: which tool for which problem

GA4 offers several ways to keep bot data out of reports, and they work at different levels. Choosing the wrong one either leaves the problem in place or removes good data permanently.

OptionBest forRetroactive?Reversible?Watch out for
Segments and comparisons in explorationsAnalysing with and without suspected botsYesYesOnly applies to explorations, not standard reports
Web hostname traffic filterSpam with fake hostnames, copied tagsNoCan be deactivated, but excluded data is goneValidate in Testing state first
Internal traffic filter (IP-based)Your office, agencies and monitoring tools with fixed IPsNoAs aboveBots rotate IPs, so this rarely stops them
Developer traffic filterDebug-mode traffic from your teamNoAs aboveDoesn't affect bots
List unwanted referralsSpam referrer domains appearing as sourcesNoYesRe-attributes the session rather than removing it
Server, CDN or firewall rulesStopping bots before they load the pageNoYesDon't block verified search crawlers
BigQuery cleaningRebuilding clean historical reportsYesYesRequires SQL and the export set up in advance

Two details from Google's documentation matter here. First, data filters are permanent: Google's data filters page states that once you apply a data filter, the effect on the data is permanent, and that filters don't affect historical data. Second, the hostname filter has a built-in safety step: Google recommends creating it in Testing state, waiting 24 to 36 hours, and checking in an exploration that only unwanted hostnames are flagged before activating it.

“Traffic filters only apply to new data and won't change previously collected data in your reports.”

— Google Analytics Help, Filter web hostname traffic in Google Analytics

The unwanted referrals list (up to 50 per data stream, in the tag settings of your web stream) is often misunderstood. It doesn't delete sessions; it tells GA4 to ignore the referrer, so the traffic will be attributed elsewhere, often to Direct. That's right for payment gateways and wrong for spam bots, which you'd rather exclude or segment out. Our guides to cleaning referral traffic in GA4 and excluding internal traffic cover those two settings in depth.

Stopping bots at the form and checkout

Filtering cleans your reports. It doesn't stop fake leads reaching your CRM or card-testing bots hitting your payment processor. For those, you need protection on the form or endpoint itself. Layer several defences rather than relying on one.

  • A challenge widget such as Google reCAPTCHA or Cloudflare Turnstile. Turnstile offers managed, non-interactive and invisible modes; Cloudflare describes managed mode as choosing between a non-interactive check and a checkbox based on visitor risk. Whichever you use, the token must be validated on your server, not just in the browser.
  • A honeypot field: a field hidden from humans with CSS that bots fill in. Reject any submission where it has a value.
  • Timing checks: reject forms submitted within a second or two of page load.
  • Rate limiting by IP and by email address on form and login endpoints.
  • Server-side validation of email format, phone format and disposable email domains.
  • Fire key events only on confirmed success, ideally after server-side validation, not on button click. Our guide to tracking form submissions in GA4 explains how.

“Managed mode is fully managed by Cloudflare.”

— Cloudflare, Turnstile widgets

For checkout, card-testing attacks show up as many small failed transactions. Payment providers have their own fraud tools; turn them on, and make sure your GA4 purchase event fires only on a confirmed order, never on a payment attempt.

Worked example: a lead-gen site whose conversion rate halved

Hypothetical example with illustrative figures.

A home services company normally sees about 12,000 sessions a month and 360 form submissions, a 3% conversion rate. In March, sessions jump to 19,500 but submissions only reach 380, so the reported rate falls to about 1.9%. The PPC manager is asked why paid search "stopped working".

The diagnostic exploration shows 7,100 extra sessions from Direct and Unassigned, 92% of them on one screen resolution and one Chrome version, average engagement time under one second, all landing on the homepage, mostly from two cities the company doesn't serve. A segment excluding that fingerprint brings March back to 12,400 sessions and 372 submissions: a 3.0% conversion rate. Paid search was fine.

A second issue appears in the form data: 45 of the 380 submissions contain gibberish. These came from real page loads, so filtering wouldn't remove them. The team adds Turnstile and a honeypot, moves the key event to fire on server-confirmed submissions, and rate-limits the endpoint at the CDN. April shows 0 gibberish leads. The team also annotates March in its reports so nobody compares against the inflated figures later.

Reporting on clean data without rewriting history

Because GA4's filters aren't retroactive, any period of bot traffic stays in your standard reports forever. A few habits keep reports honest:

  • Annotate bot episodes with dates and estimated volume, so year-on-year comparisons don't mislead.
  • Report from a cleaned view for affected periods: an exploration with your bot segment excluded, or a BigQuery table with flagged sessions removed.
  • Use conversion counts from your CRM or ecommerce platform as the source of truth for leads and revenue, and GA4 for behaviour and attribution.
  • Prefer engaged-session based rates (key events per engaged session) for trend reporting. They're less sensitive to zero-engagement bot bursts than raw session rates.
  • Re-check A/B tests run during a bot episode. Bots split unevenly between variants can create false winners; see our set guide on A/B test statistical significance.
  • Add a bot check to your regular audit. Our set guide's GA4 audit checklist includes hostname and source checks.

Small properties have one more wrinkle: removing bot sessions can push some reports under GA4's privacy thresholds. Our set guide on GA4 data thresholds explains why rows disappear.

Questions about bot traffic in GA4

Does GA4 filter bot traffic automatically?

Yes, for known bots identified by Google research and the IAB International Spiders and Bots List. You can't turn it off or see how much was excluded, and uncatalogued bots get through.

Can I remove bot traffic from historical GA4 data?

Not from standard reports. Use segments and comparisons in explorations, or clean the BigQuery export.

Why do I see sessions with strange hostnames?

Measurement protocol spam and copied tags send hits with hostnames that aren't yours. Validate and activate a web hostname traffic filter.

Will blocking bots at the firewall hurt my SEO?

Only if you block good bots. Allow verified search engine crawlers and decide deliberately about AI crawlers.

Is a 0-second engagement time always a bot?

No. Real users can bounce instantly. Look for clusters of several signals together.

A one-afternoon bot audit for your GA4 property

Build the diagnostic exploration, check hostnames, scan the last 90 days for spikes, and save a bot segment for any fingerprint you find. Then test your main forms by submitting junk yourself: if it reaches your inbox and fires a key event, add a challenge and a honeypot this week. Finally, add a line to your monthly report noting any bot episodes.

If bot traffic is distorting your paid media or conversion data and you'd like help cleaning it up, our conversion optimization team audits tracking as part of every engagement. Get a quote for a GA4 data quality review.

Further reading on bot traffic in GA4

Sources for this bot traffic analytics guide

  1. Google Analytics Help: [GA4] Known bot-traffic exclusion
  2. Google Analytics Help: Filter web hostname traffic
  3. Google Analytics Help: Data filters
  4. Google Analytics Help: Identify unwanted referrals
  5. Malwarebytes: Half of all internet traffic now automated (Imperva 2025 Bad Bot Report, April 2025)
  6. Cloudflare: Turnstile widgets
  7. Semrush: Bot Traffic: What It Is and How to Stop It
  8. OpenAI: Overview of OpenAI Crawlers
Rohit Choudhary
Written byRohit ChoudharyCo-Founder, My SEO Experts

Rohit Choudhary is the co-founder of My SEO Experts and has more than 14 years of hands-on experience in SEO, paid advertising and digital marketing. Since starting out in 2011 he has helped hundreds of businesses grow through practical, data-driven search strategies, and he also serves as a consulting Digital Marketing Director for several US-based companies.

Keep reading

Related articles

How to Choose the Primary Keyword for an Existing Page
Analytics

How to Choose the Primary Keyword for an Existing Page

Old pages drift into ranking for searches nobody planned. Here is how to use Search Console data to pick one clear primary keyword and re-center the page without losing what already works.

Ready to grow your business online?

Get a free, no-obligation proposal tailored to your goals and budget.

CallFree Quote