Setting Up AI Referral Tracking in GA4: The Step-by-Step Guide

GA4 files most ChatGPT and Perplexity visits under Direct or Referral. The step-by-step AI referral tracking setup: native channel, regex, blind spots.

RankControl9 min read
Setting Up AI Referral Tracking in GA4: The Step-by-Step Guide

Your site already gets AI referral traffic. The problem is that GA4 has been filing most of it under Direct and Referral, next to the newsletter clicks and the forgotten bookmarks. Setting up AI referral tracking in GA4 got easier on May 13, 2026, when Google shipped a native AI Assistant channel, and it is still not a solved problem: the native channel covers three platforms, the referrer survives the trip 30 to 65% of the time by practitioner estimates, and Google's own AI surfaces are invisible in the data. This guide walks through the full setup, the gotchas that break it, and the four blind spots no GA4 configuration can fix.

What GA4 Sees When ChatGPT Sends You a Visitor

One platform, three disguises. The same ChatGPT recommendation can land in your reports as chatgpt.com / referral, as chatgpt.com / organic, or as direct / (none), and if you count only one of them you undercount by roughly half.

The split comes from how ChatGPT decorates its outbound links. Seer Interactive's ongoing analysis documents the pattern: citations backing factual answers usually get utm_source=chatgpt.com appended, links a user explicitly asked for often ship bare, and anything touching medical, legal, or financial territory gets its parameters stripped for privacy. Sessions from the mobile app or in-app browser lose the referrer entirely and arrive as direct.

Funny enough, those auto-appended UTMs have a side effect: Google sometimes crawls and indexes the tagged URLs, so SEOs keep finding ?utm_source=chatgpt.com pages sitting in the SERPs. Worth a canonical-tag check on your end.

Scale check before you invest the afternoon: Semrush measured ChatGPT at 85.79% of AI platform referral traffic, projects AI search visitors to pass traditional search by 2028, and notes flatly that a chunk of AI clicks lands in direct because referrers don't always survive. Whatever GA4 shows you is the visible slice.

Step 1: Find the Native AI Assistant Channel

Start with the part that requires zero setup. Since mid-May 2026, GA4 stamps recognized AI chatbot referrals with session medium ai-assistant and campaign (ai-assistant), and surfaces them as an AI Assistant channel in the default channel group. Open Reports > Acquisition > Traffic acquisition and look for it in the channel list.

Three caveats before you trust it:

  • Coverage is three platforms. Google names ChatGPT, Gemini, and Claude. Perplexity and Copilot are not confirmed and, per practitioner reports, still land in Referral.
  • It is forward-only. Nothing before your property's rollout date gets reclassified, and the rollout itself was staggered across late May and early June, which produced weeks of "is it live for anyone else?" confusion.
  • It is a floor, not a total. The channel only fires when a referrer survives.

The most-cited field report on how this behaves one month in came from an analyst tracking it across multiple properties:

View this discussion on Reddit →

His numbers match the consensus: estimates of referrer-less AI traffic run from 35 to 70%, the native channel misses everything outside the big three, and one subtle trap hides in plain sight. If you use custom channel groups, the native AI Assistant channel does not appear in them automatically. You have to add it yourself, which brings us to step 2.

RANKCONTROL

Know exactly what AI says about your competitors.

RankControl's Recon Agent monitors competitor citations across ChatGPT, Perplexity, Claude, and Gemini. See where they show up and you don't.

See how it works

Step 2: Build the Custom Channel Group

The custom group catches what the native channel misses. Click path, verified against Analytics Mania's current tutorial:

  1. Admin (gear icon) > Data display > Channel groups
  2. Create new channel group, name it something like "Channels + AI"
  3. Add new channel, name it "AI Traffic"
  4. Set the condition: Session source > matches regex > paste the pattern below
  5. Save the channel, then click Reorder and drag AI Traffic above Referral
  6. Save group, then wait for fresh sessions to flow

The starter regex:

chatgpt.*|.*openai.*|perplexity.*|claude.*|anthropic.*|gemini.google.*|copilot.*|meta\.ai|mistral.*|deepseek.*|grok.*|x\.ai|you\.com|poe\.com|phind.*|pi\.ai|duck\.ai

Two gotchas break this setup constantly, and both come straight from the support threads:

  • GA4 regex is full-match. A pattern like chatgpt.com|perplexity.ai silently fails because GA4 matches the entire source string, not a substring. Every domain needs a wildcard (chatgpt.*), or skip regex entirely and stack individual "session source contains" conditions. Less elegant, easier to maintain.
  • Order decides everything. GA4 applies channel rules top-down. If your AI channel sits below Referral, Referral eats every AI session before your rule ever runs. Analysts in r/GoogleAnalytics point to this as the single most common reason a new AI channel reports zero.

To view the results: Reports > Acquisition > Traffic acquisition, switch the primary dimension to Session custom channel group, and pick your new group.

Step 3: Run an Exploration on Landing Pages

Channel totals tell you AI traffic exists. Landing pages tell you what the engines are actually citing. Build a blank Exploration with dimension Session source, metric Sessions, add Landing page as a row, and filter session source against the same regex.

Two patterns show up almost every time. AI-referred sessions skew hard toward comparison pages, pricing pages, and anything with a clean citable number near the top. And the traffic converts out of proportion to its volume: across the practitioner data we track, AI-referred leads convert at multiples of organic, and one Neil Patel analysis puts AI referrals at 0.58% of visits but 5.09% of closed sales.

That asymmetry is why the analytics crowd has stopped asking whether the volume matters:

View this discussion on Reddit →

The thread's framing is the right one: organic search is splitting in two, with Google handling navigation and high-intent lookups while assistants absorb research and comparison. Low session counts, disproportionate pipeline. We published the full numbers case in our AI referral traffic breakdown.

RANKCONTROL

15+ content types. Published on your domain. Matched to your brand.

Guides, comparisons, listicles, case studies, and more. RankControl generates content that gets cited by ChatGPT, Claude, Perplexity, and more.

Start free

Troubleshooting: Why You See Zero

Wait, I should probably mention the boring failure modes before you rebuild anything. When the AI channel shows nothing, check these in order:

  1. Rollout lag. Properties received the native channel anywhere from May 27 to well into June. If it's absent, that may still be Google, not you.
  2. Anchored regex. Test your pattern against a literal source value like chatgpt.com. No wildcard, no match.
  3. Channel order. AI channel above Referral. Always.
  4. Custom group omission. Native AI Assistant classification does not propagate into pre-existing custom channel groups until you add it.
  5. Phantom "(not set)". Landing page "(not set)" rows usually come from session timeouts, not broken UTMs. Don't chase them.

Run Native and Custom Side by Side

Keep both setups and make them argue. The analysts getting the most out of this data treat the native AI Assistant channel and the custom group as two witnesses to the same event: the native channel is Google's conservative count of the big three, the custom group adds Perplexity, Copilot, and the long tail. The spread between them is your measurement error, and watching it month over month tells you whether new assistants are slipping through your regex.

Calibrate your expectations on volume while you're at it. One practitioner tracking GA4 across 168 agency client domains found the AI traffic label live on 96 of them, averaging 1,000 to 2,000 sessions in a two-week window, small change next to their daily Google clicks. The value isn't in the session count. It's in the close rate.

Then add the one instrument GA4 can't provide: a "where did you first hear about us?" field on your signup flow and demo form. Several founders in the threads above call it their most reliable AI attribution signal, because it catches the buyers whose referrer died in a mobile app three days before they showed up as direct.

The Four Blind Spots No Setup Can Fix

Honestly, this is the section that matters most, because the best possible GA4 configuration still measures a minority of AI's influence on your pipeline.

  1. Stripped referrers. Mobile apps, in-app browsers, copy-pasted links. That 35 to 70% referrer-less range means your AI channel is a sampling exercise.
  2. Google AI Mode and AI Overviews. Clicks from both arrive as plain google / organic. The fastest-growing AI search surface is indistinguishable from your SEO traffic inside GA4, though its footprint does show up in Search Console's AI Mode data.
  3. The delayed conversion. A buyer sees you recommended, closes the tab, and Googles your brand name three days later. Similarweb data shared by Aleyda Solis found brands recommended by ChatGPT were 2.5x more likely to get a visit within the following week, and those visits land as branded search or direct.
  4. The zero-click mention. When an assistant answers with your content and nobody clicks, GA4 records nothing. You were the answer; the report says you didn't exist.

Add up the honest workload here: an afternoon for the channel group, an hour a month maintaining the regex as new assistants launch, plus a recurring argument about what the direct-traffic bump really means. And the output still starts at the click. GA4 tells you who clicked. It cannot tell you who got cited, in which answers, against which competitors, which is the part that decides whether the click ever happens. That upstream layer is exactly what we built AI visibility tracking for, and pairing it with lead capture that tags AI-influenced sources closes the loop from citation to signed deal. Run the GA4 setup in this guide either way. Just decide whether you want to maintain the measurement stack by hand every month, or let our agents watch both layers while you read the report.

Your competitors are getting cited by AI. You're not.

Every day without citation tracking is a day your competitors pull ahead in ChatGPT, Perplexity, and Claude.

See what you're missing

Set the channel group up this week, let it collect for a month, and compare it against the native channel side by side. The gap between the two numbers, and the conversion rate hiding inside either one, will tell you more about where your 2027 pipeline comes from than another quarter of rank tracking.

Frequently Asked Questions

Yes, partially. Since May 13, 2026, GA4 assigns recognized AI chatbot referrals a native AI Assistant channel with session medium ai-assistant. Google confirms coverage for ChatGPT, Gemini, and Claude, but Perplexity and Copilot are not confirmed, and the data is forward-only from your property's rollout date.

Because the referrer got stripped. Visits from AI mobile apps, in-app browsers, and copy-pasted links arrive with no referrer header, so GA4 files them under direct. Practitioners estimate 35 to 70% of AI-driven sessions arrive referrer-less, which makes any GA4 count a floor, not a total.

A pattern like chatgpt.*|perplexity.*|claude.*|gemini.google.*|copilot.* as a 'source matches regex' condition. GA4 regex is full-match by default, so chatgpt.com alone silently fails. If regex isn't your thing, stack individual 'session source contains' conditions instead.

The usual culprits, in order: your AI channel sits below Referral in the channel priority list (GA4 applies the first matching rule), your regex is anchored and doesn't full-match, or the native channel rolled out to your property late. Reorder the AI channel to the top and test with chatgpt.* style patterns.

No. Clicks from AI Overviews and AI Mode carry a standard Google referrer, so they land in google/organic, indistinguishable from classic search clicks. Measuring your presence in those surfaces requires tracking citations upstream of the click.

RANKCONTROL

Stop losing leads to competitors in AI search

Content that ranks on Google and gets cited by AI search engines. Published on your domain. Leads captured automatically.

Related Articles

THE SIGNAL

Weekly insights on AI and Google search strategy. No fluff.

Join 500+ marketers getting the latest on AI citations, Google rankings, and lead generation strategy.

No spam. Unsubscribe anytime.