Free tool · runs in your browser
Regex and filters for AI assistant traffic
AnswerTraffic builds a regex or filter that finds AI assistant visits in GA4, Plausible, Matomo and PostHog. It uses a sourced hostname list and a test field that checks the pattern against a real referrer. Pick your tool and assistants below; nothing is sent to a server.
- 9 hostnames with a source, 15 more marked unverified, list last checked .
- Syntax is labeled documented, partly documented or unverified, per tool. Where a tool's page gives no syntax, we say so.
- Not sure what you are looking at? Try the referrer checker or clean a link with the UTM cleaner.
Analytics tool
Hostnames
Only hostnames with a test or a vendor source.
UTM variants
For hand-made tags such as utm_source=chatgpt.
7 values for ga4.
copilot\.microsoft\.com|gemini\.google\.com|chat\.mistral\.ai|perplexity\.ai|chatgpt\.com|www\.meta\.ai|claude\.ai
Paste into a custom channel group or an Explorations filter on Session source.
Checked locally in your browser against the pattern above.
Syntax partly documented7 values
- GA4 compares the whole value and is case-sensitive by default, so the pattern needs no anchors and the hostnames are written in lower case.
- The pattern uses only literals, escaped dots and alternation, which every RE2-style engine accepts. Do not add lookahead or backreferences: RE2 does not support them.
- Place the channel above Referral: traffic goes to the first channel whose rule it matches.
- The list holds exact hostnames. A www. variant (for example www.chatgpt.com) is recognized by the referrer checker but is not in this pattern; add it if your reports show it.
The data behind the tools
- Hostnames listed249 with a source, the rest unverified
- Analytics tools covered4GA4, Plausible, Matomo, PostHog
- Published figures compared8AI share of traffic 0.32 to 1.08 %
- Dated changes logged3Latest: 9 Oct 2026
- Dataset version1.2.0Last verified 30 Oct 2026, 2 releases
Updated . How we check
What to do with the result
GA4
Paste the regex into a custom channel group as Source matches regex, and place the channel above Referral.
Plausible and PostHog
Use the native AI channel first and the printed values to cross-check one hostname at a time.
Matomo
Use the segment Channel Type Is ai, or the referrerUrl segment on versions before 5.5.0.
Before you trust the numbers
A regex only counts visits that arrive with a referrer or a tag. Some surfaces send neither, and in October 2026 ChatGPT clicks were reported to lose both for a while. Published studies put the AI share of traffic anywhere from 0.32 % to 1.08 %, because they count different things. Read why AI clicks end up as Direct, the published numbers with their methods and the referrer behavior changelog.
Explainers
- Adobe Analytics AI Traffic: 21 Hostnames, 9 UnlistedAdobe Analytics lists 21 AI hostnames under Referrer type. 9 of 22 hostnames in our open dataset are not on it verbatim. Rule and derived-field options.
- HubSpot AI Referrals: Which AI Domains It CountsHubSpot's AI Referrals source names 9 AI domains. Only 7 of 22 hostnames in our dataset match exactly, and earlier UTM rules can reroute tagged links.
- Why AI traffic shows up as DirectThe mechanisms that strip the referrer from an AI click, and how many visits carry only a tag.
- utm_source=chatgpt.com explainedWhere the parameter comes from, a sourced timeline, what we could not verify and how to remove it.
- Does Gemini add UTM tags to links?Reported, undocumented by Google. How to check what arrives in your analytics.
- Claude referral traffic in analyticsWhat is verified about visits from Claude, what is only reported and a three-step check.
All articles: AI traffic explained.
Setup guides
- GA4Native AI Assistant channel since a 13 May 2026 release note; the help page lists examples, not every hostname.
- PlausibleNative AI Assistants channel; referrer or UTM required; no start date stated.
- MatomoNative channel type ai; On-Premise from 5.5.0; not retroactive.
- PostHogNative channel type AI (UTMs and referring domains); referrer filter syntax unverified.
All guides: Setup guides. Open data: referrer dataset (CSV and JSON). How we source: methodology.