On this page
- Why doesn't GA4 show AI traffic out of the box?
- Which hostnames should the regex match?
- What regex should you use in GA4?
- How do you set it up in GA4?
- Why does this still undercount AI traffic?
- How should you judge AI traffic quality?
- A checklist
- How does EchoRanked track AI referrals?
- Frequently asked questions
Setting this up takes about ten minutes and is worth doing. Below is the setup, the full hostname list as of September 2026, and how to read the result without fooling yourself.
Why doesn't GA4 show AI traffic out of the box?
GA4 does not show AI traffic by default because its default channel group has no AI channel. A click from a ChatGPT answer lands in Referral, next to every forum and partner site that ever linked to you, or in Direct when no referrer survives.
So the work is not collecting new data. GA4 already records the session source for most of these visits. The work is naming them, so they stop disappearing into two buckets designed for something else. Google now documents this itself: its custom channel groups help page[1] (2026) includes an "AI assistants" example channel.
Which hostnames should the regex match?
The regex should match the hostname each AI assistant sends visitors from, including redirect hosts that do not look like the assistant. This list reflects what we observed as of September 2026, alongside the hostnames EchoRanked's own referrer classifier uses:
| Assistant | Hosts to match | Why |
|---|---|---|
| ChatGPT | chatgpt.com, chat.openai.com | The old domain now redirects to chatgpt.com but still appears on older links. |
| Claude | claude.ai | Claude's consumer app. |
| Gemini | gemini.google.com, bard.google.com, vertexaisearch.cloud.google.com | Grounded citations can be served as redirect links on the Vertex AI Search host. |
| Perplexity | perplexity.ai | Including www. and other subdomains. |
| Copilot | copilot.microsoft.com, copilot.com | The standalone Copilot app on either domain. |
| Grok | grok.com | The standalone app. See below for Grok inside X. |
| DeepSeek | deepseek.com | Covers chat.deepseek.com. Small for most Western sites, but cheap to include. |
| Meta AI | meta.ai | Meta's standalone assistant. |
| Mistral | chat.mistral.ai | Le Chat. |
Two entries are the ones most regexes miss. Google's Gemini API grounding documentation[2] shows grounded source links returned as vertexaisearch.cloud.google.com redirect URLs, so a click through one of them carries that hostname rather than gemini.google.com. It is a common reason sites conclude Gemini sends them nothing. And Grok inside X no longer has a host of its own: as of September 2026, grok.x.com redirects to x.com/i/grok, so those clicks usually arrive as ordinary X traffic and cannot be separated by hostname.
ChatGPT also tags its links. OpenAI's publishers and developers FAQ[3] (2026) says "ChatGPT automatically includes the UTM parameter utm_source=chatgpt.com in referral URLs." GA4 reads UTM parameters from the landing URL, as its URL builder help[4] describes, so those sessions show chatgpt.com as their source even when the referrer was stripped.
What regex should you use in GA4?
Use one regex that lists every assistant's hostname, with dots escaped and wrapped so it works whether a GA4 filter treats "matches regex" as a full or partial match:
.*(chatgpt|openai|claude\.ai|perplexity|gemini\.google\.com|bard\.google\.com|vertexaisearch\.cloud\.google\.com|copilot\.microsoft\.com|copilot\.com|grok\.com|deepseek\.com|meta\.ai|chat\.mistral\.ai).*A few deliberate choices in it:
chatgptandopenaiare bare words, not hostnames, so they also catch UTM values likechatgptoropenaithat some links carry.- Dots are escaped wherever a hostname is spelled out. An unescaped
.matches any character. perplexityis a bare word to cover Perplexity's subdomains without listing each one.
Google's own example regex on the channel groups page starts with ^.*ai|. If your filter treats that as a partial match, it catches any source containing "ai", such as mail.google.com or email, and it names neither Grok nor DeepSeek. Check an AI channel built from it for sources that obviously do not belong.
When you add an assistant later, add it to the group in the middle and nowhere else.
How do you set it up in GA4?
Set it up as an Exploration for a quick answer, or as a custom channel group so it appears in standard reports for everyone on the team. Do the first today and the second when you want it to last.
Option 1: an Exploration (fastest).
- Create a new free-form Exploration.
- Add the session source dimension, session source / medium (useful for spotting UTM-tagged visits), and landing page.
- Add sessions, engaged sessions, and the key events that matter to you: sign-ups, demo requests, purchases.
- Add a filter on session source using the regex above.
- Put session source in rows and the metrics in values. Save it.
Option 2: a custom channel group (durable).
- In Admin, under Data display, open Channel groups and create a new group. It starts as a copy of the default group, which cannot be edited directly.
- Add a channel called "AI assistants", with a condition that source matches the regex.
- Move it above Referral. Google's help page says traffic "is included in the first channel whose definition it matches", so an AI channel below Referral receives nothing.
- Save, then select the new group as the primary dimension in your acquisition reports.
You need Editor access or above, and a standard property allows two custom groups beyond the default. Google says custom channel groups "can be applied to your reports retroactively," so you can see a trend without waiting weeks.
Why does this still undercount AI traffic?
Referrer-based tracking undercounts AI traffic because many AI-driven visits carry no referrer, the hostname list goes stale, and some AI surfaces share a hostname with ordinary search. This is the difference between "AI sends us 0.4% of traffic" as a fact and as an artifact.
1. Visits that arrive with no referrer. A referrer is sent only when a browser follows a link and nothing in between strips it. Plenty of AI-driven visits do not work that way:
- Someone taps a link in a mobile assistant app, which opens an in-app browser or hands off to the system browser, often without a referrer.
- Someone copies a URL out of an answer and pastes it into a new tab.
- Someone reads your brand name in an answer, then types your domain or searches for you by name. That visit is credited to Direct or branded search.
- Links marked
noreferrerdeliberately send nothing.
No regex recovers these. ChatGPT's UTM tag helps for its own links, and nothing else.
2. The hostname list goes stale. Assistants change domains, add redirect hops and launch new surfaces. chat.openai.com became chatgpt.com, Gemini's grounded links carry a Vertex AI host, and Grok's X host became a redirect. Put a date next to your regex wherever it lives.
3. Some surfaces cannot be separated at all. A click from Google's AI Overviews comes from google.com, like a click on an ordinary result, so there is nothing to filter on. For those, you need a different measurement: whether you are cited in the answer, which we cover in how to track AI Overviews.
A reasonable way to estimate the gap: watch Direct sessions landing on deep, specific pages that nobody would type from memory. A rise there alongside a rise in measurable AI referrals is suggestive. It is an estimate, should be labelled as one, and should never be added to the AI number.
How should you judge AI traffic quality?
Judge AI traffic by comparing what those visitors do against organic search visitors, not by counting sessions. A session count answers "did anyone come?" The question that decides budget is whether these visitors behave differently from everyone else.
| Measure | What it tells you |
|---|---|
| Engagement rate | Whether the answer set accurate expectations about the page. |
| Key event rate | Whether the visit turns into a sign-up, a demo request, a purchase. |
| Landing pages | Which of your pages the assistants send people to, often not the ones you would guess. |
| Assistant, separately | Whether one assistant sends fewer but better visitors than another. |
Be careful with small numbers. If an assistant sent 40 sessions and 3 converted, a 95% Wilson interval puts the true conversion rate anywhere from about 3% to 20%. Comparing that with organic search's rate over thousands of sessions is the mistake described in why your AI visibility score is probably noise: a midpoint without its range is not a finding.
Referral visits exist only when an assistant names and links your page, which depends on what it found when it searched, the subject of where ChatGPT gets its information. Traffic is the last and laggiest step in that chain. The earlier steps are covered in our guide to AI visibility.
A checklist
- Add the regex as an Exploration filter today and save the Exploration.
- Create a custom channel group with an AI assistants channel above Referral.
- Record the date you wrote the hostname list, and review it quarterly.
- Report AI sessions as "at least", never as a complete count.
- Compare engagement and key events against organic, with enough volume behind each number to mean something.
- Track whether you are cited in answers separately, because attributable clicks are only part of what answers do for you.
How does EchoRanked track AI referrals?
EchoRanked attributes visitors from AI assistants, including ChatGPT, Claude, Gemini, Perplexity, Copilot, Grok, DeepSeek, Meta AI and Mistral, using the hostname list above plus the UTM fallback, and shows which pages they land on and what they do next. Separately, it measures whether you are named in the answers themselves on any four of ChatGPT, Perplexity, Gemini, Google AI Overviews, Google AI Mode, Copilot and Claude, which covers the visits a referrer never will. That second number is your AI share of voice.
Frequently asked questions
Why does ChatGPT traffic show up as Direct in GA4?
ChatGPT traffic shows as Direct when the visit arrives with no referrer and no UTM tag. That happens when someone opens a link from a mobile app's in-app browser, pastes a copied URL into a new tab, or types your domain after reading about you in an answer. GA4 has nothing to attribute those sessions to, so it files them as Direct.
What does utm_source=chatgpt.com mean in Google Analytics?
It means the visitor clicked a link in a ChatGPT answer. OpenAI's publishers FAQ says ChatGPT automatically adds utm_source=chatgpt.com to referral URLs so publishers can measure the traffic in tools such as Google Analytics. Because GA4 reads UTM parameters from the landing URL, these sessions keep chatgpt.com as their source even when the browser stripped the referrer.
Does GA4 have a built-in AI traffic channel?
Not as of September 2026. The default channel group has no AI channel, so AI referrals land in Referral or Direct. Google's help center does document an "AI assistants" example: a custom channel group with a regex condition, placed above Referrals. Custom channel groups apply to reports retroactively, so the new channel shows history as soon as you save it.
How do I track Gemini traffic in GA4?
Match gemini.google.com and bard.google.com, and also vertexaisearch.cloud.google.com. Google's Gemini API documentation shows grounded source links returned as redirect URLs on that Vertex AI Search host, so a click through one can carry that hostname instead of Gemini's own. Leaving it out of your regex is a common reason Gemini appears to send no traffic at all.
Sources
Checked Sep 30, 2026
- [1]custom channel groups help page — support.google.com
- [2]Gemini API grounding documentation — ai.google.dev
- [3]publishers and developers FAQ — help.openai.com
- [4]URL builder help — support.google.com