GA4 Custom Channel Group for AI Referrals
GA4's default AI Assistant channel vs a custom channel group: when you need both, a tighter regex and the right channel order.
GA4's default channel group now has a built-in AI Assistant channel, so you no longer need a custom group just to see AI referrals. Build one anyway if you want control: add an "AI assistants" channel with your own regex and place it above Referral. The default group can't be edited and Google doesn't publish its full list of assistants, so a custom group is how you catch sources it misses.
- The default AI Assistant channel matches medium
ai-assistant, which GA4 sets when the referrer is on Google's list of assistants. - Google names ChatGPT, Gemini, Deepseek, Copilot and Grok as examples. AI Overviews and AI Mode stay in Organic Search.
- Custom channel groups live in Admin → Data display → Channel groups. Standard properties get 2, each with up to 50 channels.
- Channel order matters: put your AI channel above Referral.
- Tighten Google's example regex; it matches unrelated sources.
Checked and updated 4 November 2026 (CET) to reflect GA4's AI Assistant default channel, checked against Google Analytics Help. Menus change, so confirm in your own property.
01Default channel or custom group?
| Default AI Assistant channel | Custom "AI assistants" channel | |
|---|---|---|
| Setup | None | About 15 minutes |
| Rules | Google's, not editable | Yours, editable |
| Source list | Google's list, not fully published | The sources you choose |
| Applies to past data | Yes, as part of the default group | Yes, custom groups apply retroactively |
| Best for | A consistent headline number | Catching assistants Google's list misses |
For the full walkthrough of both, see the GA4 for Marketers lessons The default channel group, explained and AI referral traffic: the AI Assistant channel and a custom regex.
02Find the sources you have
In Reports → Acquisition → Traffic acquisition, first read the AI Assistant row. Then switch the primary dimension to Session source / medium and search for chatgpt, perplexity, gemini, copilot, claude, deepseek and grok. Any assistant-like source still sitting in Referral is one the default channel didn't catch, and the reason to build a custom group.
03Create the channel group
- Go to Admin → Data display → Channel groups and click Create new channel group.
- Name it, for example "Channels with AI". GA4 starts with a copy of the default channels; keep them.
- Click Add new channel, name it "AI assistants", and add the condition Source → matches regex.
- Paste your regex and save the channel.
Google's example regex is:
^.*ai|.*\.openai.*|.*chatgpt.*|.*gemini.*|.*gpt.*|.*copilot.*|.*perplexity.*|.*google.*bard.*|.*bard.*google.*|.*bard.*|.*.*gemini.*google.*$The first part, ^.*ai, matches any source containing "ai", such as mail.google.com. A tighter version based on explicit domains:
^(chatgpt\.com|chat\.openai\.com|perplexity\.ai|www\.perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai|chat\.deepseek\.com|grok\.com)$Illustrative. Replace these with the exact source values in your property. GA4 regex uses RE2 syntax.
04Order and test the channel
GA4 checks channels top to bottom and assigns a session to the first match. Google's instructions say to move "AI assistants" above Referral, and optionally above other channels such as Organic Search. Drag it up and save.
Test the regex against real values first:
| Source value | Should match? | Tight regex |
|---|---|---|
| chatgpt.com | Yes | Yes |
| perplexity.ai | Yes | Yes |
| gemini.google.com | Yes | Yes |
| mail.google.com | No | No |
| news.ycombinator.com | No | No |
05Read the report
Open Traffic acquisition, change the primary dimension to your custom group, and add Session source as a secondary dimension. Useful columns: sessions, engaged sessions, engagement rate, key events and key event rate. Report the default AI Assistant number as the headline and your custom channel as the fuller view, and say which one any chart uses.
06What this won't capture
| Gap | Why | What to do |
|---|---|---|
| AI Overviews and AI Mode clicks | Google counts them as Organic Search | Use Search Console alongside |
| People who read an AI answer, then search your brand | Arrives as Organic Search | Track branded search trends |
| People who type your URL | Arrives as Direct | Ask "How did you hear about us?" (self-reported attribution) |
| Apps that strip referrers | No source passed | Accept the gap; trend over time |
| New assistants | Not in your regex | Review sources monthly |
Our view: keep the custom group secondary rather than making it your primary channel group, unless other teams agree. It changes a definition they rely on.
07Before you rely on it
- AI source values collected from Traffic acquisition
- Custom group created with default channels preserved
- AI channel added with a tested regex, above Referral
- Regex reviewed monthly, for example with the GA4 monthly AI search routine
08Where to go next
09Common questions
Does GA4 have an AI channel by default? Yes. Google's default channel group now includes an AI Assistant channel for sources such as ChatGPT, Gemini, Deepseek, Copilot and Grok. AI Overviews and AI Mode count as Organic Search.
Why build a custom channel group as well? The default group can't be edited, and Google doesn't publish its full assistant list. A custom group lets you add sources you see in your own data.
Do custom channel groups apply to past data? Yes. Google says custom channel groups can be applied to reports retroactively.
Will this capture all AI-influenced visits? No. It only captures visits with a referrer or source matching the rules. Many AI-influenced visits arrive as direct or branded search.
Questions people ask
4 answersDoes GA4 have an AI channel by default?
+
Yes. Google's default channel group now includes an AI Assistant channel for sources such as ChatGPT, Gemini, Deepseek, Copilot and Grok. AI Overviews and AI Mode count as Organic Search.
Why build a custom channel group as well?
+
The default group can't be edited, and Google doesn't publish its full assistant list. A custom group lets you add sources you see in your own data.
Do custom channel groups apply to past data?
+
Yes. Google says custom channel groups can be applied to reports retroactively.
Will this capture all AI-influenced visits?
+
No. It only captures visits with a referrer or source matching the rules. Many AI-influenced visits arrive as direct or branded search.
Sources
- Google Analytics Help, Default channel groupsupport.google.com
- Google Analytics Help, Custom channel groupssupport.google.com
- All accessed 4 Nov 2026.