AI traffic regex for GA4
GA4's AI Assistant channel uses a list of assistants that Google does not publish, so you cannot see what it counts. Pick the assistants you want, copy the regex into a custom channel group, and test it on the source values in your own reports.
Matches any source that contains a name, so new subdomains and UTM values count too.
Add it to GA4
- In Admin, under Data display, open Channel groups. You need the Editor role or above.
- Select Create new channel group. GA4 starts with a copy of the default group, which includes the AI Assistant channel.
- Add a new channel named "AI assistants (custom)".
- Add a condition on Source, choose "matches regex", and paste the regex.
- 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.
- Select Save group. Custom channel groups apply to past data too.
- To see the numbers, open Reports, Acquisition, Traffic acquisition, and change the table's first column to your new channel group. The "AI assistants (custom)" row is your AI traffic.
- GA4 matches the whole source value and ignores case. The
.*on each side of a name turns that into "contains". - GA4 counts clicks only. Visits with no referrer and no UTM tag land in Direct, so report the channel as a floor.
- Clicks from Google's AI Overviews and AI Mode count as Organic Search, and no regex can separate them.
- How to track ChatGPT and AI assistant traffic in GA4 has the sources for each step and the check to run in an exploration.