Tracking AI referral traffic in GA4
Create a custom channel group in GA4 with an “AI assistants” channel whose condition is session source matching a regex of AI hostnames, and place it above Referral. This separates visits from ChatGPT, Perplexity, Copilot, Gemini and Claude. It cannot isolate AI Overviews clicks, which arrive as Google organic, and it misses AI visits that carry no referrer.
Steps
- Admin > Data display > Channel groups > Create new channel group (copy the default group).[1]
- Add a channel named “AI assistants”. Condition: Session source > matches regex, using the pattern below.
- Reorder so it sits above Referral; GA4 assigns the first matching channel.[1]
- Save, then use it in Acquisition > Traffic acquisition. Custom channel groups also apply to historical data.
Regex
^(chatgpt\.com|chat\.openai\.com|(www\.)?perplexity\.ai|copilot\.microsoft\.com|gemini\.google\.com|claude\.ai|chat\.deepseek\.com|chat\.mistral\.ai|(www\.)?meta\.ai)$
Google’s help page includes its own “AI assistants” example,[1] but a loose pattern that matches “ai” anywhere can also catch unrelated sources (for example any domain containing “ai”). An anchored list of exact hostnames is more precise. Check your own referral report for new hostnames monthly. Practitioner practice
Limitations
| Gap | Why | Workaround |
|---|---|---|
| AI Overviews / AI Mode clicks | Reported as google / organic | Search Console Generative AI report[2] |
| Copilot inside Bing | Often reported as bing / organic | Bing AI Performance report[3] |
| Apps without referrers | Show as direct | Watch landing pages with sudden direct spikes |
| Mentions without clicks | No visit happens | Prompt panels (measurement) |
ChatGPT appends utm_source=chatgpt.com to referred links, which GA4 records as the session source.[4]
Frequently asked questions
Why does ChatGPT traffic show as direct?
Some app and copy-paste visits send no referrer. Links clicked in ChatGPT usually carry utm_source=chatgpt.com.
Can GA4 show AI Overview traffic?
No. It arrives as Google organic. Use Search Console's Generative AI performance report.
See also
References
Pages accessed September 28, 2026 unless a date is given. See all sources and our editorial policy.
- ^ "Custom channel groups (includes an “AI assistants” example)". Google Analytics Help.
- ^ "Generative AI performance report (Search)". Search Console Help. Rolled out to all sites by August 31, 2026.
- ^ "Introducing AI Performance in Bing Webmaster Tools Public Preview". Bing Webmaster Blog. Published February 10, 2026.
- ^ "Publishers and Developers – FAQ". OpenAI Help Center.