AI Referral Regex Generator

AI Referral Regex Generator

Create a source regex for a GA4 custom channel group or Exploration. Pick the AI assistants you want to monitor, then copy the expression. Everything runs in your browser.

Include these referrers

Enter domains only, separated by commas. The tool safely escapes dots and other regex characters.

Your GA4 source regex

GA4 setup

  1. Open Admin → Data display → Channel groups and create a custom channel group.
  2. Add an AI referrals channel before Referral and Direct.
  3. Set Session source to “matches regex” and paste the expression above.
  4. Apply it to a report or Exploration; validate against actual landing-page sessions before treating it as complete attribution.

Important: a regex only captures visits that retain a referrer. AI answers can be zero-click and some clicks lose referrer data, so use this alongside Search Console and server logs—not as a citation count.

Related: How to track AI search traffic in GA4 · What Google’s AI report measures · More free tools

🦜 Follow GeoParrot: YouTubeX