Key takeaways
- Create a custom channel group in GA4 with an AI assistants channel based on referral source.
- Place the AI channel above Referral, or AI visits will be counted as ordinary referrals.
- Some AI clicks arrive without a referrer and show as Direct, so GA4 under-counts AI traffic.
- Clicks from Google's AI Overviews are reported as Google organic, not separately.
- Combine GA4 data with monthly prompt tracking for a fuller picture.
To track AI traffic in GA4, create a custom channel group with a new channel, such as AI assistants, that matches sessions whose source contains chatgpt.com, perplexity.ai, gemini.google.com, copilot.microsoft.com or claude.ai, and place it above the Referral channel. GA4 will then report AI visits, engagement and conversions separately, although some AI traffic still arrives without a referrer.
On this page
Step by step: create an AI channel in GA4
- In GA4, go to Admin, then Data display, then Channel groups.
- Copy the default channel group, or create a new one, and name it, for example “Channels with AI”.
- Add a new channel called AI assistants.
- Set the condition: Source matches regex, using the expression below.
- Save, then reorder so AI assistants sits above Referral. GA4 assigns each session to the first channel it matches.
- In your reports, switch the primary dimension to your new channel group.
A starting regex, to update as new tools appear:
chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai
Which AI sources should you include?
| Tool | Source to match | Notes |
|---|---|---|
| ChatGPT | chatgpt.com, chat.openai.com | Links in ChatGPT search often carry utm_source=chatgpt.com |
| Perplexity | perplexity.ai | |
| Gemini | gemini.google.com | Separate from Google search |
| Microsoft Copilot | copilot.microsoft.com | |
| Claude | claude.ai | |
| Google AI Overviews and AI Mode | Not separable | Reported as google / organic |
What GA4 can't tell you
- Missing referrers. App users and some browsers don't pass a referrer, so these visits appear as Direct.
- AI Overviews. Clicks from Google's AI answers are mixed into Google organic traffic.
- Influence without a click. Someone may read an AI recommendation, then search your brand later.
- Consent. Visitors who decline analytics cookies may be modelled or missing.
Treat GA4 AI traffic as a floor, not a total, and watch the trend rather than the absolute number.
How to measure AI visibility more fully
Combine three measures: AI referral traffic in GA4, a fixed set of buyer prompts re-run each month across AI tools, and branded search volume in Search Console as a lagging signal. Our GEO guide covers the prompt-tracking method, and our analytics and tracking service sets this up for clients.
Frequently asked questions
Does GA4 track ChatGPT traffic automatically?
It records it, usually as a referral from chatgpt.com, but groups it with other referrals. A custom channel group separates it.
Why does some ChatGPT traffic show as Direct in GA4?
Some apps and browsers don't pass referrer information, so GA4 can't see where the visit came from.
Can I see traffic from Google AI Overviews in GA4?
Not separately. Clicks from AI Overviews and AI Mode are reported as Google organic traffic.
Will a new channel group change my historical data?
No. Custom channel groups apply to reporting, including historical data, without changing the underlying data.
How often should I update the AI regex?
Every few months, or whenever a new AI tool starts sending you traffic.
