# How to Track AI Search Referrals in GA4

> Find AI search referrals in GA4 using Traffic acquisition, a session source filter and a key events check, and see what direct traffic hides.

Canonical: https://revnu.com/blog/how-to-track-ai-search-referrals-in-ga4
Published December 3, 2026 by George Jefferson, Co-founder and CEO, Revnu

# How to Track AI Search Referrals in GA4

To track AI search referrals in GA4, open Reports, then Acquisition, then Traffic acquisition, switch the dimension to Session source / medium and filter for the domains AI assistants send visitors from, such as chatgpt.com and perplexity.ai. That gives you sessions and key events for the visits that arrived with a referrer. It does not give you the visits that arrived without one, and that gap is large enough that you should say so every time you report the number.

This guide stays inside GA4 session reporting. It covers where to look, which filter to use, how to compare sessions against key events, and what direct traffic cannot tell you. If you need to connect AI visits to individual leads and pipeline, that is a separate job, covered in [How to Measure AI Search Leads in a CRM](https://revnu.com/blog/how-to-measure-ai-search-leads-in-a-crm).

## Open Traffic acquisition

Open Traffic acquisition from Reports, then Acquisition, then Traffic acquisition. Google describes this report as providing cross-channel traffic source dimensions, with sessions and key events attached to each row ([Google Analytics Help](https://support.google.com/analytics/answer/12923437)). It is the right starting point because it is session-scoped: it tells you where each visit came from, not where a user first arrived months ago.

By default the table is grouped by Session default channel group. That grouping is the first trap. GA4 has no dedicated AI channel, so visits from ChatGPT, Perplexity or Gemini are scattered across existing channels such as Referral, Organic Search or Direct, depending on how the click arrived ([Spotted](https://getspotted.ai/blog/track-ai-referral-traffic-ga4)). Looking at the channel view alone, you will under-count AI.

Click the dimension dropdown above the first column and choose Session source / medium instead. If you want the longer explanation of source, medium and scope, [Measure School](https://measureschool.com/source-medium-google-analytics/) walks through the difference between user-scoped and session-scoped dimensions. For this task, the rule is simple: use the Session prefix, because you are counting visits.

## Filter by session source and medium

Filter the report by session source with a regex of the AI domains you actually see, then read the medium column next to it. Use the search bar above the table for a quick look, or add a filter on Session source with the match type set to matches regex. A starting pattern from published guides is chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai ([Spotted](https://getspotted.ai/blog/track-ai-referral-traffic-ga4)).

Treat that list as a starting point, not a standard. Scroll the unfiltered Session source column first and note which AI-looking sources appear in your own property. Add what you find, drop what you do not. A host that sent nothing to your site last quarter does not need a place in the pattern, and a new one will not be in any published list.

The medium tells you how GA4 classified the visit. Most AI referrals show as referral. Some links carry a utm_source value, such as utm_source=chatgpt.com, which can change how the row is labelled ([DigiStreet Insights](https://dev.to/digistreetinsights/how-to-track-ai-search-traffic-in-ga4-and-search-console-43g0)). If the same assistant appears under two source names, combine them in your regex so you do not split one audience across two rows.

When the filter works, save it so you are not rebuilding it monthly:

- **Exploration:** build a free-form exploration with Session source as the rows, and Sessions and Key events as the values. Apply the same regex as a filter.
- **Custom channel group:** create a channel named something like AI assistants with a rule on Session source matching the regex, then place it above Referral so it wins first. This makes AI a line in the standard channel table.
- **Looker Studio:** connect the GA4 property, add a filter on Session source using the same regex, and chart sessions by week. The logic is identical, so a dashboard adds convenience, not accuracy.

One caution on custom channel groups: a retroactive view of your history depends on how the group is applied, so check which date range actually reflects the new rule before you compare months.

## Compare sessions and key events

Compare sessions against key events for the same filtered rows, because a source that sends 40 sessions and zero key events is a different story from one that sends 12 sessions and 3 sign-ups. In Traffic acquisition, the Key events column sits beside Sessions for each source row. Keep the date range fixed and compare the same window year over year or month over month.

Read three numbers per source:

- **Sessions:** how many visits arrived with that referrer.
- **Engagement rate:** whether those visits did anything beyond landing.
- **Key events per session:** the closest session-level view of whether those visits matter to the business.

Be honest about sample size. If an AI source sends a few dozen sessions a month, a single sign-up moves the rate dramatically. Report the raw counts alongside any percentage, and do not extrapolate a trend from two or three conversions.

Also keep the question narrow. Session reporting answers "how many visits came from this source and what did they do on the site". It does not tell you which person became a customer, or whether an AI answer influenced a buyer who later typed your name into a browser. That attribution question belongs to your CRM, where you can add a self-reported "how did you hear about us" field next to the referrer you captured. The GA4 numbers are the visible floor, not the full count.

If you want to see which pages these visits land on, add Landing page as a secondary dimension on the filtered table. That shows which of your pages AI assistants send people to, which is the useful input for deciding what to update next.

## Explain what direct traffic cannot tell you

Direct traffic cannot tell you where a visit came from, and some AI visits land there. GA4 uses a referrer, UTM parameters or ad click identifiers to assign a source. When none arrive, the session is labelled (direct) / (none). Some apps and browsers remove referrer information before the visit reaches your site, so a click from an AI assistant can look identical to someone typing your URL ([DigiStreet Insights](https://dev.to/digistreetinsights/how-to-track-ai-search-traffic-in-ga4-and-search-console-43g0)). The mobile apps are the commonly cited case ([Spotted](https://getspotted.ai/blog/track-ai-referral-traffic-ga4)).

That means your filtered AI number is a minimum, not a total. Say that in the report. A line such as "AI referral sessions with a visible referrer: 86; true figure higher, unmeasured" is accurate and still useful.

Two other limits are worth stating plainly:

- **Google AI features:** GA4 cannot separate clicks from Google AI Mode or AI Overviews from ordinary organic Google clicks, so they sit inside Organic Search ([Spotted](https://getspotted.ai/blog/track-ai-referral-traffic-ga4)).
- **Citations without clicks:** GA4 records sessions only. An AI answer that names your brand and sends nobody to your site is invisible here.

Also check Unassigned. Unassigned means a session did not match any rule in the selected channel group, and (not set) means GA4 received no value for that dimension ([Space Ads](https://www.spaceads.agency/blog/source-medium-and-traffic-sources-in-ga4)). Both are worth a look when a new AI source appears and does not fall into a channel you expect. A practitioner note on the same point: direct is not a neat list of people who typed your URL ([Sharp Cookie](https://sharpcookiedev.substack.com/p/the-ga4-report-that-shows-where-your)).

One practical fix for links you control: add UTM parameters to URLs you place in profiles, newsletters or partner pages, and keep a consistent naming scheme so the rows group cleanly ([Analytics Mania](https://www.analyticsmania.com/post/track-campaigns-in-google-analytics-4/)). You cannot tag a link an AI assistant writes for itself, so this only recovers the visits you can touch.

## Report AI referrals as a floor, then decide what to test

A good GA4 report on AI search says three things: the sessions and key events from sources you can see, the caveat that direct and Google AI traffic hide more, and the landing pages the visits reached. Build the regex filter or custom channel once, save it, and stop arguing about the exact total. The number you can defend is the visible floor.

The next move is deciding which pages and prompts to work on so that floor rises. Revnu is an agent that tracks how your business appears in ChatGPT, Claude, Perplexity and Gemini answers, drafts the posts that fix the gaps and checks back on the result, so GA4 shows the clicks while Revnu works on the answers behind them. Start on Pro at $99 a month from revnu.com/pricing and connect your website.

## Frequently asked questions

### How can I find the referral source in Google Analytics?

Go to Reports, Acquisition, Traffic acquisition, then change the dimension to Session source / medium. Each row shows where sessions came from and how they were classified, with sessions and key events beside it. Use the search bar or a regex filter to isolate sources such as chatgpt.com or perplexity.ai.

### Why does my ChatGPT traffic show as direct in GA4?

Some apps and browsers remove referrer information before the visit reaches your site, and GA4 labels a session with no referrer as direct. The result is that some AI visits are invisible as AI. Treat your filtered AI sessions as a minimum, and tag links you control with UTM parameters.

### Does Google Analytics count bot traffic?

AI crawlers show up in server logs rather than in GA4. If you want crawler requests on pages Revnu hosts, such as blog posts, Revnu records them as request counts, not unique agents.

### Can GA4 separate Google AI Overviews from normal search?

No. GA4 cannot split clicks from Google AI Mode or AI Overviews out of ordinary organic Google traffic, so they appear under Organic Search. To see how your business appears in AI answers more broadly, Revnu tracks mentions across Google, ChatGPT, Claude, Perplexity and Gemini.

### Does GA4 show which leads came from AI search?

To tie AI visits to contacts and pipeline, capture the referrer in a CRM field and add a self-reported discovery question on your forms, as described in the Revnu guide on measuring AI search leads in a CRM.
