How do you monitor AI traffic in Google Analytics 4?
GA4 doesn't natively detect AI bots, they're excluded by default from traffic. To monitor: create custom segment based on user-agent (GPTBot, ClaudeBot, PerplexityBot), or use third-party tool (Cloudflare AI Audit, Dark Visitors). For "via ChatGPT" human traffic, filter referral domain chatgpt.com, perplexity.ai, claude.ai.
AI bots and human visitors, two distinct kinds of traffic
Two distinct traffic types to monitor. (1) AI bot traffic (GPTBot etc. crawling for training/citation), not visible by default in GA4 which filters bots. Solutions: (a) custom event via Tag Manager detecting AI user-agents server-side, (b) Cloudflare AI Audit measuring all, (c) server log parsing via GoAccess. (2) Human LLM referral traffic (users clicking link from chatgpt.com), visible in GA4 Acquisition → Traffic. Create "LLM Referral" segment filtering chatgpt.com OR perplexity.ai OR claude.ai OR mistral.ai OR gemini.google.com. PROEMA recommended setup: Cloudflare AI Audit (Pro plan free) for bots + custom GA4 segment for human referral. 2026 target: 5-15% of site traffic from LLM referrals for well-optimized francophone B2B brands.
| Traffic source | Measurement tool | Configuration |
|---|---|---|
| AI bot crawls | Cloudflare AI Audit | Pro plan $20/mo |
| AI bot crawls | Server logs (GoAccess) | Open source |
| Referral chatgpt.com | Custom GA4 segment | "Source contains chatgpt" |
| Referral perplexity.ai | Custom GA4 segment | "Source contains perplexity" |
| Click to chatgpt.com | GA4 Event Tracking | Outbound click handler |