Seatext library / BotRefund evidence

How to Use Google Analytics to Spot Bot Traffic: A Step-by-Step Process

Google Analytics (GA4) automatically excludes known bots, but that filter only catches a fraction of invalid traffic. To spot the rest, enable enhanced measurement, build custom explorations around engagement metrics like session duration and...

Built for advertisers who need clear, refund-ready traffic evidence.

Google Analytics 4 (GA4) has a built-in "known bot traffic" exclusion that you cannot disable or inspect. It removes traffic from Google's internal list of identified crawlers and spiders, but sophisticated bots — residential proxy networks, headless browsers with realistic fingerprints, and click-farm devices — slip past because they mimic real users at the network and browser level. To spot that traffic, you need to layer custom detection on top of GA4's default reports.

What Google Analytics Shows (and Misses) About Bot Traffic

GA4's automatic exclusion only covers bots that identify themselves through standard user-agent strings or known IP ranges. Modern invalid traffic often uses real Chrome or Safari engines, residential IPs, and behavioral scripts that scroll, move the mouse, and even fill forms. Those sessions look human in aggregate reports. The gap is not a bug; it is a design limit. GA4 aggregates data for marketing optimization, not forensic audit. If you need evidence for a refund request with Google or Meta, you need session-level behavioral proof that GA4 does not capture by default.

Step-by-Step: Setting Up Bot Detection in GA4

  1. Enable enhanced measurement. In Admin > Data Streams > Web, turn on enhanced measurement. This automatically tracks scrolls, video plays, file downloads, and form interactions — events that bots often skip or perform in non-human patterns.
  2. Create a custom exploration for engagement quality. Go to Explore > Free Form. Add dimensions: Session source/medium, Landing page, Device category, Country. Add metrics: Average engagement time, Engaged sessions per user, Events per session, Scroll depth (if configured), and Bounce rate (GA4 calls it "non-engaged sessions").
  3. Add a segment for suspicious patterns. In the same exploration, create a segment: Sessions where "Engagement time" is less than 10 seconds AND "Events per session" is less than 2 AND "Scroll depth" is 0. Name it "Low-engagement sessions." Apply it to see which sources drive hollow traffic.
  4. Build a geographic anomaly report. Add a second exploration with dimensions: Country, City, Session source. Metrics: Sessions, Engagement rate, Conversions. Sort by sessions descending, then look for countries with high volume but near-zero engagement or conversions. Sudden spikes from unexpected regions often signal proxy traffic.
  5. Set up a custom dimension for traffic quality flags. If you use a client-side detection script (see the section below), push a "traffic_quality" parameter (values: "human", "suspicious", "bot") as a custom dimension. Then filter explorations by that flag to isolate invalid sessions in GA4.
  6. Schedule automated alerts. In Admin > Custom Alerts, create alerts for: engagement rate drops >30% week-over-week for a single source; sessions from a new country jumping >200% in 24 hours; conversion rate collapsing while clicks hold steady. These are early warnings, not proof.

Key Metrics That Signal Bot Activity

No single metric proves a session is automated. The signal emerges from combinations:

  • Engagement time near zero with multiple pageviews suggests background tab loading or prerendering.
  • Zero scroll events on long-form landing pages where humans almost always scroll.
  • Uniform session durations (e.g., many sessions at exactly 30 seconds) indicate scripted dwell-time loops.
  • High pages-per-session with zero conversions on lead-gen sites can mean a crawler mapping your funnel.
  • Device/browser mismatches — e.g., "Chrome on iOS" reporting screen resolutions that do not exist on any iPhone — reveal spoofed user agents.

BotRefund's detection engine evaluates 106 browser, network, hardware, and behavior signals together before classifying a visit, because "one signal can be misleading" and "signals become a decision only when they are seen together" (S1). GA4 gives you a handful of those signals; client-side fingerprinting gives you the rest.

Building Custom Reports for Ongoing Monitoring

Once you have the explorations above, save them as reports in the GA4 library so stakeholders can access them without rebuilding. Create a dashboard with three tabs:

  • Source Quality: Session source/medium vs. engagement rate, conversions per session, and the low-engagement segment share.
  • Landing Page Health: Landing page vs. bounce rate, average engagement time, and scroll depth at 25/50/75/100%.
  • Geo Anomalies: Country/City vs. sessions, engagement rate, and conversion rate, filtered to sources you pay for (Google Ads, Meta, etc.).

Review weekly. When a source shows a sustained engagement-rate drop, drill into the session-level data — or better, into your client-side logs — before pausing campaigns or filing disputes.

Common Mistakes When Relying Only on Analytics

  • Treating GA4's bot exclusion as complete. It only removes known crawlers. Google's own help notes you cannot see how much was excluded or adjust the list.
  • Blocking IPs based on GA4 data alone. Residential proxy botnets rotate through millions of consumer IPs. IP blocks catch VPNs and data centers, not the majority of modern click fraud.
  • Assuming low engagement = bot. Bad creative, slow load times, or mismatched intent also produce low engagement. Always cross-check with CRM outcomes (e.g., lead contactability, sales qualification) before labeling traffic invalid.
  • Filing refund requests with only GA4 screenshots. Google and Meta require client-side behavioral evidence — click IDs (GCLID/FBCLID) tied to proof of non-human interaction like missing mouse tremor, superhuman input speed, or automation property leaks.

When Analytics Isn't Enough: Adding Client-Side Verification

GA4 tells you what happened in aggregate. Client-side detection tells you why a specific session fails the human test. BotRefund runs in the browser and checks vectors such as WebRTC network leaks, DNS tunnel leaks, timezone evasion, CDP debugger leaks, native patching, engine mismatch, automation properties, and pointer behavior (robotic linear movements, absence of humanlike tremor, grid-aligned patterns, superhuman input speed under 1ms) (S1, S2). It captures the Google Click ID (GCLID) or Facebook Click ID (FBCLID) alongside that behavioral proof, then generates compliance-ready refund reports for Google Ads and Meta disputes (S2, S6).

The workflow: install the script (about one minute, no credit card), let it collect baseline traffic for a few days, then review the audit dashboard. It flags sessions that GA4 counts as "engaged" but that lack human micro-behaviors. You can then export the flagged click IDs and behavioral logs for a refund claim. BotRefund reports an 83% refund success rate for high-volume advertisers and has recovered spend dating back to 2017 (S2).

Key Facts

CapabilityDetailSource
Bot detection signals106 browser, network, hardware, and behavior signals evaluated togetherS1
Detection accuracy claim99% accuracy classifying traffic as human or botS1
Ad spend drain estimateUp to 20% of Google Ads and Meta spend lost to botsS2
Refund success rate83% for high-volume advertisersS2
Refund lookback windowGoogle Ads spend dating back to 2017S2
Installation timeAbout one minute, no credit card requiredS2
Evidence capturedGCLID/FBCLID linked to behavioral proof (mouse tremor, input speed, automation leaks, etc.)S1, S2, S6
Pixel protectionPrevents invalid sessions from triggering conversion pixels (Meta Pixel, Google Ads)S2, S6

Limitations of GA-Based Detection

  • No session replay. GA4 does not record mouse movements, keystroke timing, or browser fingerprint details.
  • No click-ID linkage. GA4 does not surface GCLID/FBCLID in standard reports; you need BigQuery export or a client-side capture.
  • Sampling and thresholds. High-traffic properties hit sampling limits in explorations, hiding the very anomalies you hunt.
  • No real-time blocking. GA4 is observational. It cannot stop a bot from triggering a conversion pixel in the current session.
  • Attribution lag. By the time a weekly report surfaces a problem, the budget is spent and the pixel is poisoned.

These limits are why teams that rely solely on analytics still lose budget. The fix is not a better GA4 report; it is a parallel client-side layer that feeds evidence back into your analytics and your refund workflow.

FAQ

Does GA4 automatically block all bot traffic?

No. GA4 excludes only known bots from Google's internal list. It does not catch bots using residential proxies, headless browsers with real fingerprints, or click-farm devices. You cannot disable the exclusion or see how much traffic it removed.

Which GA4 metrics are most reliable for spotting bots?

Engagement time, scroll depth, events per session, and conversion rate — viewed together by source, landing page, and geography. No single metric is sufficient.

Can I use GA4 data alone to get a refund from Google Ads or Meta?

Generally no. Both platforms require client-side behavioral evidence tied to specific click IDs (GCLID for Google, FBCLID for Meta). GA4 does not capture mouse tremor, input speed, or automation property leaks.

How do I capture GCLID/FBCLID in GA4?

GA4 does not expose them in the UI. You can capture them client-side (via URL parameter on landing) and send them as a custom dimension, or use a tool like BotRefund that auto-captures click IDs with behavioral logs.

What is the difference between server-side and client-side bot detection?

Server-side looks at IP, headers, and user-agent in logs. It catches basic scrapers but misses residential proxy botnets and browser automation. Client-side runs in the visitor's browser and checks fingerprint consistency, pointer behavior, and execution environment — the signals that reveal sophisticated bots.

How long does it take to set up client-side detection alongside GA4?

BotRefund installs in about one minute with a single script tag. No credit card is required for the free audit tier.

Will adding a detection script slow down my site?

BotRefund's script is designed to load asynchronously and has minimal impact on Core Web Vitals. Most users see no measurable change in LCP or FID.

Further reading and comparison sources

These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.

Learn more

Visit the website for more information.

Learn more