Track ChatGPT and Perplexity Traffic in GA4 (2026)
Track ChatGPT and Perplexity traffic in GA4: use the AI Assistant channel, a custom channel group and regex, and learn why some AI visits show as Direct.
Google Analytics 4 can show visits from ChatGPT, Perplexity and other assistants when the click carries a referrer or campaign parameter. Check the AI Assistant channel, then Session source / medium and Landing page + query string. Visits without referrer data land in Direct, so the count is a minimum, not a census.
Can Google Analytics 4 measure traffic from ChatGPT, Perplexity and other AI assistants?
Yes, for clicks that arrive with a referrer or campaign parameter GA4 can read. GA4 records the visit as a session with a source, and you can filter those sessions in Traffic acquisition. It cannot count mentions or citations that nobody clicked, and it misses visits whose origin was stripped.
As of October 2026 three things matter. OpenAI states in its publisher FAQ that ChatGPT adds utm_source=chatgpt.com to referral URLs, so ChatGPT visits are identifiable. Google added an AI Assistant channel to GA4’s default channel group in May 2026. And no vendor guarantees that every click carries a clean source, so every count here is a lower bound.
How do ChatGPT, Perplexity, Claude, Gemini and Copilot appear in GA4?
Each assistant shows up under its own source value, but only some of them document how. The table separates what a vendor states from what is commonly reported, so you know how much to trust each row.
| Assistant | Source value you can expect | What the vendor or Google documents |
|---|---|---|
| ChatGPT | chatgpt.com (older links may show chat.openai.com) | OpenAI says ChatGPT adds utm_source=chatgpt.com to referral URLs; named in Google’s AI Assistant examples |
| Perplexity | perplexity.ai | Commonly reported as a referral; not described in Perplexity pages checked, and not named in Google’s examples, so it may remain in Referral |
| Claude | claude.ai | Not described in Anthropic pages checked; check your data for the exact value |
| Gemini | gemini.google.com | Named in Google’s AI Assistant examples |
| Microsoft Copilot | copilot.microsoft.com | Named in Google’s AI Assistant examples |
| Google AI Overviews and AI Mode | google / organic | Counted as Organic Search, not as an AI channel |
Do not treat these hostnames as a complete or permanent list. Assistants change domains, open links in in-app browsers, route through redirects and add or drop referrer headers. Always inspect the values in your own property before building a filter. If you see a hostname that is not in the table, add it.
Behavior for tagged links with no utm_medium has varied in published reports: the medium may show as (not set), the session may fall under Unassigned, or it may be grouped with Referral. Check what your property shows rather than assuming.
What is GA4’s AI Assistant channel, and what does it miss?
The AI Assistant channel is a default channel in GA4 that groups sessions whose referrer matches a list of AI assistants. When that happens, GA4 sets the medium to ai-assistant and the campaign to (ai-assistant). Google’s Default channel group definitions list it with ChatGPT, Gemini, DeepSeek, Copilot and Grok as example sources.
Know its limits before relying on it:
- The list is not fully published. Google does not list every recognized referrer, and sources disagree on whether Claude and Perplexity are included. Verify with your own data.
- Google’s own AI features are excluded. AI Overviews and AI Mode are not in this channel; they remain in Organic Search.
- It needs a referrer. Sessions that arrive with no referrer and no campaign data still go to Direct.
- It is not retroactive. Third-party write-ups report that sessions before the change stay in their old channels, so do not compare it with earlier months without a custom group.
- It is a default channel group. You cannot edit default definitions, which is why a custom group is the usual fix.
Also see Google’s What’s new page for later changes to the list.
How do you find AI referral sessions in GA4, step by step?
Open Traffic acquisition, switch to Session source / medium and search for the assistants’ names. The steps below work with either the default channel or a custom one, and Google’s menus and permissions can vary by property.
- Open your GA4 property and go to Reports → Acquisition → Traffic acquisition.
- Set the primary dimension to Session default channel group and look for an AI Assistant row. Note the sessions.
- Change the primary dimension to Session source / medium. Search for
chatgpt,perplexity,claude,geminiandcopilotone at a time, or add a filter on the dimension. - Add Landing page + query string as a secondary dimension, or open Reports → Engagement → Landing page, as in Google’s Landing page report guide. A ChatGPT visit will normally show
utm_source=chatgpt.comin the query string. - Compare the last 28 complete days with the previous 28 days.
- Export or screenshot the table with the filter visible so the next person can repeat it.
Use Session dimensions here, not “First user source” or event-scoped Source. The first describes where a user was first acquired and the second describes an individual event, and neither tells you where this session came from.
How do you build a custom AI assistants channel group in GA4?
Create a custom channel group with a channel named “AI assistants” that matches the Session source against a regex, and place it above Referral. This catches assistants the default channel misses and gives you one definition you control.
- Open Admin → Data display → Channel groups (Editor access is required).
- Create a new group, name it, and add a channel called “AI assistants”.
- Set the condition to Session source with matches regex, and paste a pattern (examples below).
- Drag the channel above Referral. GA4 assigns each session to the first channel whose rules match, so order decides the result.
- Save and select the new group as a dimension in Explorations or in report customization.
Google’s custom channel groups guide includes an example for AI assistants and the same ordering advice. Custom channel groups are applied when the report runs, so they are generally described as working on historical data too, but confirm with a known past date in your own property. Standard properties also have a small cap on the number of custom groups, so check the current limit before creating one.
Which regex should you use?
Use a name-based pattern for discovery and an exact pattern once you know your real values. Always inspect the actual source values first, because an overly broad expression can catch unrelated sources.
A broad pattern for discovery, wrapped in .* so it matches the whole value:
.*(chatgpt|openai|perplexity|claude|gemini|copilot|deepseek|grok).*
A stricter pattern after you have confirmed hostnames in your data:
^(chatgpt\.com|chat\.openai\.com|(www\.)?perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com)$
Three practical notes. GA4 uses RE2-style regular expressions, which have no lookahead. In Explorations, “matches regex” is generally reported to require a match on the whole value, hence the surrounding .*; test one filter with a known source before trusting it. And escape the dots in hostnames. Apply the pattern to a session-source dimension, never to page paths or campaign names.
How do you build a repeatable AI referral report in Explorations?
Create a free-form Exploration with explicit dimensions and metrics, apply the same filter every month and save it. A repeatable report is more useful than a one-off search because it shows change over time.
Dimensions
- Session source / medium, the traffic source of the session.
- Landing page + query string, the site URL that received the session.
- Date, if you want a daily trend.
Metrics
- Sessions, the volume of attributed visits.
- Engaged sessions, visits that met GA4’s engagement conditions.
- Key events, the configured meaningful actions (formerly called conversions), when available.
Filter on the session-source dimension with one of the patterns above. Do not mix session-scoped and event-scoped fields in one table without checking their meaning; if the interface blocks a combination, use a separate tab. For each monthly report, document the filter, the date window and any analytics change, because a change in referrer labeling can look like growth when real volume did not change.
What do the results mean?
Read the table as attributed sessions, not people. The following fictional example shows how.
| Session source | Sessions | Key events |
|---|---|---|
| chatgpt.com | 120 | 7 |
| perplexity.ai | 45 | 2 |
| claude.ai | 18 | 1 |
This indicates 183 attributed sessions in the selected window. It does not mean 183 unique people, nor every AI-origin session. Key events appear only if you configured them. Go one level deeper and compare engagement and key-event rates with your other channels; a small number of relevant sessions can matter more than a large number of unqualified visits.
Which AI-referred landing pages are worth improving?
Imagine this fictional landing-page report:
| Landing page | AI referral sessions | Engaged sessions | Key events |
|---|---|---|---|
| /blog/search-console-api | 130 | 78 | 6 |
| /blog/ga4-vs-gsc | 75 | 59 | 1 |
| /pricing | 30 | 22 | 4 |
The API article brings the most AI traffic, but the pricing page converts better per visit. Before changing either page, check which events count as key events: a completed checkout is more meaningful than a scroll. For GSC Magic, a sensible primary event would be a successful account sign-up, provided that event is configured and fires only after the sign-up succeeds. Without event instrumentation the table cannot support any signup-rate claim.
That leads to a better question than “how much AI traffic did I get?”: which AI-referred pages bring qualified visitors to my product?
Why does some AI traffic show up as Direct?
GA4 reports Direct when no referrer or campaign data reaches it, and AI visits often arrive that way. Common causes are in-app browsers and mobile apps that do not pass a referrer, copied links pasted into another tab, privacy settings, and redirects that drop query parameters before the tag runs.
Other patterns can look like AI traffic without being it. Redirects on your own site can remove utm_source and turn a tagged visit into Direct, internal navigation across domains can create new referrers, and Google’s AI Mode links lacked referrer information for a time in 2025 before Google fixed the problem. Keep Direct as its own line and do not assign all unexplained Direct sessions to AI. One way to test your own setup: open a link from ChatGPT in the browser and in the mobile app, then see how each visit is labeled in Realtime.
What can GA4 not tell you about AI visibility?
GA4 cannot report citations, mentions or share of voice, and it cannot separate AI Overviews from classic Google results. It measures activity on your site after a click. The table lists other sources that fill part of the gap and what each cannot do.
| Source | What it shows | What it does not show |
|---|---|---|
| GA4 | Sessions, engagement and key events from attributed referrals | Unclicked citations; visits with no referrer |
| Google Search Console Generative AI report (June 2026) | Impressions of your pages in AI Overviews and AI Mode by page, country, device and date | Clicks, and other assistants |
| Bing Webmaster Tools AI Performance (public preview, February 2026) | Citation activity of your pages in Microsoft Copilot and AI summaries in Bing | Ranking, or the role a page played in a given answer |
| Server logs or CDN analytics | Requests from AI crawlers and user-triggered fetchers | Human visits; whether a page was cited |
| Repeatable prompt tests | Whether an assistant mentions you for a fixed set of questions | Statistics; results vary between runs |
Google describes its report in the Search Central announcement and Microsoft in its AI Performance announcement. Both are recent and may change, so treat the details as of October 2026.
Crawler data needs careful reading. The vendors document separate agents for different jobs, summarized below from their own pages.
| Vendor | Agents | Documented purpose |
|---|---|---|
| OpenAI | OAI-SearchBot, GPTBot, ChatGPT-User | Search, model training and user-initiated fetches, per its crawler overview |
| Anthropic | ClaudeBot, Claude-SearchBot, Claude-User | Training, search quality and user questions, per its crawler help article |
| Perplexity | PerplexityBot, Perplexity-User | Index building and user-triggered fetches, per its crawler documentation |
A hit from one of these agents shows that the page was fetched, not that it was shown to anyone or cited. OpenAI says that for your content to appear in ChatGPT summaries and snippets you should not block OAI-SearchBot, so confirm robots.txt before concluding that nobody cites you. Crawler behavior and robots.txt handling differ by vendor and change; confirm the current rules on each vendor’s page.
What should you check before sharing AI traffic numbers?
Confirm that tracking is complete and that your definitions are stable before anyone makes a decision from the numbers. The checks below take little time and prevent the most common reporting errors.
- Confirm the GA4 tag is installed on all landing pages and respects your consent configuration.
- Make sure the signup or purchase event fires after a successful action, not when a button is merely clicked.
- Check that canonical redirects, language redirects and cross-domain navigation keep the query string and do not create unwanted referrers.
- Review actual source values rather than assuming a regex catches every assistant.
- Keep Direct separate and never attribute all of it to AI.
- Report engaged sessions and key events with traffic counts, and show counts next to rates for small samples.
- Record when the tag, consent banner, channel group or GA4 channel definitions changed.
For a monthly table use source, sessions, engaged sessions, key events, top landing page and period-over-period change. If you combine GA4 with Search Console, label which number comes from which tool, and read why Search Console clicks differ from GA4 sessions before comparing them. Do not ask an AI model to infer conversions from Search Console data alone.
What should you do next?
Pick one of two paths. If you only need a number, use the AI Assistant channel plus a Session source / medium check. If you need a stable report, build the custom channel group and the Exploration, then reuse it monthly.
Then work on the cause rather than the metric. Make sure assistants can fetch your key pages, check that pages are indexable and clearly answer one question each, and use the prompt library to find content gaps. If you want ChatGPT to read your Search Console data directly, follow the ChatGPT connection guide.
Which questions can you ask an analytics-connected agent?
These prompts need GA4 access. Read-only Search Console data is not enough. GSC Magic connects agents to GA4 as well as Search Console and Bing, and includes analysis of traffic from ChatGPT, Perplexity, Claude and Gemini. You can start free with GSC Magic.
Using GA4 session source data, show AI assistant referrals for the last 28 complete days, grouped by source with session counts and key events.
Which landing pages attract the most attributed ChatGPT and Perplexity sessions? Compare engagement and key-event rates with organic search.
Explain the tracking limitations in this report and clearly label what cannot be measured.
Frequently asked questions
Can GA4 show how often ChatGPT recommended my brand?
No. GA4 records visits to your site, so it only counts people who clicked a link. It cannot count mentions or citations that nobody clicked. For citation visibility use other sources, such as Bing Webmaster Tools’ AI Performance report for Microsoft Copilot, Google’s Generative AI report for impressions, or your own repeatable prompt tests.
Does GA4 have an AI traffic channel?
Yes. As of October 2026 GA4’s default channel group includes an AI Assistant channel, introduced in May 2026, which applies when the medium is ai-assistant. Google has not published the full list of recognized assistants, and it excludes Google’s AI Overviews and AI Mode, so check your own source values and consider a custom channel group.
Why does a known ChatGPT visit appear as Direct?
Direct is what GA4 reports when it receives no referrer and no campaign parameters. Mobile apps, in-app browsers, privacy settings, copied links or redirects that strip parameters can remove the origin. GA4 cannot recover information it never received, so treat Direct as a mixed bucket instead of assigning it all to AI.
Is AI referral traffic the same as Google AI Overview traffic?
No. Google counts clicks from AI Overviews and AI Mode inside normal Search Console and treats them as Google organic search, and GA4’s AI Assistant channel excludes them. Stand-alone assistants such as ChatGPT or Perplexity send visits under their own sources. Keep the two groups separate in reports unless your method defines how to combine them.
Do I need to add utm parameters to get ChatGPT traffic tracked?
No, for links ChatGPT shows. OpenAI states that ChatGPT adds utm_source=chatgpt.com to referral URLs, so you do not tag them yourself. You do not control the links other assistants display, so they rely on the referrer. Keep your own canonical URLs and redirects from stripping query strings before the GA4 tag runs.
How many sessions are enough to judge AI traffic conversion rate?
There is no universal threshold. A conversion rate on a few dozen sessions can swing wildly from one or two events, so show counts next to rates, extend the date range and avoid acting on small changes. Define the key event first and confirm it fires only after a successful action, such as a completed signup.
Can I see AI crawler visits in GA4?
Generally no. AI crawlers such as OAI-SearchBot, Claude-SearchBot and PerplexityBot fetch pages without behaving like browser visitors, and GA4 excludes known bots. Server logs or your CDN’s analytics show those requests. They are useful for checking that assistants can reach your pages, but they are not visits or evidence of citations.
Do this with GSC Magic
GSC Magic stores daily AI-assistant sessions per site and exposes GA4 reports as MCP tools, so your agent can answer “how much traffic did ChatGPT send us?” directly: see the GA4 MCP page.
Give your agent your search data.
GSC Magic connects Claude, ChatGPT and Cursor to Google Search Console, Bing and GA4. Free plan, 7-day Pro trial, no card.