To track AI referral traffic in Google Analytics, report sessions by session source and landing page. Then filter to the sources that belong to AI assistants, such as chatgpt.com, perplexity and claude.ai.
Look at the sources that almost match too, because new assistants show up faster than any list can keep up. Treat the total as a floor. Most AI influence never produces a tagged click, so the real number is always higher than what you see.
What can GA4 actually see from AI assistants?
GA4 records a visit's source and medium when the browser passes a referrer or the link carries a campaign tag. When an AI assistant sends someone to your site with either of those, GA4 can attribute the session. That part you can measure, and it's worth measuring. It tells you which of your pages the assistants actually send people to.
OpenAI's publisher FAQ says ChatGPT adds utm_source=chatgpt.com to links it sends, and that this depends on the site allowing OAI-SearchBot. I read that through an excerpt, because OpenAI's help pages block automated fetching. Confirm it on the page before you quote it. For other assistants, such as Perplexity, Claude, Gemini and Copilot, we haven't verified referrer hostnames or tagging against primary sources. So look at what actually shows up in your own property and don't trust a list.
AI referral sessions in GA4 are a lower bound on AI influence, not the total. Report them as at least N sessions, never as the size of the AI effect. There's no verified multiplier to correct for the gap.
Why is the number always an undercount?
Because the most common way an assistant influences a buyer produces no tagged visit at all. Know the gaps, so you don't report a number that's smaller than reality as if it were the whole thing.
- No-click influence: Someone reads an answer that names your business, then searches for you or types your address later. That visit shows up as organic search or direct. Nothing points back to the assistant.
- Stripped or missing referrers: Copied links, apps, in-app browsers and some privacy settings can drop the referrer, and the visit lands in direct. One secondary source says this happens for in-app browsers and copied links. OpenAI hasn't confirmed it.
- Assistants that do not tag: Without a referrer or a campaign tag, GA4 can't tell which assistant sent the visit.
- Bots and crawlers: A crawler fetching your page isn't a visitor. GA4 filters known bots, but not all of them. Crawler activity belongs in your server logs, not in GA4.
Don't try to fix any of this with a multiplier. There's no verified one. And don't read growth in direct traffic as AI traffic without other evidence. Show the denominator instead: AI sessions as a share of all sessions, with both counts.
How do you verify AI search referral traffic is real?
Verifying means checking that the sessions you put down to an assistant look like people arriving from an answer, not a labelling mistake. You can't prove where a reader came from. Four checks on your own data make the case stronger or weaker.
- Read the raw source values: Look at the actual session source strings, not a grouped channel. A custom channel with a loose regex can pull in sources that have nothing to do with AI, so read the list that feeds it.
- Check the landing pages: Do the sessions land on pages an assistant would plausibly cite, like guides and answers to a question? Or only on a login page or the homepage? Landing pages are the best sanity check you have.
- Look for the tag in the URL: OpenAI says ChatGPT adds utm_source=chatgpt.com to links it sends. If your landing URLs or server logs carry that parameter, that's direct evidence for that assistant. Don't assume the same tag exists for the others.
- Compare against a quiet week: A handful of sessions in a 28-day window is a small sample. Report the count as at least that many, and wait for a longer window before you call it a trend.
How do you find AI traffic in GA4?
In short, it's five steps. The exact steps, including the Data API call and the channel-group setup, are in the agent skill guide linked below.
Pick the right property
Check which GA4 property you're in before you read anything. The wrong property gives you a confident, wrong answer.
Report sessions by source, then filter
Group sessions by session source and medium over at least 28 days, and keep the long tail of sources in the data. Then filter to the assistant sources you recognise. The GA4 Data API groups the rows. You do the filtering yourself.
Review the near-misses
List the sources that almost match, plus any unfamiliar source containing ai, gpt, chat or claude, and look at them yourself. New assistants show up faster than any list. If you drop rows without looking, the report goes stale.
Rank the landing pages
Group by landing page and source, filter to the AI sources, and rank pages by sessions. The useful part is where the pages assistants send people to don't match the pages you expected.
Compare quality, if the volume allows
Compare engaged sessions and key events per session against organic search. With fewer than about 30 AI sessions, the comparison is too thin to read. Say so.
Here's a starting source filter. It matches the session source and is anchored so gemini.google.com doesn't catch ordinary Google traffic. Only chatgpt.com is backed by a primary source. Treat the rest as hostnames to confirm in your own data.
(?i)^(chatgpt\.com|chat\.openai\.com|perplexity(\.ai)?|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|copilot|edgeservices\.bing\.com)$I've packaged this procedure as an agent skill. You can install it into Claude Code and other coding agents, so the agent follows the same method every time, including the reminder that the total is a floor. The guide has the full steps and the pitfalls.
Read the AI referral analytics skill guideThe skill source is public.
View the skill source on GitHubThis page lists every skill and how to add them to Claude Code and other agents.
Install agent skillsHow do you read the result without overclaiming?
Small sites will see tens of sessions. At that size a week-to-week move is noise. Charting a trend from a few dozen sessions makes a coin flip look like momentum. If the volume is thin, say so and report the count, not a line.
| What you see | Likely reading | What to do |
|---|---|---|
| AI sessions present most weeks, concentrated on a few pages | Assistants have a consistent set of pages they send people to | Study those pages and make sure they're your best and most current |
| A one-day spike | One mention, or crawler or bot activity | Don't chart it as a trend. Check your server logs if you suspect a bot |
| Direct traffic rising, nothing else | Could be a lot of things, including untagged AI visits | Don't call it AI traffic without other evidence |
| Tiny AI volume with good engagement | Too little data to compare | Report the count, wait for volume |
Traffic is not visibility
Whether an assistant cites your site is a different question from whether it sends visitors. To measure citations, ask the engines your buyers' questions and record the answers, like in our guide to measuring AI search visibility. Use GA4 for the visits that do arrive. Keep the two numbers separate.
How to measure AI search visibilityTwo things keep the trend honest. Compare periods of the same length and the same weekday mix. And write down the date if you change the channel definition partway through, because the numbers before and after can't be compared.
Common questions
How do I see ChatGPT traffic in Google Analytics 4?
Report sessions by session source and landing page over at least 28 days, then filter to sources such as chatgpt.com. OpenAI says ChatGPT adds utm_source=chatgpt.com to links it sends, so look for that one first. Check the near-miss sources too, because the list of assistants keeps changing.
How do I verify AI search referral traffic?
Check four things in your own data. First, the raw session source values behind your AI channel. Second, whether the landing pages are ones an assistant would plausibly cite. Third, whether landing URLs or server logs carry utm_source=chatgpt.com for ChatGPT. Fourth, whether the count holds over a window longer than a few weeks. You can't prove where a visit came from, so report the number as at least that many sessions.
How do I track AI referral traffic in Google Analytics?
Report sessions by session source and landing page for at least 28 days, then filter to assistant sources such as chatgpt.com and check the near-miss sources. For a view that lasts, create a custom channel group called AI assistants, matched on session source with a regex and placed above Referral. Remember the total is a floor, because most AI influence arrives as organic or direct.
Why is my AI traffic in GA4 so small?
Partly because it really is small, and partly because most AI influence never produces a tagged click. Readers who see your name in an answer often search for you or type your address later. That shows up as organic or direct. Treat the GA4 number as a floor, not the total.
Can I create an AI traffic channel in GA4?
Yes. In GA4 you can create a custom channel group with a channel such as AI assistants, matched on session source with a regex, and place it above Referral so it matches first. We haven't verified whether a new channel group applies to historical data in GA4. Test it on a past date range before you promise anyone history.
Is direct traffic in GA4 actually AI traffic?
Some of it might be, but you can't assume that. Direct traffic includes people typing your address, bookmarks, and visits whose referrer was stripped. Without other evidence, don't report growth in direct as AI traffic.
Sources
Related guides
Want it done for you
Want this done and re-checked every month? Our monthly maintenance re-runs your buying questions in ChatGPT, Perplexity and Google, ships the fixes that keep you out of the answers, and reports what moved. Or run the free check on your site first at advancelabs.dev/tools/audit.
See how it works
