How to set up an AI assistants channel group in GA4

In GA4, open Admin > Data display > Channel groups, click Create new channel group, add a channel named "AI assistants" with the condition Source matches regex and an exact hostname pattern, then move the channel above Referral and save. Google's help page says traffic goes to the first channel it matches, that custom groups apply to reports retroactively, and that a standard property can have two custom groups.

Updated How we check

On this page

Copy the regex

Condition: Source matches regex
copilot\.microsoft\.com|gemini\.google\.com|chat\.mistral\.ai|perplexity\.ai|chatgpt\.com|www\.meta\.ai|claude\.ai

Built from the referrer list (version 1.2.0, last verified 30 Oct 2026): only hostnames with a source. For another selection, use the filter generator.

Open the filter generator to pick assistants or add unverified hostnames.

Before you start

  • Role. Google's help page on custom channel groups says you need the Editor role or above at the property level to create and edit channel groups.
  • Limits. A standard property can have 2 custom channel groups and a 360 property 5, each in addition to the predefined group. A group can hold up to 50 channels.
  • What already exists. Since a release note of 13 May 2026, GA4's default channel group has an AI Assistant channel (medium ai-assistant). Its help page names ChatGPT, Gemini, DeepSeek, Copilot and Grok as examples, not as a full hostname list. A custom group is for when you want to decide the list yourself; what the native channel counts is on the GA4 setup page.

Step by step: create the channel group

  1. Copy the regex at the top of this page. It lists the AI assistant hostnames that have a source on our referrer list; the filter generator builds the same pattern for a smaller selection or with unverified hostnames added.
  2. In GA4 open Admin. Under Data display, click Channel groups.
  3. Click Create new channel group. Google says this starts with a copy of the default group, so the standard channels are already there. Give the group a name, for example "Channels with AI assistants".
  4. Click Add new channel and name it, for example "AI assistants".
  5. Add a condition: dimension Source, operator matches regex, value: the pattern you copied. Save the channel.
  6. Click Reorder, drag "AI assistants" above Referral and apply. Google's page says traffic is included in the first channel whose definition it matches in the current order, and gives AI assistants above Referrals as its own example. If the copy already holds an AI Assistant channel, put yours above it too, or the visits it matches stay there.
  7. Save the group.

Google's own example on the same help page uses wildcard alternatives such as .*gpt.* and .*copilot.*. Those match any source that contains the letters anywhere, not only the assistants. The pattern on this page lists exact hostnames instead, so a source counts only if it is one of them.

Use the group in reports

  • Google's page says a custom channel group can be used as the primary dimension wherever the default channel group is supported, for example in the Acquisition reports, and as a secondary dimension in default reports such as Events.
  • It is also available as a dimension in custom reports and explorations and in audience conditions. It cannot be used in the Key events paths report.
  • The group applies to reports retroactively, so older date ranges are recategorized. For audiences the help page says edits change eligibility going forward and are not retroactive.
  • To make the group your property's default, select it as the primary channel group under Admin > Channel groups. Google says the primary channel group dimension then uses the new criteria from that point forward.

Regex rules for the condition

  • GA4 regex is a full match by default, so the whole source value must match and the pattern needs no ^ or $.
  • Escape every dot (chatgpt\.com). Google's regex page says \. means a literal period; an unescaped dot matches any character.
  • Google's regex page calls GA4 regex case-sensitive by default, while the channel group page says channel definitions are not case-sensitive. Write hostnames in lower case and check the result in your property.
  • Keep to literals, escaped dots and |. Google's regex page links to RE2 syntax, which has no lookahead and no backreferences.
  • Google splits its own example into two parts and mentions a length limit, but neither page states the number. If GA4 rejects the pattern as too long, split the hostnames over two conditions joined with OR.

Common mistakes

MistakeWhat happensFix
Channel left below ReferralAssistant visits with medium referral are counted as Referral firstReorder: AI assistants above Referral
Unescaped dotschatgpt.com also matches values such as chatgptxcomEscape: chatgpt\.com
Wildcards like .*ai.*Matches every source containing those lettersUse exact hostnames
Condition on Medium instead of SourceA referral visit has medium referral, not the assistant's nameUse the dimension Source
Expecting AI Overviews in the channelGoogle says its AI Assistant channel excludes AI Overviews and AI Mode; they arrive as google / organicRead AI Overviews clicks and the Search Console report
Expecting Direct visits to moveA visit without referrer and without a tag has no source to matchSee why AI clicks end up as Direct
A third custom group on a standard propertyGoogle's limit is two custom groupsEdit an existing group instead

Check that it works

  1. Paste a source value from your reports into the test field of the filter generator to see whether the pattern matches it.
  2. Open Reports > Acquisition > Traffic acquisition and set the primary dimension to your new channel group. The AI assistants row should list only the hostnames from the pattern under Session source.
  3. Click a link to your site from an assistant answer and look for the visit in a realtime view. If it shows under Direct, that surface sent no referrer; the referrer checker shows what a referrer or landing URL contains.

Follow-up questions

Do I still need a custom channel group now that GA4 has an AI Assistant channel?

Only if you want to choose the hostnames yourself. Google's pages name examples for the native channel, not a complete list, so a custom group with an exact pattern tells you exactly what you count. The GA4 setup page compares both.

Is the custom channel group retroactive?

For reports, yes: Google's help page says custom channel groups can be applied to your reports retroactively. Audience eligibility changes only going forward, and setting a group as primary populates the primary channel group dimension from that point forward.

How many custom channel groups can I create in GA4?

Two in a standard property and five in a 360 property, each in addition to the predefined group, with up to 50 channels per group, according to Google's help page.

Which dimension should the AI assistants condition use?

Source. The referrer hostname of an assistant click is the session source, while its medium is usually referral. Google's example names the operator matches regex but not the dimension.

Why do Perplexity or Claude visits still show as Referral?

Usually because the channel sits below Referral, or the hostname is missing from the pattern. Check the order first, then compare the source value with the referrer list.

Sources

Read on . Links lead to the original pages.