AI search attribution in GA4: how to track ChatGPT, Perplexity and Copilot referrals
How to track visits from ChatGPT, Perplexity, Copilot, Gemini and Claude in GA4. What the built-in AI Assistant channel covers, what still lands in Referral, Direct or Organic Search, a custom channel group that fills the gaps, and how to attribute conversions to AI search.
— TL;DR
GA4 now has a built-in AI Assistant channel that covers ChatGPT, Gemini, Copilot, DeepSeek and Grok. Perplexity and Claude are not on Google's list, so they still land in Referral. Google's AI Overviews and AI Mode count as Organic Search. A custom channel group that matches on source closes the gaps and also applies to your older data.
GA4 now tracks most AI assistant traffic by itself. In mid-2026 Google added an AI Assistant channel to the default channel group, and it covers visits from ChatGPT, Gemini, Copilot, DeepSeek and Grok. Perplexity and Claude are not on Google's list at the time of writing, so their visits still land in Referral. Clicks from Google's AI Overviews and AI Mode are counted as Organic Search. A custom channel group fills the gaps.
This guide covers what the built-in channel does, what it leaves out, how to set up a channel that catches everything, and how to attribute conversions to AI search.
#What the built-in AI Assistant channel does
Google's default channel group documentation describes the rule. When the referrer of a visit matches Google's list of AI assistants, GA4 sets the session medium to ai-assistant and the campaign to (ai-assistant). Any session with that medium goes into the AI Assistant channel.
To see it:
- Open Reports, then Acquisition, then Traffic acquisition.
- Find the AI Assistant row in the default channel group.
- Add Session source as a second dimension to see which assistant each visit came from.
Two limits to know about:
- It starts from when it was introduced. Sessions recorded earlier stay where they were, usually in Referral.
- It depends on the referrer. A visit that arrives with no referrer cannot be matched.
#Where each source lands
| Source | Where it lands in GA4 | Why |
|---|---|---|
| ChatGPT, Gemini, Copilot, DeepSeek, Grok | AI Assistant | Named in Google's documentation |
| Perplexity | Referral | Not on Google's list at the time of writing |
| Claude | Referral, or Direct when no referrer is sent | Not on the list |
| Smaller assistants such as Mistral Le Chat, You.com and Phind | Referral or Direct | Not on the list |
| A link opened from an app or pasted into a browser | Direct | No referrer is sent |
| Google AI Overviews and AI Mode | Organic Search | They are part of Google Search |
So a default report undercounts. Perplexity alone can be a meaningful share of AI visits for a B2B site, and it is sitting in a different row.
#A custom channel group that catches the rest
A custom channel group lets you define your own channel. It has one more advantage: it applies to your historical data, so you can see the months before the built-in channel existed.
#Step 1. Create the group
In GA4, go to Admin, then Data display, then Channel groups, and choose Create new channel group. Menu names change from time to time, so look for "Channel groups" if yours differs. Starting from a copy of the default group keeps all the standard channels.
#Step 2. Add an "AI search" channel
Give the new channel two conditions joined with OR:
Medium exactly matches: ai-assistant
Source matches regex:
chatgpt\.com|chat\.openai\.com|perplexity|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|deepseek|grok|chat\.mistral\.ai|you\.com|phind\.com
The first condition picks up everything Google already classifies. The second adds the assistants Google leaves out, and it also catches older sessions from before the built-in channel.
#Step 3. Move it above Referral
GA4 checks channels from top to bottom and uses the first match. Drag the new channel above Referral, or Perplexity visits will keep falling into Referral.
#Step 4. Use it in reports
In the traffic acquisition report, open the dimension menu and pick your custom channel group. New groups can take a day or so to fill in.
#Step 5. Check it
Ask an assistant a question that cites your site, click the link, then look at the Realtime report. The visit should appear under your new channel.
#Three things that confuse the numbers
#ChatGPT tags its own links
ChatGPT adds utm_source=chatgpt.com to many of the links it shows. That is useful: some visits name their source even when no referrer is sent. In older data these often appear as chatgpt.com / (not set) and sit in Unassigned. The source condition in the custom channel above picks them up.
Do not add that tag to your own links. It would label every visitor who uses the link as ChatGPT traffic.
#Google's AI answers are not a separate source
A click from an AI Overview or from AI Mode arrives from Google, like any other search click. GA4 records it as google / organic. Google's documentation says the AI Assistant channel excludes them.
Search Console is the better place to look. Google says that appearances in AI Overviews and AI Mode are included in the Performance report totals under the Web search type. They are not shown separately, but there is a clue in the query list: long, conversational queries written like a prompt tend to come from AI-style search.
#Small numbers swing a lot
For most sites, AI visits are still a small share of the total. With a few dozen sessions a month, one sale moves the conversion rate enormously. Look at the trend over months, and be slow to draw conclusions from a single week.
#Attributing conversions to AI search
There are three views, and each answers a different question.
Last-touch. Key events and revenue for sessions in your AI channel. This is the easy one, and it undercounts. People often learn about a company from an assistant and come back later by typing the address or searching the name. Those visits are credited to Direct or Organic Search.
First-touch. In the User acquisition report, use the first user source. This shows people whose first visit came from an assistant, whatever they did afterwards. It is closer to the question "did AI search introduce them?"
Ask them. Add a "How did you hear about us?" field to your contact and sign-up forms. It is the only method that captures people who saw you in an answer and never clicked. The answers are imperfect and still valuable.
Several industry reports suggest that visits from AI assistants convert at a higher rate than average. The figures vary widely and the samples are small, so compare the conversion rate of your AI channel with Organic Search in your own data before you rely on it.
#What to put on a dashboard
Build these once in GA4's Explore section and save them.
- AI sessions per week, as a line over the last three to six months. This is the trend.
- AI sessions by source. Which assistants send visitors.
- AI sessions by landing page. Which of your pages are being cited and clicked.
- Key events from the AI channel, next to the same figure for Organic Search.
The landing page view is the most useful for deciding what to write next. Pages that already attract AI visits are worth deepening.
#Visits are only half the picture
Analytics measures clicks. It cannot tell you whether an assistant mentioned you in an answer that nobody clicked.
For that, run the questions your buyers ask and record whether you are cited, mentioned or absent. Then read the two measures together:
- Mentions rising, visits flat. You are being named but people are not clicking. Check that the cited pages have clear titles and that the answer leaves a reason to visit, such as a tool, a price list or a template.
- Visits rising, mentions flat. The assistants themselves are sending more traffic. Good news, and not of your making.
- Both flat. Go back to the basics: crawler access, indexing and pages that answer a question directly. Our guide to getting cited by ChatGPT has a checklist.
For ways to track mentions, see how to track LLM citations.
#If you use another analytics tool
The same idea applies to Plausible, Fathom, Matomo or server logs: group the known assistant hostnames into one channel or segment. Only the place where you define the rule changes.
#If you would like help
The setup above takes under an hour and you can do it yourself. If you would like a wider review of how AI assistants find and describe your site, our AI search visibility audit is a one-week review for a fixed $1,800. It covers crawler access, indexing, structured data and content structure, and it records a baseline of where assistants mention you today.
To talk it through first, book a free 20-minute call.
#Bottom line
Use the built-in AI Assistant channel for a quick view, and add a custom channel group so that Perplexity, Claude and your older data are counted too. Remember what analytics cannot see: Google's AI answers are inside Organic Search, app visits arrive as Direct, and a mention with no click leaves no trace. Track visits in GA4, track mentions by asking the questions yourself, and read the two together.
Common questions.
Does GA4 track ChatGPT traffic?
Yes. GA4's default channel group now includes an AI Assistant channel. When a visit arrives with a referrer from an assistant on Google's list, GA4 sets the medium to ai-assistant and places the session in that channel. Google's documentation names ChatGPT, Gemini, DeepSeek, Copilot and Grok. Visits that arrive with no referrer, for example from some mobile apps, still appear as Direct.
Where does Perplexity traffic show up in GA4?
At the time of writing Perplexity is not on Google's list for the AI Assistant channel, so its visits appear as perplexity.ai with the medium referral, inside the Referral channel. The same applies to Claude and to smaller assistants. A custom channel group that matches those sources puts them together with the rest of your AI traffic.
Does AI referral traffic show up as organic search in GA4?
It depends on the source. Visits from assistants such as ChatGPT, Copilot or Perplexity are not counted as organic search. They appear in the AI Assistant channel or in Referral. Clicks from Google's own AI Overviews and AI Mode are different: they are part of Google Search, so GA4 counts them as Organic Search and cannot separate them from ordinary results.
Why does Google Analytics miss some AI search traffic?
Three reasons. Some visits arrive with no referrer, so they are recorded as Direct. Some assistants are not on Google's list, so they sit in Referral. And an assistant can mention or cite you without anyone clicking, which produces no visit at all. Analytics measures visits. Whether you are mentioned has to be checked separately, by running the questions your buyers ask.
How do I attribute conversions and revenue to AI search?
Start with the simple view: key events and revenue for sessions in your AI channel. That undercounts, because people often discover a company through an assistant and return later by typing the address or searching the name. Add two things: a first-touch view using the first user source in GA4, and a 'How did you hear about us?' field on your forms.
Which tools show AI referral sessions broken down by source?
GA4 does this itself. Open the traffic acquisition report, filter to the AI Assistant channel or your custom channel, and add session source as a second dimension to see ChatGPT, Copilot, Perplexity and the rest side by side. Citation-tracking tools measure something different, which is whether you are mentioned in answers. Some connect to GA4 so the two can be compared.
— Want help with this?
Get found in AI search ↗
The technical groundwork that helps ChatGPT, Perplexity and Google's AI answers understand your site and cite it: structured data, llms.txt, crawler access and content built to be quoted.
— Keep reading
AI Search & SEO
How to get cited by ChatGPT in 2026: a B2B SaaS playbook
Why isn't your SaaS cited by ChatGPT, and what can you do about it? A plain guide for B2B software teams: how ChatGPT search finds its sources, a seven-point check you can run in an hour, the page changes that help, what is still unproven, and a 30-day plan.
Read post
AI Search & SEO
Schema.org for B2B agencies: a 2026 implementation guide
A practical schema.org implementation guide for B2B agencies in 2026. The seven JSON-LD types an agency site needs, two optional ones (ProfessionalService and HowTo), the patterns for services and price tiers, and the validation habits that keep schema accurate as the site grows.
Read post
AI Search & SEO
Reddit citation strategy for B2B SaaS in 2026
Why Reddit matters as a citation source for B2B SaaS in 2026, which subreddits to engage, the 95/5 rule that keeps you un-banned, and the long-game habits that can build into LLM citations over many months.
Read post