To track AI traffic in GA4, start with the built-in AI Assistant channel Google added in May 2026, then add a custom channel group that also catches AI sources it misses. That gives leadership a number for visits and leads from ChatGPT, Perplexity, Gemini and similar tools. It will still be a floor, not the full picture: visits without a referrer land in Direct, and answers that name you without a click never reach GA4.
Key takeaways
- Since May 2026 GA4 sorts visits from recognized AI assistant referrers into a default AI Assistant channel, with no setup.
- Google AI Overviews and AI Mode clicks stay in Organic Search in GA4; Search Console has a separate generative AI performance report for them.
- GA4 regular expressions are full match by default, so wrap a source list in .* to catch subdomains and variants.
- Visits without a referrer land in Direct, and answers that name you without a click never reach GA4 at all.
- Report AI sessions and key events as a floor, next to a count of how often assistants mention you.
In this article
- Where AI visits land in GA4 by default: AI Assistant, Referral, Direct, Unassigned
- Build a custom channel group for AI assistants (regex to copy)
- Build the report: sessions, key events and landing pages from AI sources
- Check data quality first: consent, cross-domain, self-referrals
- What GA4 cannot see: app visits without a referrer, and answers with no click
- Pair traffic with visibility: mentions and citations
- Reporting AI traffic to leadership without overclaiming
- Frequently asked questions
Where AI visits land in GA4 by default: AI Assistant, Referral, Direct, Unassigned
Since May 13, 2026, GA4 assigns visits from recognized AI assistants to a new AI Assistant channel. According to Google’s What’s new in Analytics (opens in a new tab), the medium “ai-assistant” is set automatically when the referrer matches a recognized assistant, and the visit gets the campaign name “(ai-assistant)”. The default channel group definitions (opens in a new tab) name ChatGPT, Gemini, Deepseek, Copilot and Grok as examples.
That solves part of the problem. The rest still lands in four other places:
- Referral: AI sources that are not on Google’s list of recognized assistants.
- Direct: visits that arrive with no referrer at all.
- Unassigned: visits with a source tag but a medium no rule recognizes.
- Organic Search: Google’s own AI Overviews and AI Mode. Google states that both are included in Organic Search, not in AI Assistant.
So the first job is not to build anything. Open Reports, then Acquisition, then Traffic acquisition, set the primary dimension to “Session default channel group” and look for AI Assistant. Then switch to “Session source / medium” and search for chatgpt, perplexity, claude, gemini and copilot to see where each source actually sits.
Build a custom channel group for AI assistants (regex to copy)
A custom channel group lets you define AI traffic your way and apply it to past data. Google’s help on custom channel groups (opens in a new tab) gives the rules that matter: standard properties get 2 custom groups, each with up to 50 channels; groups apply to reports retroactively; and traffic lands in the first channel whose rules it matches, so order is everything.
Steps:
- Admin, then Data display, then Channel groups. Click “Create new channel group” to copy the default group.
- Name it “Channels with AI”.
- Add a channel called “AI assistants” with two condition groups joined by OR:
- Default channel group exactly matches
AI Assistant - Source matches regex:
- Default channel group exactly matches
.*(chatgpt|openai|perplexity|claude\.ai|gemini\.google|copilot\.microsoft|grok\.com|deepseek|meta\.ai|mistral\.ai).*
- Move “AI assistants” to the top of the list, above Referral and Organic Search.
- Save, then use the group as the primary dimension in Traffic acquisition.
Two details trip people up. GA4 regular expressions are full match by default (opens in a new tab), so a pattern without .* at both ends will miss “chat.openai.com” or “perplexity.ai/search”. And channel definitions are not case sensitive, so you do not need to list capitalized variants. Review the source list every quarter: new assistants appear, and your own data will show sources this regex does not know.
Build the report: sessions, key events and landing pages from AI sources
The useful report answers three questions: how many visits, which pages they land on, and whether they become leads. Build it once as an exploration so you can share it.
- Explore, then Free form.
- Dimensions: your custom channel group (session), Session source, Landing page.
- Metrics: Sessions, Engaged sessions, Key events, Session key event rate.
- Filter the channel group to “AI assistants”.
- Rows: Landing page. Columns: Session source.
What to look for: AI visitors can land deep in the site, on a pricing page, a comparison page or a specific service page, because the assistant linked to the page that answered the question. If those pages convert worse than your average, the landing experience is the fix, not the AI traffic.
From a real audit of a B2B company in a highly competitive market, anonymised
ChatGPT did not name the company in any of its 14 answers. Its top competitor appeared in 39 of 41.
The same check for you: 240 dated answers from ChatGPT, Perplexity, Claude and Grok, plus Google AI Overviews, you against up to 3 competitors.
See the sample report (PDF, 26 pages)See the Full Search Audit
Check data quality first: consent, cross-domain, self-referrals
An AI traffic report inherits every weakness of the property it sits on. Before you show the number to anyone, run three checks from our GA4 audit checklist.
- Consent. Visitors who decline analytics cookies may be missing entirely, depending on your consent mode setup. GA4 only models the gap above published thresholds (opens in a new tab), which many B2B sites do not reach.
- Cross-domain. If AI visitors book a demo on a separate scheduling domain without cross-domain measurement (opens in a new tab), the lead is credited to your own site as a referral and the AI source is lost.
- Self-referrals and redirects. A redirect that strips the referrer or URL parameters moves AI visits into Direct. Click a link to your site from an assistant yourself and check how the visit is recorded in Realtime.
If any of these is broken, fix it first. Otherwise you will report an AI trend that is really a tracking change.
What GA4 cannot see: app visits without a referrer, and answers with no click
GA4 only sees visits, and only visits that carry a referrer or a tag. Two large parts of AI influence fall outside that.
Visits without a referrer. When a link is opened from some desktop or mobile apps, or a buyer copies your name from an answer and types it into the browser, there is no referrer. GA4 records the visit as Direct, with no way to know an assistant started it.
Answers with no click. Often an assistant answers in the chat itself. A buyer asks which firms to consider, reads three names, and moves on. If you are named, nothing reaches GA4. If a competitor is named instead, nothing reaches GA4 either. That is the core of zero-click search: influence without a visit.
Google’s AI features are a partial exception. GA4 counts their clicks inside Organic Search, but since 31 August 2026 Search Console has a generative AI performance report (opens in a new tab) with clicks, impressions and click-through rate from AI Overviews and AI Mode.
And GA4 cannot show which prompt led to a visit. The referrer tells you the assistant, not the question.
Pair traffic with visibility: mentions and citations
Because GA4 sees only the clicks, pair it with a direct measure of what assistants say. That means asking the questions your buyers ask, several times, and counting how often you are mentioned, which competitors are named, and which of your URLs are cited. Our guide on how to measure AI search visibility explains the method.
The two numbers explain each other. In a real audit of a B2B company in a highly competitive market, anonymised, ChatGPT did not name the company in any of its 14 answers, while across 41 answers from four assistants the top competitor appeared in 39 and the company in 19. A GA4 report would show only the few visits from the answers that named the company, and nothing about the answers that did not. The anonymised sample report shows how those counts are recorded.
Reporting AI traffic to leadership without overclaiming
Leadership wants one number. Give them three, each labelled for what it is.
| Number | Source | What it means |
|---|---|---|
| AI assistant sessions and key events | GA4, custom channel group | A floor: visits we can attribute, not all AI influence |
| “How did you hear about us?” answers naming an assistant | Form field or CRM | Self-reported influence, including visits that landed in Direct |
| Mentions in buyer questions vs competitors | Repeated, dated AI answers | Whether assistants name you at all |
Three rules keep the report honest. Do not call AI sessions “AI revenue” unless the CRM confirms the leads. Do not compare months across a tracking change. And show the trend in mentions next to the trend in visits: a jump in visits with flat mentions is worth checking for a tracking change before you call it a visibility gain.
If you want both halves measured at once, the Full Search Audit records 240 dated answers from ChatGPT, Perplexity, Claude and Grok for 20 buyer questions, against up to 3 competitors, and reviews your Google Ads and GA4 setup from exports, with no account access. How it works shows the method, and pricing starts from $490€429 excl. VAT.
Related: What the Full Search Audit covers
Frequently asked questions
Does ChatGPT send referral data to GA4?
Yes, in most cases: Google’s channel definitions name ChatGPT among the AI assistants GA4 recognizes by their referrer. Since May 2026, those visits go to the AI Assistant channel automatically. Visits without a referrer still land in Direct.
Why does ChatGPT traffic show as Direct?
ChatGPT traffic shows as Direct when the visit arrives without a referrer, for example from some apps, or when the buyer types your address after reading an answer. GA4 cannot recover the source afterwards. A “How did you hear about us?” field catches part of it.
Can GA4 show which prompt led to a visit?
No, GA4 receives the referrer and any URL tags, not the question the buyer asked the assistant. To learn which questions name you, you have to ask those questions yourself, repeatedly, and record the answers.
How do I track clicks from Google AI Overviews?
GA4 counts AI Overviews and AI Mode clicks as Organic Search, with no separate channel. Use the generative AI performance report in Search Console, which shows clicks, impressions and click-through rate from Google’s AI features for your pages.