A fashion store, its bots, and a filter that runs before GTM

In early November an Italian fashion store told us it was under bots
At the start of November, one of our clients wrote to tell us it was “under bots.” The client is an Italian fashion e-commerce store that also sells in the United States. We’re Tillde, the agency that makes BotFlamingo, and the first thing we did was open the store’s GA4 property and look at the previous thirty days.
Italy, the store’s home market, had 3,288 sessions in that period, a little over a hundred a day, with an engagement rate of 66%, which is roughly what we’d expect from people who know the store and come to shop. The United States, Brazil, Argentina, Singapore, Colombia and twenty other countries together brought tens of thousands of sessions. Almost all of them were classified as Direct, their engagement rate ran between 2% and 15%, they lasted a few seconds, and none of them ended in an order.
Nearly all the American sessions came from Ashburn, North Bergen and Santa Clara, which are towns better known for their data centers than for their interest in Italian fashion. (Ashburn turns up in other stores’ bot reports too, as we described in our article on bot traffic in GA4.)
The United States was a real market, so the country couldn’t be excluded
The quickest fix for traffic like this is to exclude the countries it comes from, and for Brazil or Singapore that might have been acceptable. The United States was a different case, because the store has real customers there, and excluding the country would have meant excluding them too. We decided to go after data center networks and automated browsers instead.
To find them we read the logs of the store’s server container, the part of the tracking that runs on a server and receives a request whenever a tag fires. We took a single day, about 6,000 requests, and grouped them by IP address and user agent (the string with which a browser says what it is).
The logs showed a browser that looked ordinary in every way but one
The largest group, 23% of the requests, came from Chrome on Linux. The user agent was the kind any real visitor might send, and nothing in it suggested a bot. What gave the group away was where it came from, since the requests arrived from 110 IP addresses, all belonging to DigitalOcean, a cloud provider where people rent servers by the hour. Stape’s Bot Detection didn’t flag any of them.
Another 8.5% of the requests came from a crawler called ShapBot, running on Google Cloud. This one declares itself in its user agent, and Stape did flag it. In other words, the tool on the container flagged only the crawler that announced itself, much as GA4 does with its list of known bots.
The first filter cut daily sessions by 42%, and Italian sessions went up
On November 9 we switched on the Tillde filter that BotFlamingo later grew out of. It already worked on the principle BotFlamingo uses, deciding whether Google Tag Manager should start before it starts, with rules written for the single site. For this store the rules covered automated browsers and fourteen DigitalOcean networks.
We tested it live the same day. For an ordinary visitor GTM started as usual. For an automated browser, and for the crawler, GTM didn’t start at all, and the server container received nothing.
We then compared the days from November 10 with the weeks before. Sessions fell from about 1,880 a day to about 1,090, a drop of 42%. The engagement rate rose from 14.3% to 21.7%. Sessions from Italy grew by 31%, which was the number we watched most closely, because a filter that removes bots by also removing customers would have shown it there first. Requests to the server container fell by 36%.
Two bots got through, and their fingerprints gave them away
An engagement rate of 21.7% was better, but it was still far from the 66% of the Italian visitors, and the following week’s data explained why. Two bots were getting past the filter, producing about 4,700 of the 6,900 sessions GA4 recorded that week, roughly two sessions in three.
The first bot always used a screen of 1280x1200, Windows 10 and an old version of Chrome, somewhere between 103 and 145. It sent no client hints, the extra information that recent versions of Chrome send about the device and the exact browser version. It came almost entirely from Singapore, on Tencent Cloud’s network, and brought about 2,400 sessions in a week.
The second was harder, because it didn’t come from a data center. It used Chrome 154.0.8037.97, a 1920x1080 screen, Windows 11 and the language en-us, with no referrer, and it arrived from 594 different residential IP addresses, viewing a single page per visitor. It brought about 2,300 sessions, which works out to about four per address. No network rule could catch it, since the addresses belonged to ordinary home connections.
What gave both bots away was the combination. Any single trait, a screen size or a Chrome version or a missing referrer, could belong to a real person. The same exact Chrome, on the same screen, with the same language and no referrer, is a different matter when it repeats thousands of times a week and never buys anything. That combination is what we call a bot fingerprint. (In the case of a jewelry store the fingerprint was a perfectly square screen.)
On November 19 we added two checks to the filter. The first stops desktop Chrome that sends no client hints. The second compares each visit with a list of bot fingerprints, each made of a Chrome version, a screen size, a language and a missing referrer. From ten in the morning that day the two bots no longer reached either the server container or GA4. In the same hours, hits from Italy stayed between 70 and 130 an hour, as they had before.
By late November GA4 recorded 275 sessions a day, with 57% engagement
The daily averages in GA4 show each change. These averages cover whole periods, a different comparison window from the one above, which is why the numbers don’t match.
| Period | Filter | Sessions per day |
|---|---|---|
| November 1-9 | none | 1,957 |
| November 10-18 | automated browsers and DigitalOcean | 906 |
| November 20-26 | plus bot fingerprints | 275 |
The engagement rate went from 14% at the start to 57% at the end, while Italy held steady at between 135 and 180 sessions a day. Our reading is that 275 a day is close to the store’s real traffic, since 57% is near enough to the Italian 66% that what remains looks mostly human.
The filter missed two new bot fingerprints and a crawler, and never saw the checkout
On November 27 and 28, Black Friday and the day after, two new bot fingerprints appeared that the filter didn’t stop. One was Chrome 148 on a Mac with a 1800x1125 screen, from China, and the other was Chrome 158 on Linux, from the United States. Together they made up 289 of the 801 sessions of those two days, and none of them put anything in a cart.
We didn’t add them to the list right away, and the reason is in the data. Twenty-five sessions from Italy also used Chrome 158, and some of those could well have been real customers with an updated browser. A bot fingerprint that looks obvious in a table of bot sessions can turn out to be shared by real customers, so each new one has to be checked against real traffic before it becomes a rule.
There were two more gaps. The store’s checkout runs on a separate system, and its pages never went through the filter. A crawler called AmazonSelectionExplorerBot also got through, for a more embarrassing reason. Our rule on user agents looked for “Bot/” with the slash, and this crawler writes its name without one. (We had written the rule, so the mistake was ours.)
We don’t yet know whether sales changed
The obvious next question is whether any of this sold more clothes, and we can’t say. GA4 recorded a few purchases in the days right after the filter went on, and we haven’t yet compared them with the store’s own orders. Until we do, the filter’s effect on sales hasn’t been measured.
The filter kept the container under the Stape Pro limit
The store hosts its server container on Stape’s Pro plan, which includes 500,000 requests a month. The month closed at about 470,000. Without the 36% drop in requests from November 10, the container would have gone over the plan’s limit, and most of the extra requests would have come from visits that no person made.
In BotFlamingo a bot fingerprint is a rule, and a new rule can wait for confirmation
In BotFlamingo, the product we built from this filter, a bot fingerprint is a kind of rule, written for a project alongside the rules on countries and IP addresses.
The store also showed us why rules have to belong to a single site. Excluding the United States would have cost this store its American customers, while a shop that sells only in Europe might exclude the country without losing anyone. In BotFlamingo the automatic rules are created for each site by an analysis that runs once a day and when traffic spikes, and each rule says why it exists.
Chrome 158 taught us to check a rule before it’s applied. Every BotFlamingo project starts in report mode, which blocks nothing and shows how many sessions were flagged as bots, and a project can ask that each new rule wait for confirmation before it applies. BotFlamingo has the same limit as the filter, since a bot nobody has seen before gets through until the analysis notices it.
The BotFlamingo beta is open to any site that uses Google Tag Manager.