SEO.co
// blog

Finding AI Search Traffic Hiding in GA4 Direct and Unassigned

Learn how to recover ChatGPT, Perplexity, Claude, and Gemini referral traffic misclassified as Direct or Unassigned in GA4 using regex, segments, and custom channels.

Samuel EdwardsSamuel Edwards
Finding AI Search Traffic Hiding in GA4 Direct and Unassigned

Between October 8 and 15, 2026, ChatGPT referrals dropped 46%, and not because the model slowed. GPT-6 had shipped a noopener attribute that stripped referrers and UTMs from every outbound link, and for eight days the whole channel disappeared into GA4 Direct.

That incident is a compressed version of the attribution problem GEO teams face every month. AI assistants route users through app shells, mobile browsers, and privacy-stripping link wrappers, and GA4's default channel logic files those sessions as Direct, Referral, or Unassigned without flagging them as AI at all.

The fix is layered: a hostname allowlist, a custom channel group, UTM hygiene on outbound surfaces, and a BigQuery reconciliation pass that recovers what the user interface misses.

Why GA4 Hides AI Referrals

Google added a native AI Assistant channel in May 2026, but the launch named only three sources, ChatGPT, Gemini, and Claude, and left the full recognized hostname list undocumented. Perplexity, Grok, DeepSeek, and Copilot moved into the channel later with no public changelog. If your reporting leans on the native bucket, auditing what it actually captures is close to impossible.

The deeper problem is referrer leakage. Many AI clients fire outbound requests with a restrictive Referrer-Policy such as no-referrer or same-origin, so the receiving site sees no Referer header at all. GA4 then classifies the visit by the only signal it has left, the UTM string. No UTM, no referrer, and the session is Direct. Mobile apps strip even more. Desktop web traffic from the same assistant can land in Referral; a tap on the same answer inside an iOS app lands in Direct; the Atlas browser lands somewhere else again.

Build the AI Hostname Allowlist

Start by writing the regex you want GA4 and BigQuery to agree on. The AI engines sending measurable volume in late 2026 are a short list, and each has one or two canonical referrer hostnames:

  • ChatGPT: chatgpt.com, chat.openai.com
  • Gemini: gemini.google.com
  • Claude: claude.ai
  • Perplexity: perplexity.ai, www.perplexity.ai
  • Copilot: copilot.microsoft.com
  • Grok: grok.com
  • DeepSeek: deepseek.com, chat.deepseek.com

A single expression covers them: ^(chatgpt\.com|chat\.openai\.com|gemini\.google\.com|claude\.ai|.*\.perplexity\.ai|perplexity\.ai|copilot\.microsoft\.com|grok\.com|.*\.deepseek\.com)$. Keep it in version control alongside your analytics config, not in a Drive document. New engines and subdomains show up every quarter, and a disciplined GEO practice treats this regex as a living artifact on the same cadence as the robots.txt and sitemap allowlist.

AI Engine Share vs. Year-over-Year Growth, 2026
AI Engine Share vs. Year-over-Year Growth, 2026ChatGPT: 74.8; Gemini: 11.6; Perplexity: 7.2; Copilot: 3.5; Claude: 2.6Share of AI referral traffic (%) →YoY growth (indexed, 100 = 320%) →123451ChatGPT2Gemini3Perplexity4Copilot5Claude
X = share of AI referral traffic (%); Y = YoY growth indexed to 100 (Claude's 320% = 100). Engines top-right deserve first slots in the allowlist. Source: SE Ranking, 2026

Wire a Custom Channel Group

GA4's native channels are read-only, but Custom Channel Groups let you overlay your own definitions on reports that support them. In Admin, open Data display, then Channel groups, then New channel group. Call it AI Search and add rules for each engine using source matches regex against the hostname list above, keeping the engine names as individual sub-channels.

Two things to know before you ship it. First, custom channel groups apply from the point of creation forward, so historical sessions keep their old labels until you backfill in BigQuery. Second, the group is report-scope, not property-scope: it shows up in the dimension picker of Explore reports and the acquisition overview, but not in attribution modeling. If you want it in dashboards built on top of GA4 data, such as Adobe Analytics or a warehouse view, you have to recreate the logic there as well.

Share of AI Referral Traffic by Engine, 2026
Share of AI Referral Traffic by Engine, 2026ChatGPT: 74.8%; Gemini: 11.6%; Perplexity: 7.2%; Copilot: 3.5%; Claude: 2.6%1ChatGPT74.8%2Gemini11.6%3Perplexity7.2%4Copilot3.5%5Claude2.6%
SE Ranking's 101,574-site panel, January through April 2026. ChatGPT still routes the overwhelming majority of AI referrals, but anything below the top three is small enough to vanish inside Direct. Source: SE Ranking, 2026

Fix UTMs on Your Outbound AI Mentions

Every link you publish on your own site, in syndicated content, and inside third-party answer boxes should carry a utm_source an analytics system can key on. OpenAI's own convention helps here: OpenAI began appending utm_source=chatgpt.com in June 2026 as a workaround for the referrer-stripping problem the October incident later exposed. Adopt the same pattern for the outbound links in your prompts, llms.txt entries, and any content you syndicate to answer-engine partners.

Three rules keep the UTM layer sane:

  • Standardize utm_medium=ai_assistant across every AI surface. Downstream channel logic depends on a predictable medium string.
  • Reserve utm_source for the engine name in lowercase (chatgpt, gemini, claude, perplexity, copilot, grok, deepseek). Mixed case breaks regex matches.
  • Use utm_campaign to label the surface, not the campaign. ai-overview, chat-citation, deep-research, and sidebar-answer are the four that matter today.

The payoff is that any session with your UTM on it bypasses the referrer problem, and the sessions missing a UTM are the ones you reconcile in BigQuery.

Reconcile Direct and Unassigned in BigQuery

Enable the GA4 BigQuery export if you have not already. The event-level table (events_YYYYMMDD) carries two fields the GA4 UI does not surface cleanly: collected_traffic_source.manual_source and page_location. A SELECT that joins on both recovers AI sessions the native channel missed.

A working pattern:

  1. Filter events_YYYYMMDD to session_start events in Direct and Unassigned.
  2. Extract the Referer from collected_traffic_source.manual_source and the page_location query string.
  3. Match both against the hostname regex and the lowercase utm_source whitelist.
  4. Re-tag matching sessions with a custom channel and write them to a materialized view your dashboards query, not the raw export.

A material share of AI sessions misclassified as Direct resurface here, because the BigQuery export preserves the raw signals before channel attribution runs against them. The method in Claude citation statistics uses this same join to tie a specific AI answer back to its session impact.

Cross-check Against Search Console

Search Console's generative AI performance reports, which went live June 3, 2026, give you a second signal independent of GA4. They surface impressions, pages, countries, and devices for AI Overviews and AI Mode, but do not surface click counts or CTR for those AI surfaces. You can see which pages the AI surfaces picked up; you cannot see whether users clicked through.

That asymmetry is useful. If a page shows strong AI Mode impressions in Search Console but no AI referrals in your reconciled GA4 data, the absence of referrals alongside strong impressions suggests the AI surface is answering in place rather than sending traffic. If impressions are flat but reconciled referrals are up, the gain is probably Gemini improving its link rendering, not your content ranking better. The split documented in AEO and GEO versus traditional SEO leans on exactly this divergence: visibility and traffic are no longer the same metric.

The Referrer Layer Will Keep Shifting

The one piece of this stack certain to change again is the referrer itself. The GPT-6 noopener incident reversed in a week only because the attribution loss was public enough to force it. Browser vendors are moving toward stricter default Referrer-Policy values, and app clients have no obligation to carry tracking signals at all. Over the next twelve months, the share of AI sessions arriving naked, with no referrer, no UTM, and no App ID, will likely rise, not fall.

That means the hostname allowlist and the custom channel group are stopgaps. The durable layer is the UTM one, because you own it. Instrument every outbound surface you publish, standardize the medium and source strings, and store the regex in code. When the next referrer change lands, your reports will dip for a day instead of a quarter.

Samuel Edwards
// written by
Samuel Edwards
In his 15+ years as a digital marketer, Sam has worked with countless small businesses and enterprise Fortune 500 companies and organizations including NASDAQ OMX, eBay, Duncan Hines, Drew Barrymore, Washington, DC based law firm Price Benowitz LLP and human rights organization Amnesty International. As a technical SEO strategist, Sam leads all paid and organic operations teams for client SEO services, link building services and white label SEO partnerships. He is a recurring speaker at the Search Marketing Expo conference series and a TEDx Talker. Today he works directly with high-end clients across all verticals to maximize on and off-site SEO ROI through content marketing and link building. Connect with Sam on Linkedin.