↑ All writing
Measurement & ROI

Setting up GA4 to catch AI referral traffic properly

Last updated October 14, 2026
Key takeaways
  • Google added a native "AI Assistant" channel to GA4's Default Channel Group in 2026, automatically tagging recognized traffic from assistants like ChatGPT and Gemini, no configuration required, but with real, documented gaps.
  • The native channel excludes Perplexity (still lands in Referral) and AI Overviews (counted as Organic Search), and it can't catch any session that arrives without a referrer at all.
  • A custom channel group, built with a Source-matches-regex rule and placed above Referral in your channel priority, catches more of what the native channel misses. GA4 uses RE2 regex, so literal dots need escaping.
  • Per Attrifast's disclosed analysis of ~41 million sessions, ChatGPT's web interface passes a referrer only about 28% of the time and its desktop app only about 6%, a real floor no channel-group configuration can close, because the underlying data was never sent.
  • Treat any AI-referred traffic number in GA4, native channel or custom group, as a floor: a real, often large, residual of true AI-referred traffic will keep landing as unlabeled Direct regardless of setup.

AI visibility ROI names the core problem: a meaningful share of real AI-referred traffic never gets recorded as AI-referred at all, because several AI platforms strip referrer headers before a click reaches your site. This piece is the actual GA4 setup: what Google's own native channel now catches automatically, the custom channel group that catches more, and the floor that stays uncatchable no matter how carefully either is configured.

What does GA4's native AI Assistant channel actually catch?

Google added a dedicated AI Assistant channel to GA4's Default Channel Group in 2026, the first time AI-driven traffic was separated from ordinary referral traffic without any manual setup. A qualifying session gets tagged with Channel Group = AI Assistant, Medium = ai-assistant, and Campaign = (ai-assistant), recognizing referrer patterns from assistants like ChatGPT and Gemini automatically.

That's a real improvement over having no dedicated channel at all, and it requires zero configuration to start benefiting from. It's also, on its own, incomplete: per multiple independent setup guides published after the rollout, the native channel does not recognize Perplexity traffic, which continues to land in the ordinary Referral channel, and it has no mechanism for catching a session that arrives with no referrer information at all, which, per the attribution research below, is a large share of the real total.

Why do you still need a custom channel group on top of it?

Because the native channel's gaps are specific and known: Perplexity lands in Referral instead of AI Assistant, and AI Overviews traffic gets counted as ordinary Organic Search rather than anything AI-specific. Both are real platforms driving real traffic, neither one caught by the automatic tagging. A custom channel group, built with a broader rule set and given priority over the default Referral channel, closes part of that gap.

What does the actual setup look like?

Build a custom channel group in GA4's channel-group settings with a Source matches regex condition, and place it above Referral in your channel-group priority order so AI-platform sessions get intercepted before falling through to the generic Referral bucket. GA4's regex engine is RE2, which means every literal dot in a domain needs to be escaped with a backslash or it will match more broadly than intended.

A starting pattern covering the platforms most likely to matter for a B2B or content-driven brand:

chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|claude\.ai|copilot\.microsoft\.com|you\.com|poe\.com|meta\.ai

Adjust the list to whichever platforms are actually relevant to your category and audience. A consumer-shopping brand's relevant list looks different from a B2B SaaS brand's. Whichever list you build, treat it the same way AI visibility ROI already frames the fix: a floor, not a ceiling, because a real residual of AI-referred sessions will keep landing as Direct no matter how the regex is written, for reasons the pattern itself can't reach.

Why will some real AI-referred traffic never show up correctly?

Because the referrer data a channel group depends on is frequently never sent in the first place. One disclosed analysis (Attrifast, covering roughly 41 million sessions across 200 Stripe-connected SMB sites through May 2026) found ChatGPT's web interface passing a referrer only about 28% of the time, and its desktop app passing one only about 6% of the time. A noreferrer link attribute, a mobile app opening links in an in-app browser, or a user copying a URL out of a chat response into a new tab all produce the same result: a real AI-influenced visit that arrives in GA4 as plain, unlabeled Direct traffic, indistinguishable from someone typing your URL in from memory.

No amount of channel-group tuning fixes this, because the fix would require information the request never carried. This is the same structural limitation AI visibility ROI already names. The practical response is layering in secondary heuristics (new-user share, specific landing pages, timing that lines up with a known AI-driven spike) as a directional signal on top of what the channel group catches directly, not treating the channel-group number as the complete picture.

What's the practical setup checklist?

StepWhat it catchesWhat it misses
GA4's native AI Assistant channel (2026)ChatGPT, Gemini, and other recognized assistants, automatically, no setupPerplexity (lands in Referral), AI Overviews (lands in Organic Search), any no-referrer session
Custom channel group with a broader regexPerplexity, Claude, Copilot, and any platform you add to the pattern, given priority over ReferralAny session where the referrer was stripped before it ever reached your site: per Attrifast, a majority of ChatGPT app traffic specifically
Secondary heuristics (new-user share, landing pages, timing)A directional read on the residual that neither of the above can label directlyPrecision: these are signals, not a definitive AI-referred label

Frequently asked questions

Does GA4 track AI referral traffic automatically now?

Partially. Google added a native AI Assistant channel to GA4's Default Channel Group in 2026, tagging recognized traffic from assistants like ChatGPT and Gemini as Medium = ai-assistant with no configuration required. It does not catch Perplexity, and it can't catch any session that arrives with no referrer at all, which per disclosed research is a large share of real AI-referred traffic.

Why do I still need a custom channel group if GA4 has a native AI Assistant channel?

Because the native channel has real, documented gaps. Perplexity traffic still lands in Referral rather than AI Assistant, and AI Overviews traffic is counted as Organic Search. A custom channel group with a broader regex pattern, placed above Referral in your channel rules, catches sources the native channel misses.

What does the actual custom channel group setup look like?

A custom channel group with a Source matches regex condition, positioned above Referral so AI sessions get intercepted first. GA4 uses RE2 regex syntax, so every literal dot needs escaping. A pattern covering the major assistants looks like: chatgpt.com|chat.openai.com|perplexity.ai|gemini.google.com|claude.ai|copilot.microsoft.com|you.com|poe.com|meta.ai, adjusted to whichever platforms are relevant to your category.

Why will some real AI-referred traffic never show up correctly no matter how I configure this?

Because the referrer information required to catch it is often never sent. One disclosed analysis (Attrifast, ~41 million sessions across 200 Stripe-connected SMB sites through May 2026) found ChatGPT's web interface passing a referrer only about 28% of the time, and its desktop app passing one only about 6% of the time. The rest arrives as unlabeled Direct traffic, indistinguishable in your analytics from someone typing your URL from memory. No channel-group configuration can label a session that never carried the data needed to identify it.


Sources referenced

  1. Google Analytics Help: What's new in Google Analytics (2026 AI Assistant channel release notes)
  2. Google Analytics Help: Custom channel groups (channel-group configuration reference)
  3. Attrifast: AI traffic revenue benchmark (2026, 200 Stripe-connected SMB sites, ~41.2M sessions through May 2026)

This piece is the literal GA4 setup behind the attribution-fix framework in AI visibility ROI. For the KPI this feeds (AI-referred traffic tracked as a trend, not an absolute number) see AI visibility KPIs. For which platforms this traffic is actually coming from, and how that mix is shifting, see which AI platforms actually drive traffic.

A good place to start

Your competitor is the answer
every AI gives your buyers.

A $497 Shortlist Scan tells you for certain in three days: real buying-stage prompts, run cold, three times each across ChatGPT, Perplexity, Gemini, and Claude.