What server-side tracking does with bots

Google describes server-side tagging as “a new way to use Google Tag Manager,” and explains it plainly: “The server receives web requests from the user’s device and transforms those requests into events.” Instead of sending data to GA4, Meta and Google Ads one by one, the browser sends it to a server container, and the container decides what to pass on.
What rarely comes up is what happens to bots once the container is in place. We read the guides that rank for “server side tracking,” IONOS, Osano and Usercentrics among them. Usercentrics does warn that “Usage-based billing can increase SST costs during traffic spikes,” but none of them says that bots reach the server container, that per-request billing then charges for them, or where they could be filtered out.
The browser still sends every request to the server container
In a page on the fundamentals of server-side tagging, Google writes that “The only way to make the server container process data is to send HTTP requests to it.” The word doing the work is “only.” The container doesn’t watch the site, and it acts only when a request arrives. In the usual setup the requests come from the browser, which still loads the Tag Manager script and still runs the tags, except that the tags now send their events to the container instead of straight to Google or Meta.
Consider what this means for a bot that executes JavaScript, the kind built on a headless browser (a real browser with no screen, driven by a program). It opens a page, the GTM snippet runs as it would for anyone, the GA4 tag fires a page view and perhaps a scroll event, and each of these becomes an HTTP request to the container. From the container’s side nothing tells these requests apart from a visitor’s, because the same code produced them. (A bot that never runs JavaScript sends nothing at all, which makes the crudest scrapers the least of the problem here.)
Moving the tags onto a server the site owner controls leaves the bots where they were, because the container passes on what the browser sends unless someone adds a check. Stape said on its forum in March 2026 that “the Data Tag / Data Client does not have any built-in bot filtering,” and GA4 excludes only known bots, the ones that announce themselves, which leaves plenty of bots in the reports. Practitioners in a Shopify Community thread from September 2026 add that behind a server container GA4 runs its known-bot check on the request it receives, which now comes from the server rather than from the visitor’s browser; the thread began with GA4 filling up with “(not set)” users the day server-side tracking went live. That’s testimony rather than measurement, but it fits the mechanism.
Stape and TAGGRS bill the bots’ requests too
On Stape and TAGGRS, the request is also the unit of the bill. Stape defines a request as “every incoming hit your server container receives,” loads of gtm.js and gtag.js included, and its billing page says: “We count any request sent to your Google Tag Manager Server container.” The plans are sized in requests per month, with 10,000 on Free, 500,000 on Pro, 5 million on Business and 20 million on Enterprise. TAGGRS works the same way (“Pricing is based only on incoming server hits”).
How many requests does a page view produce? On the Stape containers of clients of Tillde, the agency that makes BotFlamingo, we measured about ten per page view, from 7 on one site to 19 on another. We’d expect a bot that runs JavaScript to produce roughly the same number on the same site, since it fires the same tags (fewer if it never scrolls or clicks).
The following example is invented, though plausible. A store gets 40,000 page views a month from people, which at ten requests each comes to 400,000, inside the 500,000 of a Pro plan. Now add 12,000 page views from bots that execute JavaScript. They bring 120,000 more requests and push the total to 520,000, past the Pro allowance, for visits that bought nothing; the next plan up is Business, at 5 million. On a site where a page view costs 19 requests instead of ten, the same bots would add almost 230,000.
Self-hosting the container on Google Cloud Run changes the unit. Google’s setup guide puts it at about $45 a month per server and recommends at least two, so the bill follows the number of servers instead of a request counter. The bots’ requests still use those servers’ capacity, but no counter bills them one by one.
Stape Bot Detection scores requests after GTM has started
Stape offers a Bot Detection power-up that works inside the container (our own product covers similar ground, so we’re not neutral here). The power-up gives each request a score from 0 to 100. Below 50 the request is probably human, between 50 and 75 it’s suspicious but not blocked, and above 75 it’s treated as a bot. The verdict travels in two headers, X-Device-Bot and X-Device-Bot-Score. Above 75 the power-up blocks automatically, but only requests to /collect, the path GA4 uses, and to /data, the path of Stape’s Data Tag. It’s available from the Pro plan and works with Stape hosting.
By the time a request gets its score, the browser has already loaded GTM and sent the request. Requests to other paths carry the score but aren’t blocked automatically, and stopping them is left to whoever configures the container.
Stape’s answer to whether bot requests, and blocked ones, count toward the bill has changed over time. In February 2022, asked on its forum whether Google’s crawlers consume requests, Stape replied: “We count any request to your server. So if google crawlers do request to your sGTM, then we also will count them.” In May 2024 another thread explained that a request still had to be accepted “and count it towards your subscription threshold.” On July 30, 2026, a post on Stape’s blog said the reverse: “Blocked requests never hit your container, so they do not count toward your request volume.”
The current documentation of the power-up says only that blocking early “helps optimize your overall request usage.” We read the change as a sign that the answer depends on where and how the block happens, and before counting on the saving we’d ask Stape directly about the plan in question.
Each filtering point saves something different
Between the visit and the reports, a bot can be stopped at the CDN, in the browser, in the server container or inside GA4.
At the CDN (the network of servers that delivers the site’s pages, Cloudflare’s for instance), a bot can be stopped before the page is served. Cloudflare’s Bot Fight Mode is available to every Free customer and challenges simple bots coming from cloud providers and headless browsers (finer controls start with the paid plans). A bot stopped here never loads the page, so it reaches neither GTM nor the container. It works, however, only on traffic that passes through Cloudflare’s proxy: with a DNS-only record Cloudflare “does not route HTTP/HTTPS traffic through its network.”
In the browser, after the page loads and before GTM starts, a check decides whether Tag Manager runs at all, so in block mode a bot that’s stopped sends no requests to the container and nothing through GTM to GA4, Meta or Google Ads. This is where we work.
In the server container sit Stape Bot Detection and any filtering written by hand. A filter here can keep a bot’s events away from GA4 and the ad platforms, but the request has already arrived, and whether it’s billed depends on the host (and, in Stape’s case, on which year’s answer applies).
Inside GA4, the known-bots filter removes declared bots from the reports. It protects those reports and nothing else, since a container that also feeds Meta and Google Ads has already sent them the same events.
BotFlamingo decides before GTM starts
Our snippet replaces the GTM snippet on the page and checks each visit against the site’s rules before GTM starts. Report mode, where every project starts, blocks nothing. GTM runs and finds the verdict in the dataLayer, so what to stop can be decided tag by tag, and the panel counts the sessions flagged as bots. In block mode, for a visit judged to be a bot, GTM never starts and no request reaches the server container, whoever hosts it.
The rules belong to each site and come from an analysis that runs once a day, and also when traffic spikes. Every 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, and a rule waiting for confirmation expires if nobody confirms it. If our service doesn’t answer within 800 milliseconds, the snippet starts GTM by itself and the site tracks as it did before.
Some bots get through, and the reasons follow from the same mechanism. A bot that writes straight into GA4 through the Measurement Protocol (Google’s interface for sending events to GA4 from a server) never opens a page, so it never meets the snippet. A bot nobody has seen before gets through until the analysis, which runs once a day, notices it.
BotFlamingo is in beta, and the beta page explains how to join.