Share
Embed
Human or Not? Bot Traffic in Google Analytics, from Reports to Console
Gianluca Campo
November 18, 2026
Transcript
35 slides
-
Powered by Human or Not? Bot Traffic in Google Analytics,
from Reports to Console Debug’Em All Milano, 2026-11 -
Powered by Gianluca Campo • Data & Measurement Lead @Ciaodino
• Co-organizer @MeasureCamp Italy • Co-organizer @Debug’Em All Meetup Milano (today!) • Author of Digital Analytics Pills (Substack) • Frequent speaker at Digital Analytics & MarTech events -
Powered by Bots now make up nearly two-thirds of HTML
requests 58% Traffic Worldwide | Cloudflare Radar 66% -
Powered by Even the Google Merch Store is flooded with
bot traffic https://www.linkedin.com/posts/craigsullivan_ga4-googleanalytics-youarebotted-share-7509222467744436225-ZpR-/ -
Powered by AI agents are now part of the mix
• • • Real browser execution: Modern headless browsers and AI agents run full JavaScript, execute DOM elements, and fire standard analytics events. Invisible pre-fetching: AI agents often fetch un-rendered HTML code prior to spinning up full browser instances, leaving zero footprint in standard client-side tags. Three digital visitor types: Web traffic no longer consists of just humans and simple crawlers; autonomous AI agents now browse on behalf of users. https://www.33sticks.com/articles/before-it-was-people-and-bots-now-its-people-bots-and-agents -
Powered by What is the impact of bot traffic? •
Top-of-funnel corruption: Bot hits artificially inflate session and pageview counts while heavily deflating engagement rates and reported conversion rates. • Wasted marketing budget: Automated ad clicks drain pay-per-click (PPC) budgets and poison automated bidding algorithms in linked ad platforms. • Misguided optimization: Scraper spikes can mimic successful marketing campaigns, leading teams to write post-mortems for events that never occurred. • Server-side requests: Last but not least, server-side requests are inflated and you have to pay a higher bill at the end of the month -
Powered by Here’s an example With bot traffic Without bot
traffic traffic metrics are way off revenue and conversions are not affected, but conversion rates are -
Powered by Why do native analytics protections fall short? •
List-based constraints: Native GA4 bot filtering relies on the static IAB/ABC Spiders and Bots List - which only catches bots that self-identify - and its own research. • Infrastructure-driven blocking: Infrastructure providers like Cloudflare and Akamai account for high soft-block rates (26%–37%), introducing systematic sample loss that native analytics never surface. -
Powered by First things first: Label reversibly, never delete •
The filter risk: GA4 data filters permanently exclude events before processing, discarding evidence that can never be recovered in GA4 or BigQuery. • Labeling over deletion: Use Custom Dimensions to label incoming traffic (e.g., bot, suspicious, human), preserving raw historical data for future auditing. • Edge enforcement: Actual blocking of malicious attacks should occur at the CDN or firewall layer, not inside reporting tools. -
Powered by What should you already have in your GA?
• Internal & Developer Traffic: Define office and agency IP ranges under Data Streams to permanently exclude internal team traffic and debug hits. • Hostname Allowlisting: Apply web hostname filters to eliminate ghost spam and unauthorized hits. -
Powered by How to spot bot traffic • Near-zero conversions:
Filter for sessions with near-zero conversions or interactions with the website to identify low-quality automated scripts. I also sometimes use Engaged Sessions as metric to spot bot traffic. • Toggle GA modeling: GA modeling can inflate bot traffic metrics by estimating signals from users who do not provide consent, including bots. • Datacenter geography hubs: Cross-reference top city reports against datacenter locations (e.g., Ashburn, Council Bluffs) displaying high session volume but zero conversions. • The 3 A.M. traffic floor: Graph hourly traffic distributions; flat overnight lines indicate automated traffic operating on fixed schedules. • BigQuery behavioral scoring: Roll raw event logs into BigQuery to calculate composite behavioral scores across device traits, timing, and engagement depth. -
Powered by Here’s for instance what Engaged Sessions can show
Sessions Engaged Sessions the USA has grown exponentially in terms of Sessions Engaged Sessions don’t grow at the same rate -
Powered by KPIs should be resilient to bot traffic •
Act vs. hit: Scrapers and bots seek HTML and session counts; they do not perform complex, multi-step actions. However, don’t forget agents... • Setting primary KPIs: Move primary KPI evaluation down to actions requiring genuine human cost or effort (e.g., verified account sign-ups, payment method additions). • Stable conversion benchmarks: Funnel rate metrics computed below the human-intent line remain stable even when upstream bot traffic fluctuates wildly. -
Powered by Things to remember when presenting data • The
side-by-side view: Present standard reports with dual columns comparing "All Traffic" vs. "Human Only" traffic to illustrate data integrity. • Framing traffic drops: Reframe a drop in total session volume as an increase in reported conversion rate and audience quality. -
Powered by A straightforward tagging strategy accounts for • GTM
custom user properties: Use Custom JavaScript Variables in GTM to pass a user_type or bot_classification parameter to GA4 on all page tags. • No premature tag gating: Tagging visitors rather than stopping tag firing prevents silent data loss and allows historical backtesting. • Staged deployment: Validate all GTM detection variables in GTM Preview mode and GA4 DebugView before publishing to production. -
Powered by Collecting browser signals with GTM Bot Traffic Field
Guide: 13 Checks to Find the Traffic That Was Never a Person | MeasureU -
Powered by Building a multi-signal heuristic classifier Bot Traffic Field
Guide: 13 Checks to Find the Traffic That Was Never a Person | MeasureU -
Powered by How this can be implemented in GTM Bot
Traffic Field Guide: 13 Checks to Find the Traffic That Was Never a Person | MeasureU -
Powered by Unfortunately, false positives are just around the corner
• Privacy tech traps: Apple iCloud Private Relay traffic (Safari on macOS with direct, state-level IP) closely mimics bot signatures: Do not block on location/IP alone. • Hardened browsers: Hardened browsers (e.g., Brave) strip plugin APIs by default; demote plugin counts to weak signals to avoid accusing real customers. • Corporate networks: Always pair geographic or network signals with dead engagement before drawing conclusions. -
Powered by Server-Side Tagging (sGTM) & edge interception • First-party
endpoint: Route analytics traffic through a first-party subdomain (e.g., metrics.example.com) to inspect raw HTTP headers (sec-ch-ua, Accept-Language, client IP). • Check request headers: Reject requests failing header integrity or rate limits with a 204 No Content status before forwarding data to GA4. • Ad platform synchronization: Forward cleaned, de-duplicated conversion events simultaneously to GA4 Measurement Protocol and Meta Conversions API. -
Powered by But it doesn’t necessarily work many bots still
pass the check done by Stape -
Powered by Summary: A multi-layered strategy for long-term data hygiene
• Adopt layered defenses: Merge native GA4 controls, GTM tagging, sGTM edge inspection. • Govern by labeling: Preserve raw data integrity by labeling ambiguity inside GA4 while restricting permanent deletion to internal IP ranges. • Reframe business success: Focus reporting on human-intent conversions below the funnel line to maintain reliable attribution and ad optimization. -
Powered by References • • • • • • Spam
traffic in GA4: How to detect, filter & prevent it - Search Engine Land Detecting Bot Detection: Prevalence, Techniques, and Implications for Web Measurement Research - arXiv How to filter bots out of GA4 without losing real users - Adswerve MeasureU - Bot Traffic Field Guide.pdf - MeasureU Before, it was people and bots. Now it's people, bots, and agents - 33 Sticks Telltale Bot: Bot + Agent Detection from Quantable Analytics - Quantable Analytics -
Powered by Introduction Why it matters What we're going to
see 1. The New Reality: Automated traffic now accounts for more than half of all web activity. 1. Why Detecting Bot Traffic is Relevant 2. Bot-Free Google Analytics Reporting 3. Google Tag Manager Techniques Objective: Move beyond basic list-filtering to establish a multi-layered defense and reporting model. 4. Conclusions & Strategic Recommendations 2. -
Powered by However, their overall traffic share is less significant
34% Traffic Worldwide | Cloudflare Radar 42% -
Powered by Browser Signal Harvesting in GTM • The Webdriver
Flag: Read navigator.webdriver to instantly catch default Selenium, Puppeteer, and Playwright instances. • Viewport & Screen Anomalies: Detect headless Chrome signatures such as 0x0 screens, missing outer dimensions, or fixed 800x600 viewports. • Honeypot Inputs: Deploy CSS-hidden form fields; any session populating hidden inputs is immediately flagged as automated. -
Powered by Building a Multi-Signal Heuristic Classifier • Signal Aggregation:
Evaluate navigator.webdriver, screen anomalies, desktop plugin counts, navigator.languages, touch mismatches, document focus, load timing, and timezone consistency. • Three-Tier Classification Rules • Hard Signals: Any single definitive signal (e.g., webdriver === true) yields a BOT verdict. • Weak Signals: Tripping 2+ secondary signals (e.g., no focus + instant load) yields a SUSPICIOUS verdict. • Default: Clean sessions resolve to HUMAN.