How to track ChatGPT, Perplexity and Claude traffic in Google Analytics 4
More people now ask ChatGPT, Perplexity, Claude or Gemini a question and click one of the sources in the answer, instead of searching. That traffic is real and often converts well. Since May 2026 Google Analytics 4 has a built-in AI Assistant channel, but it doesn't catch all of it.
This guide sets up a separate AI Assistants channel in GA4, explains what it can't catch, and shows how to tell whether AI visitors convert.
GA4's built-in AI Assistant channel, and what it misses
On 13 May 2026 Google added an AI Assistant channel to GA4's default channel group, rolled out to most properties by early June. When GA4 recognises an AI assistant as the source, it sets the medium to ai-assistant and the session lands in that channel. Three gaps, as of October 2026:
- Not every assistant is on the list. Google's documented list covers ChatGPT, Gemini, DeepSeek, Copilot and Grok. Perplexity isn't on it, and Claude was dropped after launch, so those visits still land in Referral.
- The same source can split. GA4 decides by source and medium together, so
chatgpt.comcan show up under AI Assistant, Referral or Unassigned depending on how the visit arrived. - Trends before June are mixed. Older data was never tagged, so a jump around May–June is partly the new channel, not new traffic.
Some visits arrive with no referrer at all and are counted as Direct (more on that below). If you want one number for all AI assistants, build your own channel as below.
Step 1: Create a custom channel group
- In GA4, open Admin → Data display → Channel groups.
- Click Create new channel group. GA4 copies the default rules, so you only add one channel.
- Click Add new channel and name it
AI Assistants. - Set the condition to Source → matches regex and paste the pattern from step 2.
- Save the channel, then drag it above Referral and above the built-in AI Assistant channel. GA4 assigns each session to the first rule that matches, from the top. If Referral comes first, it takes the AI visits and your new channel stays empty.
- Save the group. It appears as a dimension in reports and explorations.
Step 2: The regex
This matches the main AI assistants that send clicks today:
^(.*\.)?(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|chat\.deepseek\.com|grok\.com|meta\.ai|chat\.mistral\.ai|you\.com|phind\.com|poe\.com)$
New assistants appear regularly, so check your Referral report every few months and add hosts you don't recognise.
Step 3: See what AI visitors do
In Reports → Acquisition → Traffic acquisition, switch the primary dimension to your new channel group. Add Landing page as a secondary dimension to see which pages AI tools send people to. These are usually the pages the AI cites, and worth keeping accurate and up to date.
To check conversions, mark your signup or purchase event as a key event and compare its rate for AI Assistants with Organic Search.
Why some AI traffic still shows up as Direct
No analytics tool can attribute a visit that arrives without a referrer. That happens when:
- a link is opened from the ChatGPT or Claude desktop or mobile app, which may open it without a referrer;
- the user copies the URL from the answer and pastes it into the address bar;
- the AI page uses a strict referrer policy.
Treat the AI channel as a minimum, not the full number. For links you control (for example in docs that AI tools quote), adding ?utm_source=chatgpt doesn't help, because the AI copies whatever URL it finds. A steady rise in Direct traffic to deep pages like /docs/... is often a sign of AI traffic.
What GA4 can't show you: AI crawlers
Before an assistant can cite you, its crawlers have to read your pages: GPTBot and OAI-SearchBot for OpenAI, ClaudeBot and Claude-SearchBot for Anthropic, PerplexityBot for Perplexity. GA4 filters bots out completely, so you can't see whether they visit or which pages they read. Your server logs or a tool that classifies bots can. You can check what your robots.txt allows with our free AI Crawler Checker.
A simpler option
If you'd rather not maintain regexes, PageLens groups AI assistants into their own channel automatically, shows each one as a referrer with its landing pages, and reports AI crawlers and agents separately, so they never inflate visitor numbers. It's cookieless, so it also counts visitors who would decline a GA4 consent banner.