BotFlamingoBeta
← Blog

Bot traffic in GA4: what the filter removes and what it leaves behind

A flamingo looks at a small bot through a magnifying glass.

Since the autumn of 2025, GA4 has been counting visitors from China and Singapore

On February 15, 2026, Semafor published a story by J.D. Capelouto about a wave of traffic nobody could explain. The visitors had IP addresses in Lanzhou, in China, and part of them arrived by way of Singapore. Over the previous three months, Lanzhou and Singapore together had accounted for a fifth of the traffic to US government websites.

Site owners had noticed months earlier. In Google’s own support community, a thread titled “Google Analytics 4 Bot Traffic Increase from China / Singapore on WordPress Sites” collected reports of GA4 properties suddenly full of these sessions. A Gold Product Expert described them as “inauthentic, non-human traffic” (as Stan Ventures reported on December 16, 2025).

Those visitors from China and Singapore sat in GA4, in the same reports used to judge campaigns, even though GA4 says it filters bots on its own.

GA4 removes known bots, and only those

Google’s help page on the subject says that GA4 automatically excludes traffic from known bots and spiders. That adjective, “known,” is narrower than it sounds. A bot counts as known when Google’s own research identifies it or the IAB’s International Spiders and Bots List includes it, which in practice means bots that declare what they are. A crawler that introduces itself as a search engine is removed, while a script that introduces itself as Chrome on Windows is, as far as GA4 can tell, a visitor.

The same page adds two details that make the filter hard to reason about. It can’t be switched off (“At this time, you cannot disable known bot traffic exclusion”), and GA4 doesn’t show how much traffic it has excluded. The visitors from China and Singapore, evidently, weren’t on the list.

The volume at stake is large, since according to Imperva’s Bad Bot Report 2026, published on April 29, 2026, bots made up more than 53% of web traffic in 2025, up from 51% the year before. Not all of them open pages and fire the tracking. In our reading, the ones that do and pass themselves off as ordinary browsers are exactly what a list of declared crawlers isn’t built to catch.

A bot session shows up as several signals at once

If GA4 won’t remove these sessions, the next question is how to find them in the reports. The posts in the Google community describe a consistent pattern. The traffic is classified as Direct, the sessions contain only session_start and page_view events, nobody scrolls or clicks, and the landing page is “(not set).”

Jeff Sauer at MeasureU (in an article updated on October 13, 2026) lists similar signals: a low engagement rate, engagement time at or near zero, a source of Direct or Unassigned, and spikes from cities where the business doesn’t sell. He’s careful to add that there is “not one single metric” that gives a bot away. A real customer can open a bookmarked page and leave after three seconds, so one short Direct session proves nothing, while the same combination repeated across many sessions is evidence.

The most precise numbers we know of come from a study by Shero and Littledata, published on October 20, 2026. They covered 687 Littledata stores and 100 Shero stores, from late July to October 4, 2026. Bot sessions were at least 5% of all sessions in 133 of the 687 stores (19%) and in 37 of the 100 (37%). The medians were 0.9% and 2.5%, so in most stores the problem is modest, while in one store in five in the first group, and more than one in three in the second, it isn’t. Every bot session they counted had already passed through GA4’s own filter.

Stores with at least 5% bot sessions in GA4 Stores with at least 5% bot sessions in GA4: Littledata 133 of 687 Littledata stores, 19%; Shero 37 of 100 stores, 37%. Source: Shero Commerce with Littledata, October 20, 2026. Stores with at least 5% bot sessions in GA4 Littledata 133 of 687 Littledata stores 19% Shero 37 of 100 stores 37% Source: Shero Commerce with Littledata, October 20, 2026
Source: Shero Commerce with Littledata, October 20, 2026. Data from late July to October 4, 2026; a vendor study.

The study also lists the signatures of the week ending October 4, as combinations of location, operating system and screen resolution: Singapore, Windows, 1280x1200; Singapore, Macintosh, 1366x1366; Ashburn, Virginia, Windows, 1800x1125. A resolution of 800x600 turned up as well. (Few people own a square screen, which is what 1366x1366 describes.) Between 95% and 96% of the bot sessions were recorded as Direct.

A free-form exploration in GA4, with city, operating system and screen resolution as rows and sessions and engagement rate as values, shows whether these combinations exist in a property. A segment or comparison built on the same conditions then lets the other reports be read without them. The study comes from a vendor, though, and its signatures describe a single week, so they’re a starting point for the table and not a list to copy.

GA4 has no filter for bots, and its filters are permanent

Once the bots have been found, the natural instinct is to exclude them. GA4 offers data filters for this kind of job, but they come in only three types: developer traffic, internal traffic identified by IP address, and hostname. None of them is meant for bots. Filters also don’t apply to data collected before they were activated, and their effect is permanent, so an event excluded by a badly configured filter can’t be brought back.

The hostname filter needs a closer look, because it’s the newest one. Since June 11, 2026 GA4 has had hostname filters, and since September 21, 2026 it has had Include filters by hostname, which block events whose hostname is empty (a typical sign of spam). The same page notes that these filters don’t apply to events sent through the Measurement Protocol.

The Measurement Protocol lets a server send events to GA4 directly, without any page being opened, and it’s authenticated by a key called api_secret. Google’s reference documentation asks that the key be kept private and says it “should be regularly updated to avoid excessive SPAM.” The warning makes sense, because whoever holds the key can send events, and those events, as the help page says, never meet the hostname filter.

That leaves segments and comparisons, which are the method MeasureU proposes. They work, and they don’t destroy anything, but they act on the report and leave the data as it is. Everyone who opens the property has to apply them again, and anything that reads the property’s data outside that report still sees the bots.

Meta and Google Ads receive the same bots

A bot that runs the page’s JavaScript fires Google Tag Manager like any visitor, and with it every tag set to fire on page views, the Meta pixel and the Google Ads tags included. Those platforms learn from what they receive in order to decide whom to show ads to. Our reading is that when part of what they receive comes from bots, they look for more visitors who resemble them, and spend the campaign budget doing so.

Where a bot session that fires GTM ends up Where a bot session that fires GTM ends up: Bot that runs JavaScript, then GTM fires, then GA4 (removes only known bots), Meta pixel (learns from it), Google Ads (learns from it). Where a bot session that fires GTM ends up Bot that runs JavaScript GTM fires GA4 removes only known bots Meta pixel learns from it Google Ads learns from it Source: Google Analytics help on known-bot exclusion
GA4 excludes only bots on the known-bots list (Google Analytics help); what reaches the ad platforms is our reading of how GTM sends the same visit to every tag.

Shopify offers a useful example of where the line falls. Between September 21 and 23, 2026, Shopify Analytics started excluding bot sessions from its reports by default, with a classification that runs from October 7, 2025 and isn’t applied retroactively. It’s a real improvement for Shopify’s own dashboards. Our reading, which is a deduction and not something Shopify states, is that GA4, Meta and Google Ads keep receiving the same bots as before.

Deciding before GTM starts keeps bots out of every platform at once

Each remedy described so far acts after the data has been sent, either when it arrives in GA4 or when someone reads the report. A point where a bot can be kept away from GA4, Meta and Google Ads at the same time, on any site with GTM, is before Google Tag Manager starts on the page. That’s where we placed BotFlamingo, the product we make at Tillde, our agency.

Our snippet replaces the GTM one and decides, for each visit, whether GTM should start. In report mode GTM always starts and finds the verdict in the dataLayer, so each tag can be told what to do with a bot. In block mode GTM doesn’t start for a bot, and no request reaches the server container. (On the Stape containers of Tillde’s clients we measured about ten requests per page view. A bot session may fire fewer, so we don’t put a number on the saving per bot.) If our service doesn’t answer within 800 milliseconds, GTM starts on its own.

The rules are specific to each site, created by an analysis that runs once a day and when traffic spikes. Each rule explains why it exists and has a cap on the share of traffic it can block. A rule applied at once can be undone from the email that announces it, while a rule waiting for confirmation expires if nobody confirms it. Claude’s and Google’s agents are verified by IP address, and a verified agent isn’t treated as a bot, so GTM runs for it in both modes and its session is counted apart.

Where the snippet sits also sets its limits. Bots that write straight to GA4 through the Measurement Protocol never open a page, so they never meet the snippet, just as they never meet the hostname filter. A bot nobody has seen before also gets through until the analysis notices it. We’d rather state both gaps than promise a filter that stops every bot, since such a filter would sooner or later stop some customers too. Every project in the BotFlamingo beta starts in report mode, which blocks nothing, and the panel shows how many sessions were flagged as bots before anyone decides what to stop.