Guides

How to find AI referral traffic (ChatGPT, Perplexity and more) in Google Analytics 4

Last updated: November 17, 2026. Google Analytics and the AI apps change often; every step below links to the documentation it came from so you can re-check it.

Short answer: open Reports › Acquisition › Traffic acquisition and look for the AI Assistant row. Since May 13, 2026, GA4's default channel group puts visits whose referrer matches a recognized AI assistant (Google names ChatGPT, Gemini, DeepSeek, Copilot, Grok and Claude as examples) into that channel, with the medium set to ai-assistant (Google release notes, Google default channel group). To see each engine, switch the dimension to Session source / medium. For a definition you control, and for traffic from before May 13, 2026, build a custom channel group with a regex on Source (below). Two things GA4 will never show you: clicks from Google's own AI Overviews and AI Mode (counted as Organic Search), and AI clicks that arrive with no referrer and no UTM tag (counted as Direct). It also only counts clicks, not how often you were cited.

Step 1: check the built-in AI Assistant channel

  1. Go to Reports › Acquisition › Traffic acquisition. The table is grouped by Session primary channel group by default.
  2. Pick a date range that starts after May 13, 2026 and find the AI Assistant row. Google defines it as “the medium exactly matches ‘ai-assistant’”, and sets that medium, plus the campaign (ai-assistant), when “the referrer matches a list of AI Assistants” (Google).
  3. Change the dimension to Session source / medium and type chatgpt, then perplexity, claude, gemini and copilot into the search box to see each source separately.
  4. Add your key events (sign-ups, purchases, form sends) as columns to see whether those visitors do anything.

Limits of the built-in channel, from Google's own pages: it explicitly “excludes Google’s AI Overviews and AI Mode”, which Google counts in Organic Search; the default channel group can't be edited; and Google publishes downloadable lists of search, social, shopping and video sites but we could not find a published list of the recognized AI assistants, only examples (Google). The release note describes the new medium value being assigned going forward; we found no statement that older sessions are reclassified, so treat the channel as starting on May 13, 2026 (Google). Perplexity is not among the examples Google names, so check whether your perplexity.ai sessions show medium ai-assistant or referral.

Step 2: make a custom channel group you control

Google's help documents exactly this case (“Example: AI assistants”). Custom channel groups can be applied to reports retroactively, so they also show AI visits from before May 2026 (Google).

  1. In Admin › Data display › Channel groups, click Create new channel group. GA4 starts you with a copy of the default group. You need the Editor role or higher. Standard properties allow 2 custom groups, 360 properties 5 (Google).
  2. Click Add new channel, name it “AI assistants”, add a condition on Source, choose matches regex, and paste:
.*(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|chat\.deepseek\.com|grok\.com).*
  1. Optionally add an OR condition: Medium exactly matches ai-assistant, so anything Google recognizes that your list misses is still caught.
  2. Click Reorder and drag “AI assistants” above Referral (Google also suggests above Organic Search if needed). Order matters: “Traffic is included in the first channel whose definition it matches” (Google). Click Apply, then Save group.
  3. In Traffic acquisition, choose your new group as the primary dimension.

Why the regex looks like that. Google Analytics uses full-match regex by default, so a pattern only matches if it covers the whole value; wrapping it in .* makes it a “contains” match, and \. matches a literal dot instead of any character (Google regex help). That way www.perplexity.ai matches as well as perplexity.ai. We tested the pattern as a full match: it matches chatgpt.com, chat.openai.com, perplexity.ai, www.perplexity.ai, claude.ai, gemini.google.com, copilot.microsoft.com, chat.deepseek.com and grok.com, and does not match google, google.com, mail.google.com, bing, facebook.com or (direct). The domain list is ours, not an official list: look at your own Session source values for the last 90 days and add any AI domains you see (and remove any you don't want).

About Google's example regex. Google's help page suggests:

^.*ai|.*\.openai.*|.*chatgpt.*|.*gemini.*|.*gpt.*|.*copilot.*|.*perplexity.*|.*google.*bard.*|.*bard.*google.*|.*bard.*|.*.*gemini.*google.*$

It is broad on purpose. Because its first part is ^.*ai, any source ending in “ai” matches (in our test, the made-up sources dubai and thai did), and .*gpt.* or .*copilot.* can catch unrelated sources containing those letters. It also doesn't mention claude.ai explicitly. Google itself notes you should update the regex as assistants change (Google). Listing exact domains is stricter; neither approach is wrong, just check what lands in the channel.

Step 3 (optional): a quick exploration

If you don't have edit rights, use Explore › Free form: add Session source / medium and Landing page as dimensions, Sessions and Key events as metrics, and a filter on Session source “matches regex” with the same pattern. Note that Google says GA4 regex is case sensitive by default (Google); source values are normally lower-case, but if a filter returns nothing, check capitalization. The landing-page view shows which of your pages AI users actually land on.

Why ChatGPT visits are easier to spot than most

OpenAI's publisher FAQ says “ChatGPT automatically includes the UTM parameter utm_source=chatgpt.com in referral URLs” for publishers who allow OAI-SearchBot (OpenAI FAQ, archived Oct 4, 2026). GA4 reads utm_source as the traffic source (Google), so a tagged ChatGPT click shows source chatgpt.com even when the browser sends no referrer. Google also notes that missing UTM parameters show as (not set), so a click tagged only with utm_source can show an unexpected medium; a rule on Source, like the one above, catches it either way. If you block OAI-SearchBot, see our robots.txt for AI crawlers guide.

What GA4 can't see (and why the number is a floor)

So GA4's AI number is a count of attributed clicks, a floor rather than your full AI visibility. A note on sources: everything above comes from Google, OpenAI and MDN documentation. Many how-to pages on this topic are published by companies selling AI-visibility tools, so check any traffic share they quote against its original source.

Where CiteWatch fits

Analytics tells you about the clicks; it can't tell you whether ChatGPT, Gemini or Perplexity mentioned or cited your site in the first place. CiteWatch is a weekly tracker designed to ask those engines the questions your customers ask and show whether your site is mentioned or cited, alongside which sites were cited instead. It is in free early access and currently shows sample (demo) data only; nothing in the dashboard today is a real measurement of your site. It measures; it doesn't promise or produce citations or traffic, and it doesn't replace your analytics.

Try it on your own site

Enter your domain and one question a buyer would ask. It's free during early access and needs no card.

Run the free sample check