# How to track ChatGPT and AI assistant traffic in GA4

> Since May 13, 2026, GA4 puts visits from recognized AI assistants in an AI Assistant channel. A custom channel group lets you set the rules yourself.

Canonical: https://promptlyfound.com/measurement/track-ai-traffic-in-ga4
Updated: 2026-11-20

## Short answer

Open the Traffic acquisition report and find the AI Assistant channel, which Google added to the GA4 default channel group on May 13, 2026. For your own definition, **create a custom channel group with a Source condition that matches assistant names by regex**, and place it above Referral. GA4 counts clicks only, and visits with no referrer and no tag land in Direct, so report the channel as a floor.

## Key findings

- Since May 13, 2026, GA4 assigns the medium "ai-assistant", the channel "AI Assistant" and the campaign "(ai-assistant)" when the referrer matches a recognized AI assistant. [1]
- The AI Assistant channel excludes Google's AI Overviews and AI Mode. GA4 counts clicks from those features as Organic Search. [2]
- Regular expressions in GA4 are full match by default. A partial match needs metacharacters such as .* around the text. [8]
- An October 2026 version of OpenAI's publisher FAQ said ChatGPT adds utm_source=chatgpt.com to referral URLs from ChatGPT search results. [6]
- Each AI assistant passes its own web address as the referrer when a person clicks a link in an answer.

GA4 undercounts AI assistant traffic, so the figure it reports is a floor for any leadership report. In our study, 50% of the links that ChatGPT cited carried no UTM tag. Google Analytics 4 can attribute a visit to an AI assistant when the click carries a referrer or a UTM tag that names the assistant. When GA4 recognizes the assistant, it sorts the visit into a default channel. A custom channel group lets you decide which sources count.

## The AI Assistant channel

The AI Assistant channel gives you a ready-made line for AI traffic with no setup. On May 13, 2026, Google added it to the GA4 default channel group, according to [What's new in Google Analytics](https://support.google.com/analytics/answer/9164320). When the referrer matches a recognized AI assistant, GA4 sets the medium to "ai-assistant", the channel to "AI Assistant" and the campaign to "(ai-assistant)".[1] The announcement names ChatGPT, Claude and Gemini as examples. It does not say whether visits from before May 13, 2026 were reclassified.

Google's [Default channel group](https://support.google.com/analytics/answer/9756891) page names ChatGPT, Gemini, Copilot, Grok and DeepSeek as sources for the channel. The channel excludes Google's AI Overviews and AI Mode, whose clicks count as Organic Search.[2] Google does not publish the full list of assistants it recognizes. Its downloadable list of source categories covers only search, social, shopping and video sites.[2]

To see the channel:

1. In Reports, open Acquisition, then Traffic acquisition. Google's [Custom channel groups](https://support.google.com/analytics/answer/13051316) page points to this report for channel data.[3]
2. Find the AI Assistant row in the Session default channel group.
3. Change the primary dimension to Session source to see which assistants sent the visits. [Session-scoped dimensions](https://support.google.com/analytics/answer/11080067) show where each new session came from.[4]

The [Source grouping](https://support.google.com/analytics/answer/16984576) dimension also groups UTM source values that contain "openai" as ChatGPT, and values with "gemini" or "perplexity" under their own names. It appears in the conversion reports of the Advertising section.[5]

## What identifies a visit from an assistant

GA4 has two clues: the referrer that the browser sends, and UTM parameters in the link. No AI operator currently documents which of the two its products send.

[OpenAI's Publishers and Developers FAQ](https://web.archive.org/web/20261004224023/https://help.openai.com/en/articles/12627856-publishers-and-developers-faq) said in October 2026 that "ChatGPT automatically includes the UTM parameter utm_source=chatgpt.com in referral URLs" for traffic from ChatGPT search results.[6] By November 20, 2026, that URL served an article about the retirement of ChatGPT Atlas. No current OpenAI page repeats the statement. A visit with that tag shows chatgpt.com as its Session source. [Google's URL builder guide](https://support.google.com/analytics/answer/10917952) says UTM values are left out of the Landing page + query string dimension and appear in Page location.[7]

In our study of about 26,000 AI responses from October and November 2026, [50% of the 43,026 links that ChatGPT cited](https://promptlyfound.com/research/what-ai-answers-cite) carried utm_source=chatgpt.com. The other half had no UTM parameter. A visit from one of those links reaches GA4 only with a referrer, or as direct traffic.

  <thead><tr><th scope="col">Assistant</th><th scope="col">Named by Google in</th><th scope="col">Operator documents referrer or UTM</th></tr></thead>
  <tbody>
    <tr><th scope="row">ChatGPT</th><td>What's new; default channel group; custom channel example</td><td>utm_source=chatgpt.com, in a FAQ version since withdrawn</td></tr>
    <tr><th scope="row">Claude</th><td>What's new; custom channel example</td><td>No</td></tr>
    <tr><th scope="row">Gemini</th><td>What's new; default channel group; custom channel example</td><td>No</td></tr>
    <tr><th scope="row">Microsoft Copilot</th><td>Default channel group; custom channel example</td><td>No</td></tr>
    <tr><th scope="row">Perplexity</th><td>Custom channel example; Source grouping</td><td>No</td></tr>
    <tr><th scope="row">Grok</th><td>Default channel group</td><td>No</td></tr>
    <tr><th scope="row">DeepSeek</th><td>Default channel group</td><td>No</td></tr>
  </tbody>

Before you write a rule, look at the Session source values that your own property records for these assistants. A rule built on a guessed hostname can miss visits, while one built on recorded values matches the visits you receive.

## Build a custom channel group

A custom channel group lets you decide which sources count as AI, and it applies to past data too. It is a set of rule-based channels that you define. Google's [Custom channel groups](https://support.google.com/analytics/answer/13051316) page gives AI assistants as its example.[3]

1. In Admin, under Data display, open Channel groups. You need the Editor role or above.
2. Select Create new channel group. GA4 starts with a copy of the default group, which includes the AI Assistant channel.
3. Add a new channel named "AI assistants (custom)".
4. Add a condition on Source and choose "matches regex".
5. Enter your regex and save the channel.
6. Select Reorder and move the new channel above Referral. Keep the copied AI Assistant channel below it, so assistants that Google recognizes and your regex misses still get a channel.
7. Select Save group to apply the new channel.

GA4 puts a visit in the first channel it matches, working down the list.[3] Channel definitions are not case sensitive. Custom channel groups apply to reports retroactively, so the new channel also sorts visits from before May 13, 2026.[3]

A standard property can have 2 custom channel groups in addition to the default, and a 360 property can have 5. Each group can hold 50 channels. Custom channel groups are not available in the BigQuery export.[3]

### The regex

Google's example for an AI assistants channel uses this expression:[3]

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

The [About regular expressions](https://support.google.com/analytics/answer/1034324) page says GA4 uses full-match regex by default.[8] Under full match, the first alternative, `^.*ai`, matches any source that ends in "ai", including any domain under .ai. The `.*gpt.*` alternative matches any source that contains "gpt". So the expression can pull in sites that are not assistants.

A narrower expression lists the assistant names from Google's documentation:

```
.*(chatgpt|openai|perplexity|claude|gemini|copilot|deepseek|grok).*
```

The `.*` on each side turns the full-match default into a partial match.[8] When a new assistant appears in your Session source values, add its name. Google's page also says to update the regex when the list of assistants changes.[3]

## Check the result in an exploration

[Explorations](https://support.google.com/analytics/answer/7579450) give access to data and techniques that standard reports do not offer.[9] [Free-form exploration](https://support.google.com/analytics/answer/9327972) displays up to 5 dimensions as rows.[10]

1. In Explore, start a Free form exploration.
2. Import your custom channel group, Session source and Landing page as dimensions. Custom channel groups are available in explorations.[3]
3. Add Sessions and Key events as metrics.
4. Put the channel group in the first row, with Session source nested under it.
5. Read the sources in your AI channel, and tighten the regex to drop any that are not assistants. The channel then counts assistant visits only.

Explorations use event-level data, which GA4 keeps for 2 months by default and up to 14 months on a standard property. [Google's data retention page](https://support.google.com/analytics/answer/7667196) says the setting affects explorations and funnel reports, but not standard aggregated reports.[11] Set retention to the longest period your property allows now, so the data is there when you need a long date range.

## Limits of GA4 data

GA4 records clicks, and Google describes the AI Assistant channel as a way to track user clicks from AI sources.[1] An answer that names or cites your site without a click leaves no trace in GA4. For impressions and citations, use [the Search Console generative AI report](https://promptlyfound.com/measurement/search-console-ai-report) for Google's AI features and [the Bing AI Performance report](https://promptlyfound.com/measurement/bing-ai-performance-report) for Microsoft Copilot. Similarweb estimates AI referral traffic for any domain, including competitors. [Bing AI Performance vs Similarweb compared](https://promptlyfound.com/measurement/bing-ai-performance-vs-similarweb) covers what each of the two counts.

A click with no referrer and no UTM tag counts as (direct) / (none). Google's page on [(direct) / (none) traffic](https://support.google.com/analytics/answer/15258820) lists missing UTM tags, redirects, URL shorteners, links from offline documents and ad blockers as causes.[12] The [W3C Referrer Policy](https://www.w3.org/TR/referrer-policy/) lets a page tell the browser to send no Referer header at all.[13] No assistant operator documents whether its mobile or desktop apps send a referrer. Some assistant visits can therefore sit in Direct.

The default channel group counts clicks from AI Overviews and AI Mode as Organic Search, together with other Google search clicks.[2] AI agents that browse in a person's own browser session can look like ordinary visits. [How AI browser agents access websites](https://promptlyfound.com/crawlers/ai-agents) explains why.

Treat the AI channel as the floor of assistant traffic, since the gaps above all hide assistant visits from it. [How to measure AI search ROI without click attribution](https://promptlyfound.com/measurement/ai-search-roi) covers the signals that GA4 does not see.

## Sources

1. What's new in Google Analytics. Google Analytics Help, 2026-05-13. https://support.google.com/analytics/answer/9164320
2. Default channel group. Google Analytics Help. https://support.google.com/analytics/answer/9756891
3. Custom channel groups. Google Analytics Help. https://support.google.com/analytics/answer/13051316
4. Scopes of traffic-source dimensions. Google Analytics Help. https://support.google.com/analytics/answer/11080067
5. Source grouping. Google Analytics Help. https://support.google.com/analytics/answer/16984576
6. Publishers and Developers FAQ (Internet Archive copy, Oct 4, 2026). OpenAI Help Center, 2026-10-04. https://web.archive.org/web/20261004224023/https://help.openai.com/en/articles/12627856-publishers-and-developers-faq
7. URL builders: Collect campaign data with custom URLs. Google Analytics Help. https://support.google.com/analytics/answer/10917952
8. About regular expressions (regex). Google Analytics Help. https://support.google.com/analytics/answer/1034324
9. Get started with Explorations. Google Analytics Help. https://support.google.com/analytics/answer/7579450
10. [GA4] Free-form exploration. Google Analytics Help. https://support.google.com/analytics/answer/9327972
11. Data retention. Google Analytics Help. https://support.google.com/analytics/answer/7667196
12. [GA4] Understand (direct) / (none) traffic. Google Analytics Help. https://support.google.com/analytics/answer/15258820
13. Referrer Policy. W3C, 2017-01-26. https://www.w3.org/TR/referrer-policy/

---

This is a plain-text copy of https://promptlyfound.com/measurement/track-ai-traffic-in-ga4 from Promptly Found. The web page is the canonical version and includes the charts.
