How are you tracking AI referral traffic in GA4?
I set something up today for my own site and for a client that I thought might be useful to share, but I’d also be interested to hear how others are handling this. A lot of AI tool traffic seems to get mixed into standard referral or direct traffic in GA4, which makes it harder to understand whether platforms like ChatGPT, Perplexity, Gemini, Claude, Copilot, etc. are actually sending users to the site.
Today I set up a separate way to track AI traffic in GA4 using Custom Channel Groups / regex, so AI-related sources can be separated from standard Direct or Referral traffic.
The regex I used was based around known AI referrers, for example:
.*(chatgpt|openai|perplexity|claude|anthropic|gemini|copilot|microsoftcopilot|you\.com|phind|poe|copy\.ai|jasper|writesonic|character\.ai|quora|google).*
The goal wasn’t to make it perfect, but to at least stop AI traffic from being completely buried in Direct or general Referral traffic. I’m still testing and refining it, especially because some AI-driven visits may still appear as Direct if no referrer is passed.
Curious how others are doing this, are you using Custom Channel Groups, regex filters, Looker Studio segments, UTM rules, server logs, or something else? and are there any AI referrers you’ve found worth adding that are easy to miss?
Would love to compare approaches.