How to Set Up AI Referral Tracking in GA4 (2026 Guide)
ChatGPT, Perplexity, and Gemini now send visitors to your site, but GA4 files most of those visits under Referral, Direct, or Unassigned. A custom channel group and a source regex recover the traffic Google's native channel misses.
Quick answer: AI referral tracking in GA4 starts with one fact: the default reports hide most AI traffic. Set up a custom channel group with a source regex for the AI domains, add a source and medium filter for day-to-day checks, and tag paid AI clicks with UTM values. That combination catches what Google's native AI Assistants channel misses.
TL;DR: Google's AI Assistants channel, added in May 2026, catches only part of your AI traffic. A custom channel group and a source regex recover the rest, including history the native channel never backfills.
Key takeaways
- Google added an AI Assistants channel to GA4 on May 13, 2026, according to Google's Analytics support documentation cited by several 2026 guides.
- According to SE Ranking's June 2026 study of 101,574 websites, AI platforms sent 0.32% of all traffic in early 2026, with ChatGPT taking 74.78% of those AI referrals.
- According to Usermaven's controlled test on November 24, 2026, ChatGPT links now strip the referrer and keep only a utm_source tag, so GA4 files those visits as Unassigned under its documented rules.
- According to Workshop Digital's 2026 audit of 181.6 million GA4 sessions, about 22% of ChatGPT sessions and 32% of Perplexity sessions landed in the "(not set)" medium.
- A custom channel group recovers history the native channel cannot, because the native channel is not retroactive and starts recording only from its rollout date.
What GA4 does with AI traffic by default
Every visit to your site arrives with a source and a medium, and GA4 sorts sessions into channels from those two labels. Clicks from AI assistants usually arrive with the medium referral, so for years they vanished into the Referral channel next to ordinary blog mentions. The traffic was real, but the label told you nothing about where it came from.
On May 13, 2026, Google added a dedicated AI Assistants channel to the default channel group. When the referrer matches Google's internal list of AI assistants, GA4 rewrites the medium to ai-assistant and files the session there. The documentation names ChatGPT, Gemini, Copilot, DeepSeek, and Grok as examples, while Perplexity and Claude sessions can still land in plain Referral, according to the Themeisle guide to AI referral tracking in GA4.
The native channel has three limits that matter for reporting. It does not backfill history, so your AI Assistants line starts flat in May 2026 even if ChatGPT sent visitors for years. Clicks from Google's own AI Overviews and AI Mode count as Organic Search, not AI Assistants. And when someone taps a link inside a mobile app, or copies a URL and pastes it into a browser, the referrer often disappears entirely, and those sessions show up as Direct.
How to measure ChatGPT referral traffic explains what the biggest AI source looks like once you separate it from the rest of Referral. ChatGPT dominates the channel, so it is the first source worth isolating in your own reports.
How to measure Perplexity referral traffic covers the second source, which behaves differently. Perplexity usually arrives with a clean perplexity.ai referrer, so it is easier to catch with a filter than ChatGPT is.
The three leaks that hide AI visits
The first leak is the stripped referrer. In a controlled test on November 24, 2026, Usermaven clicked links inside ChatGPT, Perplexity, and Google AI Mode, then ran each arrival through GA4's default channel rules. ChatGPT links used rel="noopener noreferrer" and added utm_source=chatgpt.com, but delivered no Referer header to the destination. Under GA4's documented rules, that visit matches no channel definition and lands in Unassigned.
The second leak is the tag outage. Starting around October 8, 2026, with the GPT-6 rollout, ChatGPT links stopped carrying the utm tag as well as the referrer, so visits arrived with no tag and no referrer and GA4 filed them under Direct.
According to Vector1's 2026 roundup, LLM Pulse measured a drop of about 46% in ChatGPT sessions from October 9 to 11, 2026, while total traffic held flat. The tags came back around October 15 and 16, according to the same roundup.
The third leak is the misfiled surface. Google AI Overviews and AI Mode are AI search, but GA4 files them as Organic Search because the referrer is google. Perplexity and Claude, which Google's list does not confirm, usually land in Referral. None of the three assistants Usermaven tested would reach GA4's AI Assistant channel under the documented rules, according to that November 2026 test.
| AI surface | What usually reaches GA4 | Default channel |
|---|---|---|
| ChatGPT on the web | utm_source tag, often no referrer | AI Assistants or Unassigned |
| Perplexity | perplexity.ai referrer | Referral, usually |
| Gemini on the web | gemini.google.com referrer | AI Assistants |
| Claude | claude.ai referrer | Referral, usually |
| Copilot | copilot.microsoft.com referrer | AI Assistants |
| Google AI Overviews and AI Mode | google referrer | Organic Search |
| Any AI mobile app | No referrer at all | Direct |
According to SE Ranking's June 2026 study of 101,574 websites, AI platforms sent 0.32% of all traffic in early 2026, up from 0.24% in 2025, and ChatGPT took 74.78% of those AI referrals. Gemini's referral traffic grew 231% year over year in the same study, and Claude's grew 320%.
The table shows why one channel line is never enough. Three different AI surfaces can land in three different channels, and one of them shares a channel with all of Google Search. A report that reads only the AI Assistants row understates the real volume, and a report that reads only Referral cannot tell AI clicks from blog links.
Build the custom channel group
A custom channel group is the fix that works on your full history, because GA4 applies custom channel rules to past sessions when you look back. Go to Admin, then Data display, then Channel groups, and create a new group. Add a channel named AI Search, set its condition to source matches regex, and paste an AI domain pattern covering the assistants that send you traffic.
The pattern most guides use is chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai, according to the Themeisle guide. That single pattern matches the referrer domains of the six largest AI surfaces, and you can extend it with more domains as new assistants appear. Test the pattern against live rows in your source report before you trust it, because GA4 uses RE2 regex syntax and it is case sensitive.
Then do the one step the whole setup depends on: drag the AI Search channel above Referral. GA4 evaluates channel rules top down, so if Referral sits first, it claims your AI sessions before your rule ever fires. The Hennessey Digital guide to tracking AI search traffic in GA4 makes the same point, and it is the most common reason a custom channel group shows zero sessions.
How to track ChatGPT citations covers the other half of the measurement job. Referral tracking counts the visits that arrive, while citation tracking counts the answers that name you, and the two numbers answer different questions.
How to measure AI visibility puts the referral numbers in context. A citation rate tells you how often engines name your brand, and the referral count tells you how often that naming turns into a visit.
Tag paid AI clicks and separate them from organic AI visits
Organic AI clicks and paid AI clicks need different UTM rules, because the tag is the only thing that survives when the referrer is stripped. ChatGPT automatically adds utm_source=chatgpt.com to the links in its answers, according to RankControl's 2026 benchmarks. That tag is what puts an organic ChatGPT visit in the right row when the referrer is missing.
Paid clicks need a medium that says paid. Tag them with utm_medium=cpc or utm_medium=paid, and keep the source as chatgpt.com, so the visit lands in your paid bucket instead of your organic AI bucket. Without the medium, a paid ChatGPT click and an organic ChatGPT citation look identical in GA4, and your cost per visit is impossible to calculate.
The tools disagree on what to call these visits, and the disagreement is worth knowing before you report. Usermaven's November 2026 test found that HubSpot reads the utm tag and files the same ChatGPT visit as AI Referrals, while GA4 files it as Unassigned. If your team reports from both tools, expect the numbers to differ and say why in the report.
How to report AI visibility results shows how to present these numbers without overstating them. State the method, the denominator, and what each tool can and cannot prove, and the client trusts the report even when the numbers are small.
The best AI visibility tracking tools covers the dedicated platforms that run prompts and log citations. They measure visibility, not traffic, so pair them with your GA4 referral setup rather than replacing it.
How to check the setup every week
A weekly check takes ten minutes and catches the problems that a monthly report misses. Open Reports, then Acquisition, then Traffic acquisition, switch the primary dimension to Session source, and add a filter for the AI domain pattern. Compare the AI total with the previous week, and look at the "(not set)" medium row at the same time, because a sudden rise there usually means a referrer change, not a traffic change.
Watch the engagement, not just the volume. According to Goodie's 2026 AI Search Traffic Report, AI sources averaged 58.5 seconds of engagement with a 67.8% engagement rate, against Google organic at 44.2 seconds and a 61.8% engagement rate. AI visitors arrive with context and intent, so a small AI total can still be worth more than a larger organic total.
Set an alert for a sudden drop in ChatGPT sessions with no matching drop in total traffic. That pattern is the signature of a tag or referrer incident like the October 2026 GPT-6 outage, and the fix is usually to wait for the platform to restore the tag, then re-check the numbers before reporting a decline.
Frequently Asked Questions
Does GA4 track AI referral traffic automatically?
Partly. Google added a native AI Assistants channel on May 13, 2026, and it catches ChatGPT, Gemini, and Claude when the visit carries a clean referrer. Perplexity and other assistants are not confirmed in it, and it does not backfill history, so you still need a custom channel group for a complete view.
Why do my ChatGPT visits show up as Unassigned?
ChatGPT links now strip the referrer and keep only a utm_source tag. According to Usermaven's controlled test on November 24, 2026, GA4 assigns the AI Assistant channel only when the referrer is on Google's list or the medium is exactly ai-assistant, so a visit with a source and no medium matches no rule.
What regex should I use for AI traffic in GA4?
Use chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai as a starting pattern, according to the Themeisle guide. Test it against your live source rows first, and add domains as new assistants start sending traffic.
How much traffic do AI assistants send?
It is still small and growing fast. According to SE Ranking's June 2026 study of 101,574 websites, AI platforms sent 0.32% of all traffic in early 2026, up from 0.24% in 2025 and 0.02% in 2024. Conductor measured 1.08% across 1,215 enterprise domains, according to Vector1's 2026 roundup.
Why did my ChatGPT traffic drop in October 2026?
A GPT-6 rollout incident stripped the utm tag from ChatGPT links starting around October 8, 2026. According to Vector1's roundup, LLM Pulse measured a drop of about 46% in ChatGPT sessions from October 9 to 11, 2026, while total traffic held flat. The tags came back around October 15 and 16.
Do AI Overviews count as AI referral traffic?
No, not in GA4. Clicks from Google AI Overviews and AI Mode arrive with a google referrer, so GA4 files them as Organic Search. Track them separately in Google Search Console, which reports AI Overview and AI Mode impressions by page.
Expert verdict
Best for: Sites that already get cited in AI answers and want to know whether those citations turn into visits, and agencies that need to report AI traffic to clients without overstating it.
Not for: Sites with no AI citations yet, where the referral total will be near zero and the time is better spent earning mentions first.
Pros: The custom channel group costs nothing, works on your full history, and catches assistants Google's list misses.
Cons: No setup recovers visits that arrive with no referrer and no tag, such as mobile app clicks and pasted URLs, so the true AI total is always larger than the measured one.
Bottom line
Set up the custom channel group first, then the source filter, then the UTM rules for paid clicks. Check the numbers weekly, watch the "(not set)" row, and report the method next to the number so a referrer change never looks like a traffic change.
Sources
The BacklinkPrice Team researches backlink prices, publisher sites and link building tools. We check prices and plans against each provider's own pages and date them, so you know how current the numbers are.
More from BacklinkPrice TeamRelated guides



