Skip to main content
Cituna
AI Visibility

How to track ChatGPT and AI traffic in Google Analytics 4

AI assistants send referral traffic under their own hostnames, and GA4 has no channel for it. Here is where to find it, a regex that survives both of GA4’s matching rules, and the one AI surface that is invisible no matter what you build.

By Rahul AUpdated September 12, 20269 min read

See which of these you are already failing.

On this page
  1. The short answer
  2. Find it in two minutes
  3. The hostnames to look for
  4. Group it into one channel
  5. What GA4 can never show you
  6. Reading the number honestly
  7. FAQ

The short answer

When someone clicks a link inside a ChatGPT, Perplexity, Claude, Gemini or Copilot answer, their browser sends your site a referrer, and GA4 records it as an ordinary referral under that assistant’s hostname. So the traffic is already in your reports. It is just scattered across the Referral channel with your newsletter and every forum link, under names you have to know to search for.

Two things make this harder than it sounds, and both are worth knowing before you build anything: a meaningful share of real AI visits arrive with no referrer at all and are filed as Direct, and clicks from Google AI Overviews are indistinguishable from ordinary organic search. The number you can build is a useful floor, not a measurement.

Find it in two minutes, before you build anything

Do this first. It tells you whether there is enough volume to be worth configuring.

In GA4, open Reports, then Acquisition, then Traffic acquisition. Change the table’s dimension to Session source / medium. Then use the search box above the table rather than scrolling: search chatgpt, then perplexity, then claude. You are looking for rows like chatgpt.com / referral.

Set the date range to the last three or six months while you are doing this. These are small numbers on most sites, and a 28-day window can show you nothing on a site that genuinely does get AI referrals.

The hostnames to look for

This is the list as observed through 2026. Treat it as a starting point and not as gospel: assistants rename domains, add subdomains and change how they open links, so the authoritative list is always your own referral report.

Three-step flow showing how a click from an AI answer reaches Google Analytics: the answer must carry a link, the browser sends a referrer from hostnames such as chatgpt.com, perplexity.ai, copilot.microsoft.com, gemini.google.com, claude.ai and grok.com, and GA4 files it as a referral in session source and medium.
Only a citation can send a click. A brand named in an answer with no link attached sends nobody, so it can never appear in any analytics tool.
AI assistant referrer hostnames as observed in 2026, with the practical caveat for each
HostnameAssistantWorth knowing
chatgpt.comChatGPTchat.openai.com still appears on older sessions
perplexity.aiPerplexityalso www.perplexity.ai
copilot.microsoft.comMicrosoft CopilotBing chat surfaces can also send bing.com
gemini.google.comGeminidistinct from google / organic, which is ordinary Search
claude.aiClaudedesktop app sessions often send no referrer at all
grok.comGrokalso reachable inside x.com, which you must not match on

Observed values, not a published specification. Verify against your own Session source / medium report before you rely on any single hostname.

The trap that corrupts the whole channel:

Grok is reachable inside X, so it is tempting to add x.com to the pattern. Do not. It would file every click from X, including all your ordinary social traffic, as AI traffic, and you would not notice until someone asked why AI was your best-performing channel. Match grok only, and accept that Grok-inside-X clicks are undercounted. An undercount you understand beats an overcount you do not.

Group it into one channel

Once there is volume worth watching, a custom channel group turns those 6 scattered rows into one line you can put in a report.

Go to Admin, then Data display, then Channel groups, and create a new group. GA4’s default grouping cannot be edited, which is why you create your own. Add a channel, name it something unambiguous like AI assistants, order it above Referral so it claims those sessions first, and give it one condition: source matches regex.

Use this pattern:

.*(chatgpt|openai|perplexity|copilot|gemini\.google|claude\.ai|grok).*

Two deliberate choices in there. The .* on both ends is because GA4’s “matches regex” behaves as a full match in some parts of the interface and a partial match in others; wrapping the pattern makes it correct either way, which saves an afternoon of wondering why a condition that looks right matches nothing. And the terms are fragments rather than exact hostnames, so www.perplexity.ai and any future subdomain are caught without another edit. The one narrowing is gemini\.google rather than bare gemini or google, which would pull in all of organic search.

It applies going forward, not backwards:

A new channel group reshapes reporting from the moment you create it and does not rewrite historical sessions into the new channel in every report. Build it now even if you are not ready to use it, so the history exists when you are. In the meantime, the search-the-table method above works on any date range.

What GA4 can never show you

Three gaps, and the first is large enough that it changes how you should report the whole channel.

Google AI Overviews, and Google AI Mode. Both are part of Google Search, so a click from inside either arrives as google / organic, identical to any other search click. There is no source, flag or dimension that separates them, and no hostname to add to the pattern above, which is why neither appears in the list of referrers. Search Console cannot separate them either: those impressions are folded into the Web search type, and the generative AI report that isolates them gives impressions only, with no query dimension and no API. We cover exactly what is and is not available in is there a Search Console for AI search. The practical consequence is that the biggest AI surface on the web is absent from your AI channel, and your channel total is therefore not “traffic from AI”.

Mentions with no link. Most AI answers name brands in prose without attaching a link, especially when answering from memory rather than browsing. Those recommendations reach a buyer and send no session, so no analytics tool can ever record them. This is the single biggest reason AI visibility cannot be measured from your own analytics, and it is why the distinction between a mention and a citation matters commercially rather than academically.

Stripped referrers. Desktop apps and some in-answer link handling send no referrer, and those sessions become Direct. You cannot tell which part of Direct they are, and you cannot fix it after the fact.

Reading the number honestly

Given all that, the AI channel you have just built is a floor: real AI referrals, undercounted by an unknown amount, excluding the largest surface entirely. That is still worth having, as long as you say so when you report it.

Judge it on behaviour rather than size. Someone who arrives after an assistant recommended you by name is further along than an average visitor, so the interesting columns are engagement rate, pages per session and conversion rate, not sessions. A channel of forty sessions that converts at several times your site average is a real finding. The same forty sessions reported as a growth channel is a correction waiting to happen.

And notice what the channel cannot tell you even when it works: which question was asked, whether you were recommended or merely listed, and who was named alongside you. Those are answer-side facts, and they are only available by asking the engines your own questions and reading what comes back. That is the loop Cituna runs across 7 engines, ChatGPT, Perplexity, Gemini, Claude, Grok, Google AI Overviews and Google AI Mode, daily from $39, keeping each answer’s wording next to the sources it cited, and joining it to your Search Console clicks so the two halves sit in one place. It does not track Microsoft Copilot; for Copilot specifically, Bing Webmaster Tools publishes a free first-party citation count.

One upstream check is worth doing before any of this, because it determines whether there is anything to measure at all: confirm the AI crawlers can actually reach your pages. An assistant that cannot fetch you cannot cite you, and a citation is the only thing that ever becomes a session. If you have never checked, start with why your brand is not showing up in AI search, which covers crawl access before anything else.

Drafted with AI assistance from our own research and Search Console data, and reviewed by Rahul A before publishing. Rules and prices change; check the linked official source before you act.

Frequently asked questions

How do I see ChatGPT traffic in Google Analytics 4?

Open Reports, then Acquisition, then Traffic acquisition, and switch the dimension to Session source / medium. Visits from ChatGPT appear as chatgpt.com / referral, with chat.openai.com / referral on older sessions. Use the search box on the table to filter for chatgpt rather than scrolling. If nothing appears, you have either had no such visits in the date range or the referrer was stripped, which sends the session to Direct instead.

Why is my AI traffic showing as direct?

Because a referrer is not always sent. Clicks from desktop applications, such as the ChatGPT or Claude desktop apps, frequently arrive with no referrer at all, and some assistants open links in a way that strips it. A session with no referrer and no campaign tagging is filed as Direct by definition, so a portion of your genuine AI traffic is sitting in Direct and cannot be recovered retrospectively. This is one reason the GA4 number should be read as a floor rather than a measurement.

Does GA4 have a built-in AI channel?

No. GA4's default channel grouping has no AI or assistant channel, so these sessions land in Referral alongside newsletters, forums and every other linking site. To see them as one line you have to build a custom channel group in Admin, under Data display, then Channel groups, with a condition matching the AI hostnames on the source dimension. The default grouping cannot be edited, so you create a new group; it applies to reports going forward and does not rewrite history.

Can I see Google AI Overviews traffic in GA4?

No, and this is the biggest blind spot. AI Overviews and AI Mode are both part of Google Search, so a click from inside either arrives as google / organic exactly like any other search click. There is no separate source, no flag and no way to isolate them in GA4. Search Console cannot separate them either: those impressions are folded into the Web search type, and the generative AI report that shows them is impressions-only with no API. So the largest AI surfaces of all are invisible to referral analysis by design.

Is AI referral traffic worth tracking if the volume is tiny?

Track it, but judge it on behaviour rather than volume. The counts are usually small enough to be noise next to organic search, and reporting them as a growth channel too early invites an awkward correction. What makes them interesting is quality: these are visitors who arrived after an assistant recommended you by name, so engagement rate, pages per session and conversion rate are the columns to read. A small, high-intent channel is worth knowing about even when the sessions number in the dozens.

Should I use a regex or list every hostname?

A regex with wildcards on both ends, because GA4's "matches regex" behaves as a full match in some interfaces and a partial match in others, and wrapping the pattern in .* makes it correct under both. Match on fragments like chatgpt and perplexity rather than exact hostnames so subdomains and future variants are caught. The one exception is Grok: do not match x.com, or the group will swallow all of your X traffic.

See how AI engines see your brand

Start a free 3-day trial and see the exact buyer prompts you lose across ChatGPT, Perplexity, Gemini, Claude, Grok, Google AI Overviews and Google AI Mode, with a prioritized AEO, GEO and SEO action plan and the fixes to win them.

3-day free trial · Card required, cancel anytime · Works with ChatGPT, Perplexity, Gemini, Claude, Grok, Google AI Overviews and Google AI Mode

Start free trial