How do I track traffic from ChatGPT and other AI assistants in Google Analytics 4 (GA4)? Check the AI Assistant channel Google added to the default channel group in 2026, then build a custom channel group that matches AI referrer domains on Source with a regex and sits above Referral. Expect an undercount either way: a share of AI clicks arrives with no referrer and lands in Direct.
That covers the human side of AI referral traffic: people who read an answer in ChatGPT, Perplexity, Claude, Gemini or Copilot and clicked a citation. It’s half the picture. The bots that fetched your page so the assistant could quote it never show up in GA4 at all.
Does GA4 already have an AI traffic channel?
Yes. Google announced it on May 13, 2026, and it rolled out to properties over the following weeks. The release note says GA4 can now identify visitors “discovering your site through chatbots like ChatGPT, Gemini, and Claude via a new AI Assistant channel” in the Default Channel Group. When the referrer matches Google’s list of assistants, GA4 sets the medium to ai-assistant and the campaign to (ai-assistant), and the session lands in the AI Assistant channel, which is evaluated before Referral. Those visits stop hiding among generic referrals.
What Google’s definition leaves out
Read the fine print before you trust it. The default channel group definition names ChatGPT, Gemini, DeepSeek, Copilot and Grok, and explicitly excludes Google’s AI Overviews and AI Mode, which stay in Organic Search with clicks from other search engines. Perplexity isn’t named on that page. Neither is Claude, even though the release note mentions it. And the page lists no hostnames.
So check your own property in Google Analytics 4 before you build anything. The quick answer is in the standard reports, covered below.
Which referrer domains do AI assistants send?
Each assistant has a web hostname that shows up as the referrer when a browser passes one. ChatGPT also tags its links. OpenAI’s publisher FAQ says ChatGPT “automatically includes the UTM parameter utm_source=chatgpt.com in referral URLs,” so those sessions can keep chatgpt.com as the source even when the referrer is stripped. That makes it the most reliable channel to measure today.
Gemini may now do the same. Search Engine Journal reported on October 1, 2026 that Gemini started adding UTM parameters to outgoing links, and third-party trackers report the value as utm_source=gemini. Google hasn’t documented it, and the reports conflict: one tracker saw the tags during a test that stopped on September 29. If it’s live for you, those sessions show a bare gemini as Session source.
Referrer hostnames at a glance
For a quick comparison, here’s what each assistant sends:
| Assistant | Referrer hostname(s) | UTM tag | Named in GA4's AI Assistant channel? |
|---|---|---|---|
| ChatGPT | chatgpt.com (older: chat.openai.com) | utm_source=chatgpt.com | Yes |
| Perplexity | perplexity.ai, www.perplexity.ai | None documented | No |
| Claude | claude.ai | None documented | Release note only |
| Gemini | gemini.google.com | utm_source=gemini reported, undocumented | Yes |
| Microsoft Copilot | copilot.microsoft.com, copilot.com | None documented | Yes |
| DeepSeek | chat.deepseek.com (rarely sent; most visits land in Direct) | None documented | Yes |
| Grok | grok.com (rarely sent; most visits land in Direct) | None documented | Yes |
Only the ChatGPT tag is vendor-documented. The hostnames come from third-party click tests and the source lists analytics tools maintain, so confirm each one against your own Session source report. Don’t expect much from the last two rows: Ahrefs’ tests found Grok passed no referrer at all, and DeepSeek passed one only on individual web-search citations. Most of that AI-driven traffic sits in Direct whatever you match.
How do I build an AI channel group in GA4?
Create a custom version of the default channel group with an “AI assistants” channel placed above Referral, so AI referral traffic stops blending into generic referrals. Google says custom channel groups “can be applied to your reports retroactively,” so it covers past data too.
The exact setup
- Go to Admin > Data display > Channel groups. Only users with access at the Editor role or higher can create one.
- Click Create new channel group. It starts as a copy of the default group, so the other channels stay intact.
- Click Add new channel, name it “AI assistants” and add a condition: Source, matches regex, then paste the pattern below.
- Drag the channel above Referral, and above the copied AI Assistant channel if your copy includes it. Google’s docs say traffic goes to “the first channel whose definition it matches,” so order matters. If you’d rather keep one AI channel, edit the copied AI Assistant channel’s condition instead.
- Save, then pick the new group as the primary dimension in your Acquisition reports.
^(.*\.)?(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|copilot\.com|chat\.deepseek\.com|grok\.com|gemini)$
Standard properties get two custom channel groups, so don’t burn one on an experiment.
Why the pattern is anchored
“Matches regex” in GA4 is a full match: the pattern has to cover the whole Source value, not a piece of it. The (.*\.)? prefix lets subdomains such as www.perplexity.ai through, while notperplexity.ai stays out. The bare gemini at the end catches the reported UTM value. If Gemini sessions show up under another source on your property, add that value too.
Google’s example regex
Google’s help page offers its own example regex for this channel:
^.*ai|.*\.openai.*|.*chatgpt.*|.*gemini.*|.*gpt.*|.*copilot.*|.*perplexity.*|.*google.*bard.*|.*bard.*google.*|.*bard.*|.*.*gemini.*google.*$
It’s loose. The first branch, ^.*ai, matches any source ending in the letters “ai,” not just .ai domains, so an unrelated referral can get counted as an AI assistant. Explicit hostnames take longer to write and are easier to audit. Google also says to update the regex as assistants change, and that part we agree with: add new hostnames when they appear in your Session source report, not before.
Where do I see AI-driven traffic in GA4’s standard reports?
Start in the Traffic acquisition report under Reports > Acquisition > Traffic acquisition. Its default dimension is the default channel group, so the AI Assistant channel gets its own row once your property has it. Check the date range in the top-right corner first; on a small site, a week of AI referral traffic is usually too thin to read.
To see individual assistants, open the dimension list above the table and switch to Session source / medium. If you built the custom group above, it’s in that list and in the other Acquisition reports as a session-scoped custom channel group dimension, with your AI row next to Referral and Direct. Search the table for perplexity and claude to see where those sessions land. If they sit in the Referral default channel group row, your custom group is what pulls them out.
Filter to AI sources
To isolate AI-driven traffic, click + Add filter, choose Session source in the Dimension drop-down, and pick the AI hostnames from Dimension values. Session source is the traffic source dimension that holds the hostname, so that report filter matches the table above.
Landing pages
For pages, open Reports > Engagement > Landing page and add Session source / medium as a secondary dimension. Google suggests that pairing for finding the sources behind a landing page.
Don’t judge a change on today’s numbers. Google says “data processing can take 24-48 hours,” and figures can shift in that window.
How do I see which pages AI assistants send people to?
Use a Free form exploration when the standard reports run out and you want depth analysis. They give you aggregated metrics per source; the exploration lines up sources and pages in one table, and that’s the part you can act on.
Go to Explore > Free form. Import the dimensions Session source, Session source / medium and Landing page + query string, and the metrics Sessions, Engaged sessions and Key events. The last two say something about user behavior after the click, not just the count. Put Landing page in rows and Session source in columns, then filter Session source with matches regex and the same pattern.
You get a per-page list of where AI referral traffic lands. For AEO, that beats guessing which pages answers pick up, and it tells you whether AI is a meaningful discovery channel for your site or a rounding error. Pages that rank in Google but never appear here deserve a look; our AEO guide covers how assistants find and read WordPress content. Use Landing page + query string, not Landing page alone, if you want to see utm_source=chatgpt.com on the URL itself.
Why does AI traffic show up as Direct in GA4?
Because some AI referral traffic arrives with no referrer and no UTM tag, and GA4 has nothing else to go on. Three causes come up most.
Native apps
Cloudflare found that “traffic referred by Claude’s native app does not include a Referer: header” and believes the same holds for other native apps. Ahrefs’ May 2025 tests found no referrer from the Perplexity desktop app or the Copilot Windows app.
noreferrer links
The same Ahrefs tests found ChatGPT using noreferrer on in-content links for paid accounts, and Gemini doing it in Deep Research’s “Researching websites” list.
Copy-paste and lost tags
Someone copies a URL out of an answer into a new tab. No referrer, no tag.
The UTM tag can vanish too. From October 8 to 15, 2026, after GPT-6 rolled out, many ChatGPT links lost both utm_source=chatgpt.com and the referrer. Adobe’s Cedric Huesler measured roughly 31,000 fewer ChatGPT visits a day and 26,000 more Direct visits on the same 500 or so pages. He said OpenAI confirmed a bug to him; OpenAI hasn’t confirmed it publicly. If your ChatGPT line dipped that week, annotate it in GA4 and leave your attribution model alone.
What can’t GA4 see about AI visibility?
The bots. Google says that in GA4, “traffic from known bots and spiders is automatically excluded,” and you can’t turn that off or see how much was dropped. Many crawlers don’t run your JavaScript anyway, so the GA4 tag never fires for them.
That matters because referral traffic is the last step. GA4 only counts trackable traffic: a browser that loads your tag. Before anyone clicks a citation, OAI-SearchBot, ChatGPT-User, Claude-SearchBot or PerplexityBot has to fetch the page. If one of them is blocked at your CDN or gets a 403 from a security plugin, there’s nothing to cite and nothing to click. GA4 shows a flat line and no reason, so on its own it understates the true impact of a crawler block. The complete list of AI bots sorts which ones do search and user fetches versus training, which feeds your block-or-allow call.
Seeing the bot side
Crawlantix’s free AI Bot Tracker plugin logs AI bot visits at the WordPress origin, including which pages each bot read: the side GA4 filters out. It records what reached WordPress, so pair it with Cloudflare’s edge view if you’re proxied. Compare its crawled-pages list with your GA4 landing-page exploration to see whether pages the search bots fetch also get referral traffic. This walkthrough shows the bot-side view.
FAQ
Does GA4 track ChatGPT traffic automatically?
Partly. Since Google’s May 2026 rollout, GA4’s default channel group has an AI Assistant channel, and ChatGPT is one of the named sources. Clicks that arrive without a referrer or the utm_source=chatgpt.com tag still land in Direct, so treat the number as a floor, not a total.
Why is Perplexity traffic showing as Referral in GA4?
Google’s AI Assistant channel definition names ChatGPT, Gemini, DeepSeek, Copilot and Grok, but not Perplexity. If your property files perplexity.ai sessions under Referral, a custom channel group with a regex on Source, placed above Referral, moves them into your own AI channel.
Is the AI Assistant channel retroactive?
Google’s May 13 release note doesn’t say the new channel reclassifies older sessions, so check a March 2026 date range before assuming your history moved. Custom channel groups are different: Google’s help page says they can be applied to reports retroactively, so build one for before-and-after comparisons.
Can I track Google AI Overviews and AI Mode clicks in GA4?
Not separately. Google’s channel definition says the AI Assistant channel excludes AI Overviews and AI Mode, and those clicks arrive from Google like ordinary search clicks. They’re counted in Organic Search, and no regex on Source can split them out.
Why does GA4 show AI referrals but no AI bot visits?
GA4 automatically excludes known bots and spiders, with no setting to turn that off, and many crawlers never execute the GA4 tag. To see which AI bots fetched which pages, you need server logs or an origin-side tool that records bot requests.
References
- Google Analytics Help, What’s new in Google Analytics (AI Assistant channel, May 13, 2026): https://support.google.com/analytics/answer/9164320
- Google Analytics Help, Default channel group: https://support.google.com/analytics/answer/9756891
- Google Analytics Help, Custom channel groups: https://support.google.com/analytics/answer/13051316
- Google Analytics Help, Known bot-traffic exclusion: https://support.google.com/analytics/answer/9888366
- Google Analytics Help, Traffic acquisition report: https://support.google.com/analytics/answer/12923437
- Google Analytics Help, Landing page report: https://support.google.com/analytics/answer/12931766
- Google Analytics Help, Data freshness: https://support.google.com/analytics/answer/11198161
- OpenAI Help Center, Publishers and Developers FAQ: https://help.openai.com/en/articles/12627856
- OpenAI, Overview of OpenAI crawlers: https://platform.openai.com/docs/bots
- Ahrefs, Patrick Stox, “Generative engines are breaking web analytics” (May 26, 2025): https://ahrefs.com/blog/generative-engines-are-breaking-web-analytics/
- Cloudflare blog, AI search crawl-to-refer ratio on Radar: https://blog.cloudflare.com/ai-search-crawl-refer-ratio-on-radar/
- Search Engine Journal, “Google Gemini Adds UTM Parameters For Referral Attribution” (Oct 1, 2026): https://www.searchenginejournal.com/google-gemini-adds-utm-parameters-for-referral-attribution/591754/
- Vizzybl, “Google Gemini UTM Tags: How to Track AI Traffic”: https://vizzybl.ai/blog/gemini-utms
- Search Engine Journal, “ChatGPT Traffic Drop Appears To Be A Tracking Problem” (Oct 15, 2026): https://www.searchenginejournal.com/chatgpt-traffic-drop-appears-to-be-a-tracking-problem/593157/
- Search Engine Roundtable, “OpenAI Removes UTM Parameters From ChatGPT Results” (updated Oct 15, 2026): https://www.seroundtable.com/utm-parameters-missing-chatgpt-42299.html
- AnswerTraffic, AI referrer hostname dataset: https://answertraffic.com/data/ai-referrers.csv