
Essay Bot Detection
Detecting AI Agent Traffic in Your Website Analytics
Server logs and behavioral scoring reveal AI agents hiding in your analytics data.
To detect AI agents on a website, combine server logs, WAF classification, and browser-based behavioral scoring. Logs show crawlers that never run analytics JavaScript, while behavioral scoring flags agents whose sessions look like those of humans. For website analytics to be reliable, both forms of detection are needed, with separate reports for human visitors, AI agents, and human referrals from AI services.
Why AI agent traffic has made standard web analytics unreliable
Cloudflare’s CEO announced on June 3, 2026 that automated traffic had passed human traffic for the first time, with the crossover occurring in May 2026, roughly 18 months earlier than he had expected. Bots and AI agents now account for the majority of web requests, but a request is not a human session. Standard analytics was designed around the latter. Its reliance on JavaScript execution, cookies, and browser behavior leaves it poorly equipped to describe a population that either bypasses those signals or reproduces them through automation.
Cloudflare distinguishes traditional crawlers and indexers from agents that browse on behalf of users, visiting pages, filling forms, comparing options, and completing transactions. A human researching a purchase visits a handful of sites, while an agent performing the same task can visit hundreds or thousands of pages. DataDome’s AI traffic report detected 52.7 billion AI agent and LLM crawler requests across its customer base between July 2025 and June 2026, with the sharpest acceleration in the final four months. That dataset describes requests rather than buyers, which is precisely the distinction analytics must preserve.
The two structurally different ways AI traffic breaks analytics
The first failure mode is the invisible visit. GPTBot and ClaudeBot can request HTML, extract content, and leave without executing JavaScript. Because the analytics snippet never fires, those visits leave zero sessions in GA4, PostHog, or another pixel-based tool. RAG systems create the same blind spot when they fetch specific paragraphs in real time to ground an AI answer. These focused, high-frequency requests reach the site without appearing in its session reports.
The second failure mode is the miscounted session. Browser-based agents run inside real Chromium browsers and leave session data that standard analytics can mistake for human activity. GA4 counts them as real users. Yet an agent completing a task in two seconds may have succeeded, even when conventional engagement metrics treat its short visit as a failure. Bounce rate, time on page, pages per session, and conversion rate consequently become composites of populations with different behaviors and intentions.
A human who clicks a citation in ChatGPT or Perplexity can appear in analytics as a referral, but that record does not expose the crawler activity that supplied the underlying content. Referral reporting therefore measures a human arrival. Filtering out browser sessions that look suspicious cannot bring invisible requests into view. Counting declared crawlers also leaves in place agents that already pass as human visitors.
How can you tell if AI bots are crawling your website and what content they are reading?
Server logs provide the first observable evidence through user-agent strings and requested paths. OpenAI operates GPTBot, OAI-SearchBot, and ChatGPT-User, while Anthropic operates ClaudeBot, Claude-SearchBot, and Claude-User. Perplexity operates PerplexityBot and Perplexity-User. These names make declared crawler traffic recognizable, and major operators publish IP verification lists for cross-checking. The requested paths show which content those requests reached, while a referral shows whether a service later sent a human to the site.
A declared user-agent needs the network context supplied by the operator’s published IP information, and some AI requests share identifiers. DataDome’s report classifies traffic across more than 100 named agents and LLM crawlers, but Gemini’s footprint is harder to measure because some requests appear as Googlebot. The same report found that ChatGPT.com drove 83.4% of AI-referred traffic in its dataset.
Crawl volume and referral volume do not track proportionally. ClaudeBot crawls orders of magnitude more pages than it converts to referrals, while Perplexity has a different crawl-to-referral relationship. Browser-based agents obscure their presence in a different way, often presenting a common desktop operating system and browser. Their observable signals include deterministic mouse paths, DOM burst reads, Chrome DevTools Protocol artifacts, and queries fired without prior viewport scrolling.
Why each detection method works for some agent types but not others
Server log analysis picks up requests even when JavaScript never runs. Cloudflare, Vercel, and Netlify provide CDN dashboards that package this data, while self-hosted sites can use Nginx or Apache access logs. This makes server-side analysis suitable for finding invisible visits. Its identification limit is equally important. A spoofed user-agent fools checks based on the declared name, though the request itself stays visible, and browser-based agents are unlikely to name themselves.
Traditional CDN-level and WAF-level bot detection adds IP reputation, TLS fingerprints such as JA3/JA4, and header consistency. These signals work well against commodity automation. AWS WAF’s February 2026 AI activity dashboard launch expanded Bot Control’s catalog to more than 650 unique bots and agents, covering AI search engine crawlers, AI data collectors, AI assistants, and LLM training crawlers. The catalog receives updates for newly emerging bots, but catalog breadth does not eliminate evasion. Browser-based agents that use residential proxies can pass IP reputation checks, and agents that run real browsers can solve challenges that stop simpler bots.
Analytics segmentation works with session data after it has been collected. Custom dimensions for user-agent strings can expose declared agents and help surface anomalies in GA4 or similar tools. Standard browser identifiers erase that distinction, however. A custom dimension on its own cannot tell whether a Chromium session that looks ordinary belongs to a person or an agent.
Specialized browser-side detection combines identity, network, browser environment, and behavior. These layers include declared headers, ASN and IP reputation, JavaScript-observable runtime properties, mouse paths, DOM interaction timing, and CDP artifacts. Cross-referencing them can catch agents that pass an isolated check, though individual tools need not cover every layer completely. Deployment introduces another limit. A JavaScript snippet cannot observe crawlers that never execute JavaScript, so behavioral detection complements server logs.
A human researching a purchase visits a handful of sites, while an agent performing the same task can visit hundreds or thousands of pages.
How the combination of server logs, WAF rules, and behavioral detection closes the gap
The practical workflow begins with a server-side baseline. Teams should parse CDN or web server access logs for known crawler user-agents and cross-check them against each operator’s published IP ranges. This establishes visibility into agents absent from pixel-based analytics and connects their requests to content paths. The baseline is independent of session tracking. Without it, adding more browser instrumentation leaves the invisible-visit failure untouched.
Next, WAF classification turns observed traffic into policy categories. A detection catalog such as Bot Control can tell AI search crawlers, RAG fetchers, and AI assistants apart so that teams can treat each type of automated request differently. Verified crawlers can be allowed, unverified agents rate-limited, and aggressive scrapers blocked. A model combining mouse determinism, DOM interaction timing, and scrolling before a query assigns session-level confidence, with sessions above a threshold flagged as likely agent traffic even when identity and network checks pass.
Classified agent sessions should be excluded from human engagement metrics or placed in separate reporting buckets, allowing bounce rate, time on page, and conversion rate to describe the intended population. Teams can still study legitimate agent activity on its own. Until that separation is in place, engagement trends are a more dependable guide than absolute traffic totals. Teams should also flag the changing traffic composition to stakeholders before it emerges as an unexplained discrepancy during a quarterly review.
What clean human traffic separation enables for visitor identification and attribution
When an identification tool calculates a match rate on traffic that still includes bots and agents, its denominator does not describe human visitors alone. A headline percentage is therefore insufficient to establish human identification coverage. The population behind it must be explicit. Separating agent sessions makes it possible to evaluate identification against the visitors the tool is meant to identify.
That separation does not remove the limitations of the identification method itself. Company-level identification uses reverse IP lookup to resolve the organization behind a session, but it fails for remote workers browsing through residential ISPs, VPNs, or mobile networks. Corporate network identity is missing in those cases. Person-level identification instead checks browser signals against identity graphs to find individual names, job titles, work email addresses, and LinkedIn profiles. Clean human segmentation gives that process an appropriate input population rather than asking an identity system to interpret automation as a buyer.
When a Google or LinkedIn ad brings an AI agent rather than a human buyer to a landing page, crediting the session as a qualified human visit overstates campaign performance. Counting agent sessions as human conversions compounds the error. Detection therefore has a role before identification and attribution. The resulting capability is a connected measurement process in which content consumption by agents remains visible without contaminating the human signals used to assess pipeline and advertising.
Preparing your site to work correctly for AI agents you want to serve
Detection also provides the basis for serving legitimate agents. Browser-based agents use the DOM to work with forms and navigation instead of looking at the page, so hover-dependent controls, unlabeled inputs, and JavaScript-driven submit buttons without native semantics can stop them from doing so. These weaknesses are much like the barriers that screen readers run into. A clean Lighthouse accessibility audit is a reasonable proxy for agent compatibility. It connects readiness to the structure of the site rather than to how convincing its visual presentation appears.
JSON-LD and schema.org markup can make product pages, event listings, booking flows, and service descriptions easier to interpret than visual layouts alone. Google announced WebMCP at Google I/O 2026 as a proposed open web standard for exposing structured tools, including JavaScript functions and HTML forms, to browser-based agents. It would let interactions call backend functions directly. The origin trial is experimental.
Google announced at The Android Show on May 12, 2026 that Chrome auto browse would reach Android in late June 2026 for US Google AI Pro and Ultra subscribers. The announced device requirements include Android 12 or higher and at least 4GB of RAM. Desktop availability began on January 28, 2026 for US-based Google AI Pro and AI Ultra subscribers. Preparation is therefore a practical policy decision. Bot Control supports rules by category and verification status, allowing verified AI search crawlers while restricting unverified agents, and teams with detection already instrumented can make those choices intentionally.
Notes
- AWS WAF announces AI activity dashboard for visibility into AI bot and agent traffic - AWS
Provided details on AWS WAF Bot Control's February 2026 AI activity dashboard launch, including the catalog size of over 650 unique bots and agent categories covered.


