Guide
How to Track ChatGPT and AI Referral Traffic in GA4
The short answer
How do I track ChatGPT and AI referral traffic in GA4?
GA4 has no built-in channel for AI assistants: visits from chatgpt.com or perplexity.ai land in generic Referral traffic. Build a custom channel group that matches 6 referrer hostnames — chatgpt.com, chat.openai.com, perplexity.ai, claude.ai, gemini.google.com, and copilot.microsoft.com — and GA4 reports AI-assistant sessions as their own channel. We run exactly this channel group in production on our insurance build.
GA4 will not tell you what ChatGPT sends you unless you teach it to. Out of the box, a visitor who clicks through from chatgpt.com or perplexity.ai is filed under generic Referral traffic, mixed in with links from forums and news sites. The fix is a custom channel group — a reporting-layer change that takes about 20 minutes and touches no code on your site.
We built this channel on our own production site first, then wrote it up. The steps below are the setup we run, and the observations at the end are from our own build, marked [our data].
Why doesn't GA4 show ChatGPT traffic as its own channel?
GA4's default channel group has no definition for AI assistants, so their sessions match the generic Referral rule and disappear into it. The referrer arrives like any other website referrer — chatgpt.com is just a hostname to GA4 — and nothing in the default logic treats it differently.
This matters because AI-assistant sessions behave differently from forum or news referrals. The visitor already read an answer about their question inside the assistant; the click-through is a deliberate step past that answer. Blending those sessions into Referral hides the one channel most teams are currently asked to report on.
The fix is a custom channel group. It relabels sessions at the reporting layer, leaves your raw source and medium data untouched, and works in the standard Traffic acquisition report.
Which referrer hostnames identify AI assistants?
In production we match 6 hostnames, which cover the assistants that appear in our referral logs [our data]:
| Hostname | Assistant | Notes |
|---|---|---|
| chatgpt.com | ChatGPT | Primary ChatGPT domain |
| chat.openai.com | ChatGPT | Legacy domain, still appears |
| perplexity.ai | Perplexity | Includes www subdomain traffic |
| claude.ai | Claude | Anthropic's assistant |
| gemini.google.com | Gemini | Distinct from google.com organic |
| copilot.microsoft.com | Copilot | Distinct from bing.com organic |
The regex we deploy, as one line:
chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com
Semrush's published GA4 method takes the same approach with a wider net — their pattern adds you.com, search.brave.com, and bard.google.com (Semrush, 2025). The wider list costs nothing in accuracy; we run the shorter one because the extra hostnames have not appeared in our own logs at meaningful volume [our data]. Start wide or start narrow — what matters is matching on source hostname, which survives changes to landing pages and campaign tags.
One distinction worth keeping straight: these hostnames identify humans clicking through from an assistant. Bot fetches — GPTBot crawling for training, or ChatGPT-User fetching a page live during a conversation — do not run JavaScript and never appear in GA4 at all (OpenAI bot documentation). Those show up in server logs, not analytics. Our complete AI crawler list covers that side.
How do you set up the custom channel group in GA4?
The whole setup happens in the GA4 admin, in 6 steps:
- List your hostnames. Start from the 6 above, or Semrush's wider set.
- Copy the default channel group. Admin → Data display → Channel groups → create a copy. GA4 only allows custom channels on a copy, never on the default group.
- Add the channel. Create a channel named "AI Assistants" with one condition: source matches regex and the pattern above.
- Order it above Referral. GA4 assigns each session to the first channel whose condition matches, top to bottom. If AI Assistants sits below Referral, it will never match anything.
- Verify. In Reports → Traffic acquisition, switch the channel dimension to your new group. Cross-check by filtering session source for the same hostnames — the two views should agree.
- Annotate the go-live date. Future-you will want to know exactly when the channel started separating cleanly.
How do you verify the channel is capturing AI traffic?
Filter the Traffic acquisition report by session source for any one hostname and compare it to the new channel's totals — the counts should reconcile. If the channel reads zero while the source filter shows sessions, the channel is sitting below Referral in the evaluation order, which is the single most common setup mistake we see.
A second check: open an assistant yourself, ask a question your site answers, and click your own citation if one appears. The session should land in the AI Assistants channel within the normal GA4 processing delay. It is a crude test, but it exercises the full path.
What did our production data show?
On our insurance build, we shipped the channel group alongside a first-party tag gateway in August 2026, and the first days of separated data are on the record [our data]. One observation, and one deliberate refusal.
The observation: volume is small. AI-assistant referrals are a thin slice next to organic search in the channel's early data [our data]. That is consistent with the best external measurement available: Pew found that when a Google search produced an AI summary, users clicked a source cited inside it in just 1% of visits (March 2025 browsing data, 900 U.S. adults, Pew Research Center, published July 2025). The assistant answers; the click is the exception.
The refusal: we are not publishing conversion quality yet, because the channel is weeks old and days of separated data cannot carry a finding. Answering that question honestly is the reason the channel exists, and the answer will be published here when it has months behind it — whichever direction it points. Conversion claims for AI traffic also carry heavy survivorship bias, because the sites receiving AI clicks are precisely the ones the assistant already vetted. Our page on whether AI citations are worth anything works through that reconciliation.
Is AI referral tracking worth setting up yet?
Yes, because it costs 20 minutes and nothing else — but be honest about what it will show. For most sites, the channel will read near zero for weeks. That is a true reading, not a broken setup, and it is worth having on the record before anyone proposes spending real money on AI visibility.
The channel also measures the wrong end of the funnel if citations are what you care about. GA4 sees clicks; it cannot see the far larger number of times an assistant mentioned or cited you without anyone clicking. For that you need direct observation — the free share-of-voice method — and for Google's AI surfaces specifically, the Search Console approximation. Referral tracking is one instrument on the panel, and the operator's guide to generative engine optimization shows where it fits among the others.
Frequently asked questions
How do I track ChatGPT traffic in GA4?
Create a custom channel group with a channel whose source matches AI referrer hostnames — chatgpt.com, chat.openai.com, perplexity.ai, claude.ai, gemini.google.com, and copilot.microsoft.com. We run this exact 6-hostname pattern in production; GA4 then reports AI-assistant sessions as their own channel.
Why does ChatGPT traffic show up as Referral in GA4?
Because GA4's default channel definitions predate AI assistants. A session from chatgpt.com carries a referrer like any other site, so GA4 files it under generic Referral until a custom channel group separates it. No default report isolates AI-assistant sources as of August 2026.
How much traffic do AI assistants actually send?
Little, in our experience. On our insurance build, the channel's early data shows AI-assistant referrals as a small fraction of organic search sessions [our data] — consistent with Pew's March 2025 finding that users clicked a cited source in just 1% of visits that included an AI summary.
Does a custom channel group change my data?
No. Channel groups only relabel sessions for reporting; the underlying source and medium fields are untouched. You can also keep using the default channel group in parallel — the custom copy is 1 additional reporting dimension, not a replacement.
Can GA4 show whether AI assistants cite my site?
No. GA4 records sessions, so it only sees the minority of citations that produce a click. Pew measured clicks on AI-summary sources at 1% of encounters, which means citation monitoring needs a separate method, like a monthly prompt battery.
Sources
- Tracking AI Traffic in Google Analytics — Semrush
- Google users are less likely to click on links when an AI summary appears in the results — Pew Research Center
- OpenAI crawlers and bots — OpenAI