AI visibility (GEO)
GA4 AI Referral Regex Builder
Build the regex that matches AI-assistant sources in Google Analytics 4, and test it on the values in your own reports.
Runs in your browser; nothing is uploaded. · Free, no account · 2 min
AI assistants to include
Options
Importing a saved run into your account is coming soon. Until then, your last runs stay in this browser only, and you can download your files.
How to use
- Tick the assistants to include. Add any other source host you see in your reports.
- Choose whether to match subdomains such as www.
- Paste a few Session source values from your Traffic acquisition report into the test box.
- Copy the regex into a GA4 report filter or into a custom channel group condition.
What it checks and how it works
The regex is a list of exact host names joined with a vertical bar and with the dots escaped, for example chatgpt\.com|gemini\.google\.com. GA4 matches the whole value by default, so no anchors or wildcards are needed. The list covers chatgpt.com, gemini.google.com, perplexity.ai, claude.ai and the Copilot hosts copilot.microsoft.com and copilot.cloud.microsoft. Microsoft's documentation names copilot.cloud.microsoft as the primary Copilot URL; copilot.microsoft.com is on Zaher's list and was not confirmed on a Microsoft page, so check it in your own Traffic acquisition report. The tool does not match Bing, which is a search engine.
The list is Zaher's and it will go out of date. Google's own default AI Assistant channel uses a list that its help page does not publish, so use this regex to build a view you control and add the source values you actually see. Google's pages state a 250-character limit for regexes in report filters; the tool shows the length of yours. The test runs your pattern in the browser's JavaScript engine, while GA4 uses RE2, so confirm in GA4.
Sources
- Google Analytics Help: Custom channel groups opened 29 Oct 2026
- Google Analytics Help: Default channel group opened 29 Oct 2026
- Google Analytics Help: About regular expressions (regex) opened 29 Oct 2026
- Google Analytics Help: Apply filters to detail reports (regex limit) opened 29 Oct 2026
- RE2 regular expression syntax opened 29 Oct 2026
- Microsoft Learn: Manage Microsoft Copilot Chat (the primary Copilot URL) opened 29 Oct 2026
Related tools
GA4 Custom Channel Group Guide for AI Traffic
Get the exact steps, with your regex filled in, to see AI-assistant traffic as its own channel in GA4.
GA4 Regex Tester with RE2 Checks
Test a regular expression against your own values the way GA4 reads it, with warnings for syntax that GA4 will reject.
UTM Parser and Campaign URL Auditor
Paste campaign URLs and see every utm parameter in a table, with the problems that split your reports flagged.
AI Crawler User-Agent Lookup
Paste user-agent strings or log lines to identify AI crawlers, and see what each one is for.
Go further with Zaher: See AI-assistant traffic next to your other channels
Questions
About this tool
Yes. Google's Default channel group page lists an AI Assistant channel for sources such as ChatGPT, Gemini, Copilot and others, and says it excludes Google's AI Overviews and AI Mode. Google does not publish the full list of sources behind it, so a custom regex lets you see exactly the sources you chose.
In a report filter, add a filter on Session source with the match type matches regex. In a custom channel group, add a condition on Source with matches regex. The companion tool writes the channel-group steps for you.
Not every click arrives with a referrer. Some apps and in-app browsers open links without one, so those visits show up as Direct. A regex can only match the sources GA4 receives.
Get started today
Find out where your brand stands in AI. Free.
Run a free AI visibility analysis on your domain. No credit card, results in minutes. See what AI engines say about your brand today.
Brands already measuring their AI visibility with Zaher.


