Insights
How to Track AI Traffic in GA4: Measuring Visits From ChatGPT, Gemini and Claude
Contents
No Time to Read It All?
Use our AI tool to get an instant, bite-sized summary of this article in seconds.
You can track AI traffic in GA4 in three layers. Start with the AI Assistant channel that Google added to the default channel group on 13 May 2026. Add a custom channel group that catches the assistants the default list misses. Then watch a few proxy signals for the AI visits that arrive with no referrer and get filed as Direct. That gives you a usable view, though the number you end up with is a minimum and the real count will be higher.
We set up this measurement as part of the tracking work we do for clients. Below is the setup we use, what it catches, and where it misses.
Why AI traffic is hard to see in Google Analytics
A user asks ChatGPT or Gemini a question, gets an answer that cites a few sources, and sometimes clicks one. Whether GA4 can tell where that click came from depends on whether the browser or app passes a referrer. In practice there are three outcomes.
If the click carries a referrer such as chatgpt.com or perplexity.ai, GA4 records it as a referral, or as AI Assistant traffic when Google recognises the source.
If the click carries no referrer, GA4 records it as Direct. This happens often in desktop and mobile apps, and when people copy a URL out of the chat.
If the user never clicks at all, they may still remember your brand and search for you later or type your address. GA4 credits Organic Search or Direct, and the assistant gets no credit.
Only the first case is easy to measure, which is why we treat every AI traffic figure as a lower bound.
Step 1: Use the native AI Assistant channel in GA4
Since May 2026, GA4 has an AI Assistant channel in the Default Channel Group. When a session's referrer matches Google's list of recognised AI assistants, GA4 sets the medium to ai-assistant and the campaign to (ai-assistant), and reports the session under the new channel. Google's announcement names ChatGPT, Gemini and Claude as examples.
To see it, open Reports > Acquisition > Traffic acquisition and set the primary dimension to Session default channel group. AI Assistant appears next to Organic Search, Direct and Referral once you have qualifying sessions.
The channel needs no setup, but it has gaps. Google decides which assistants it recognises, third-party guides disagree on the full list, and some of them report Perplexity sessions still landing in plain Referral, so check your Referral report before assuming everything is covered. Clicks from Google's own AI Overviews and AI Mode come from google.com and count as Organic Search. Sessions with no referrer stay in Direct.
Step 2: Build a custom channel group for full referrer coverage
To catch every AI visit that does send a referrer, we add a custom channel group. Custom channel groups in GA4 apply to historical data too, so past months show up once it is saved.
- Go to Admin > Data display > Channel groups and click Create new channel group. GA4 copies the default channels for you.
- Click Add new channel and name it something like "AI Assistants (all)".
- Set the condition to Session source matches regex and use a pattern like this:
chatgpt\.com|chat\.openai\.com|openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|bard\.google\.com|copilot\.microsoft\.com|deepseek\.com|grok\.com|meta\.ai|you\.com|phind\.com
- Add an OR condition, Session medium exactly matches ai-assistant, so the native channel's sessions land here too.
- Move the new channel above Referral in the list. GA4 checks channels from top to bottom and stops at the first match, so if Referral comes first it takes these sessions.
- Save, then pick the new group as the dimension in your acquisition reports.
Review the regex every few months. New assistants appear, and existing ones change domains (chat.openai.com moving to chatgpt.com is the clearest example). When we audit an account, we sort the Referral report by source and look for AI tools we have missed.
ChatGPT also adds utm_source=chatgpt.com to many of the links it shows, so GA4 can attribute those sessions from the UTM even when the referrer is stripped.
Step 3: Estimate the AI traffic hiding in Direct
A large share of AI visits ends up in Direct, and no setting will reveal it fully. We look at a few proxy signals together.
People rarely type a long URL like /insights/how-to-choose-a-crm-for-a-clinic from memory. If Direct traffic to deep blog or service pages grows while your other channels stay flat, AI answers are a likely cause. Build a GA4 exploration that filters Direct sessions whose landing page is not the homepage, and track the trend month by month.
Branded search is the second signal. When AI answers mention your brand, some readers search for your name on Google afterwards, so watch branded queries in Google Search Console.
The third is asking people. Add "ChatGPT or another AI assistant" as an option in your contact form's "How did you hear about us?" field, and ask on discovery calls. It is the oldest method here, and it still catches visits analytics cannot see.
Finally, tag the links you control. Where you publish content that AI tools are likely to cite (directory listings, partner pages, press releases), UTMs keep the source attached to those visits.
No single signal proves anything. When several move together after you publish content aimed at AI search, the pattern is usually real.
Step 4: Report AI traffic by landing page and conversion
A session count on its own tells you little. You want to know which pages AI assistants send people to and whether those visitors do anything once they arrive.
In GA4, create an exploration with:
- Rows: Landing page + query string
- Columns: Session source (or your custom AI channel)
- Values: Sessions, Engaged sessions, Key events
AI visitors usually land on a small set of pages, typically in-depth guides, comparisons and explainers. That list shows you which content AI engines trust. It is also where we start when deciding what to update and what to write next, which is most of the work in generative engine optimisation.
Look at engagement rate and key events as well. AI visitors often arrive with their question already partly answered, so a small number of sessions can still include high-intent leads.
How consent affects AI traffic numbers on EU sites
If your site runs a cookie banner (in Greece and the rest of the EU it should), GA4 only gets full data for visitors who accept analytics cookies. With Google Consent Mode in Advanced mode, GA4 can model some of the missing sessions. In Basic mode, visitors who decline do not appear at all.
This affects every channel, so ratios between channels stay roughly comparable, but raw AI session counts on an EU site will look smaller than the reality. Keep that in mind before comparing your numbers with US case studies.
What we do with the AI traffic data
Once AI traffic is visible, we use it in three ways.
- We find the pages AI engines already cite and keep them current and easy to quote.
- We look for gaps. If competitors appear in AI answers for questions your services cover and you get no AI visits for them, that is the next content brief. Our guide on how to rank in ChatGPT covers what to change on the page.
- We report AI traffic to clients as a trend with a stated minimum, alongside branded search and what new leads say on the contact form.
FAQ
Does GA4 track ChatGPT traffic automatically?
Partly. Since May 2026, GA4's default channel group has an AI Assistant channel that captures sessions from recognised assistants such as ChatGPT, Gemini and Claude when a referrer is passed. Visits with no referrer still show up as Direct.
Why does AI traffic show up as Direct in Google Analytics?
Many AI apps and in-app browsers do not send a referrer header, and some users copy links out of the chat. Without a referrer or UTM tag, GA4 has no source to record, so it files the session as Direct.
Are Google AI Overviews and AI Mode included in the AI Assistant channel?
No. Clicks from AI Overviews and AI Mode come from Google search, so GA4 counts them as Organic Search. Search Console does not report them separately from regular search results either.
How much of my traffic comes from AI search?
For most business websites it is still a small share of total sessions, but it is growing and tends to land on high-intent pages. The referrer-based figure in GA4 is a minimum, so read it together with Direct traffic to deep pages and what new leads tell you.
Get your AI traffic measured properly
AI search already sends visitors to business websites, and most GA4 setups do not show it clearly. We set up GA4, Google Tag Manager, Consent Mode and AI channel reporting as part of our SEO, GEO and analytics work, and we use the data to decide which content to build next. If you want to know how much traffic AI already sends you and how to get more, talk to us.