Skip to content
Search

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.

Assistants to count

"Match names" uses the names. "Match exact hosts" uses the hosts.

    Test it on your sources

    In GA4, open Reports, Acquisition, Traffic acquisition, set the dimension to Session source, and copy the values.

    The values stay in your browser.
      Regex for the Source condition
       

      Add it to GA4

      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, choose "matches regex", and paste the regex.
      5. 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.
      6. Select Save group. Custom channel groups apply to past data too.
      7. 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.