How to Track AI Search Traffic in GA4 (2026 Guide)
ChatGPT, Perplexity and Gemini now send buyers to your site — but most of them hide inside "Direct." Here is the copy-paste setup that makes AI traffic visible.

If AI-referred visitors convert up to 4.4x better than organic search and you can't see them, you're optimizing blind.
Between a third and two-thirds of the traffic ChatGPT and Perplexity send to your website is invisible in Google Analytics. It lands in the "Direct" bucket next to bookmarks and email clicks, and unless you fix it, you will underinvest in the fastest-growing, highest-converting channel of the decade.
This guide shows you exactly how to track AI search traffic in GA4 — the native "AI Assistant" channel Google shipped in May 2026, the custom channel group that catches everything Google misses, a copy-paste regex, and a reporting view you can build in ten minutes. No jargon, no fluff, just the setup we use ourselves.
The short answer: Turn on GA4's native AI Assistant channel, then build a custom channel group with a source-matching regex (below) and rank it above Referral in the evaluation order. Together they recover the AI sessions that otherwise misclassify as Direct.

Why AI traffic matters (and why it hides)
AI search is no longer a rounding error. AI-referred sessions grew several hundred percent through 2025, ChatGPT alone processes roughly 2.5 billion prompts a day, and AI tools captured an estimated 12–15% of the global search market by the end of 2025. More importantly for revenue: study after study finds AI-referred visitors convert far better than plain organic search — ChatGPT ecommerce traffic converted 31% higher than non-branded organic in one large dataset, and broader analyses put AI referral conversion anywhere from 4.4x to 23x organic, with 14% higher average order values and 68% more time on site.
So why can't you see it? Three failure modes:
- Stripped referrers. ChatGPT's mobile app and Perplexity's in-app browser omit the referrer header. GA4 has nothing to read, so the session falls into Direct.
- Unrecognized domains. Before May 2026, GA4's default channel definitions simply didn't include AI platform domains.
- Inconsistent UTMs. Only ChatGPT reliably appends
utm_source=chatgpt.com. Perplexity, Gemini, Claude, and most others add nothing.
The result: between 35% and 70% of AI sessions arrive with no referrer and get miscounted. If you report on channels without fixing this, you will systematically undervalue the work you're doing to get cited by ChatGPT and other answer engines.
Step 1: Turn on GA4's native AI Assistant channel
As of May 2026, GA4 automatically assigns the medium ai-assistant and groups traffic from recognized assistants — ChatGPT, Gemini, and Claude — under a default "AI Assistant" channel in your standard reports. There's nothing to configure; just confirm it's populating under Reports → Acquisition → Traffic acquisition and switch the primary dimension to Session default channel group.
The catch: the native channel only captures sessions that do carry a clean referrer. It's a floor, not the whole picture. That's what Step 2 fixes.
Step 2: Build a custom AI channel group (5–10 minutes)
A custom channel group lets you define your own matching rules and — critically — control their priority order.
- Go to Admin → Data display → Channel groups.
- Click Create new channel group and name it something like
AI Search (Custom)so it's distinct from the native channel. - Add a new channel named AI Search.
- Set the rule: Source matches regex and paste the pattern below.
- Drag the AI Search channel above Referral in the evaluation order. GA4 applies rules top-down — if Referral fires first, your AI traffic stays misclassified.
- Save and apply.
The copy-paste regex
Use this source-matching pattern. It covers over 99% of measurable AI referral traffic as of mid-2026:
chatgpt.com|chat.openai.com|openai.com|perplexity.ai|claude.ai|gemini.google.com|bard.google.com|copilot.microsoft.com|bing.com/chat|deepseek.com|grok.com|meta.ai|you.com
Custom channel groups are not retroactive — they only classify data from the day you create them forward. Set this up now, not the week before a board meeting.
Step 3: Reclaim the "Direct" dark traffic with UTMs
The regex catches sessions that carry a referrer. To recover the 35–70% that don't, tag the links you control. Anywhere you can influence how a URL is shared into an AI tool — your llms.txt, structured data, syndicated content, docs, or outreach — append explicit parameters:
?utm_source=chatgpt&utm_medium=ai-assistant
Then add a second rule to your custom channel — Source/medium matches regex for ai-assistant — so hand-tagged links roll up into the same AI Search bucket. You won't tag everything, but every link you do tag is a session rescued from Direct. For the platforms you can't tag, watch bot user-agents (like OpenAI's OAI-SearchBot) in your server logs as a leading indicator of what AI engines are crawling.
Step 4: Build the report you'll actually check
Create an Exploration (free-form) so you can see AI traffic and, more importantly, whether it converts.
| Setting | Value |
|---|---|
| Dimensions | Session source, Session medium, Landing page, Date |
| Metrics | Sessions, Engaged sessions, Engagement rate, Key events (conversions), Avg. engagement time |
| Filter | `Session source matches regex: chatgpt |
The OR matters: the source regex catches referred sessions, the medium clause catches your UTM-tagged ones, and together they catch sessions either method alone would miss. Add a 28-day vs. previous 28-day comparison so you can see AI traffic move after you publish or update content.
Tips and reminders
- Segment by landing page. The pages AI engines cite are rarely your homepage — usually a specific how-to or comparison. That tells you what content is earning citations.
- Watch conversions, not just sessions. AI traffic's whole story is quality. If AI sessions convert at 2–4x your organic rate, that reframes the entire ROI conversation. Feed it into how you measure AI marketing ROI.
- Refresh the regex quarterly. New assistants launch constantly and existing ones change how they pass referrers. A stale pattern silently undercounts.
- Don't double-count. If you use both the native channel and a custom group, report from one at a time so the same session isn't tallied twice.
- Tie it back to GEO. Tracking is the scoreboard; earning citations is the game. Pair this with a real generative engine optimization strategy.
The bigger point: measure the channel you're being told to invest in
Every marketing team in 2026 is under pressure to "show up in AI." Almost none can tell you whether it's working, because their analytics quietly file the wins under Direct. Fixing that is a ten-minute job with an outsized payoff: it turns AI search from an act of faith into a measurable, optimizable channel — and it protects your budget when someone asks for proof.
This is exactly the kind of always-on measurement an autonomous AI marketing platform like ivon is built to run continuously, so your team can act on AI visibility instead of guessing at it.
Frequently asked questions
How do I track ChatGPT traffic in Google Analytics 4?
ChatGPT is the easiest AI platform to track because it uses consistent referrer domains (chatgpt.com, chat.openai.com) and sometimes appends utm_source=chatgpt.com. In GA4, build a custom channel group with a source-matching regex for those domains, place it above Referral in the evaluation order, and cross-check with a UTM filter in an Exploration to catch sessions each method misses.
Why does AI traffic show up as Direct in GA4?
Because many AI tools strip the referrer header. ChatGPT's mobile app and Perplexity's in-app browser send visitors with no referrer data, so GA4 has nothing to attribute the session to and defaults it to Direct. Between 35% and 70% of AI sessions arrive this way. UTM tagging the links you control and using a custom channel group are the two fixes.
Does GA4 track AI traffic automatically?
Partly. Since May 2026, GA4 has a native "AI Assistant" channel that groups traffic from ChatGPT, Gemini, and Claude using the ai-assistant medium. But it only captures sessions with an intact referrer, so it misses a large share of AI traffic. A custom channel group plus UTM tagging is still required for a complete picture.
Is AI referral traffic worth tracking?
Yes — arguably more than organic. AI-referred visitors consistently convert better than non-branded organic search (31% higher in one large ecommerce dataset, and 4.4x or more in broader studies), spend more time on site, and carry higher average order values. If you can't see the channel, you can't prove its ROI or optimize for it.
Sources
- AI Overviews optimization guide — Search Engine Land
- How to Track AI Search Traffic in GA4 — AuthorityTech
- ChatGPT traffic converts 31% higher than non-branded organic — Search Engine Land
- AI Referral Traffic Converts 4.4x Higher Than Organic — Emarketed
- AI-referred shoppers convert better and spend more — Shopify
- AI Search Referral Traffic Statistics 2026 — Stacc