Free AI search tool
GA4 AI Traffic Regex Generator
Pick the AI assistants you want to track and get a regex for a custom GA4 channel, so AI traffic stops hiding inside Referral.
226 characters
Add it to Google Analytics 4
- 1 In Google Analytics 4, open Admin, then Data display > Channel groups.
- 2 Select Create new channel group and give it a name.
- 3 Select Add new channel, name it AI assistants, set the condition Source matches regex and paste your regex.
- 4 Use Reorder to move AI assistants above Referral, because GA4 assigns each session to the first channel that matches.
- 5 Save the group, then pick it in your Acquisition reports.
Why you need it
Why AI traffic needs its own channel
Google Analytics 4 has no built-in AI channel, so visits from AI assistants are easy to miss.
AI traffic hides in Referral
GA4 files visits from chatgpt.com or perplexity.ai under Referral, next to every other website that links to you.
Tagged links still match
ChatGPT adds utm_source=chatgpt.com to many links it shows, so the session source still reads chatgpt.com and the regex catches it.
Some AI visits look Direct
Some apps send no referrer at all, so those visits look like Direct. No regex can recover them, which makes your AI share a minimum.
GA4 AI traffic questions
How to track AI assistant traffic in Google Analytics 4.
Explore more free AI search tools
LLM Pulse is the all-in-one AI search and GEO platform. Use these free tools to audit how AI engines see your brand, then track it all in one place.
See how often AI engines mention your brand across ChatGPT, Perplexity, and Gemini.
Check whether AI answers mention your brand for the prompts that matter.
Measure how discoverable your brand is across AI engines.
Search ads observed in ChatGPT by advertiser, country, message, and date.
Score your domain on the files, formats and interfaces AI agents look for.
Test whether AI engines can crawl and render your pages.
Check whether AI crawlers are allowed to read your site.
Choose which AI crawlers, search bots and assistants can read your site and get a ready robots.txt.
Generate an llms.txt file so AI crawlers understand your site.
Check whether your site appears in Common Crawl, the open corpus that trains most AI models.
Check whether your site structure helps AI engines understand you.
Audit your structured data so AI and search engines understand your pages.
Grade how well a page is optimized for AI answer engines.
See if your content is ready to be cited in AI answers.
Validate your product feed for ChatGPT shopping results.
Remove hidden characters, odd spacing, and leftover formatting from pasted text.
Scan text for invisible watermark characters, decode hidden payloads, and strip them.
See your AI traffic without regex
LLM Pulse connects to Google Analytics 4 and other analytics tools, separates AI sessions by assistant and ties them to conversions and revenue.