Scholar HeistScholar Heist

GA4 AI Traffic Segment Generator

Find out how much traffic you get from ChatGPT, Perplexity, Gemini and other AI tools. Pick your sources and copy a ready-made GA4 segment, custom channel group and Looker Studio filter. No API, no login.

AI sources to track
List updated: September 2025

Build a Session segment in an Exploration:

  1. GA4 → Explore → New exploration
  2. In Segments, click + → Session segment
  3. Add condition → Session source → matches regex
  4. Paste the regex below → Save and apply
.*(chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|bard\.google\.com|copilot\.microsoft\.com|bing\.com\/chat|claude\.ai|you\.com|phind\.com|kagi\.com|meta\.ai|deepseek\.com|mistral\.ai|grok\.com|x\.ai).*

Note: this is a floor. Many AI answers send no referrer (“dark” traffic), so real AI traffic is higher than any source-based segment can show.

Why track AI traffic at all?

People increasingly find brands through AI answers, not just Google. But GA4 lumps that traffic into “Referral” or hides it in “Direct”, so most teams have no idea it exists. A single regex turns those AI visits into a segment you can actually report on — sessions, conversions and revenue from AI, separated out.

What is “dark” AI traffic?

When an AI tool cites your page, the click often carries no referrer. GA4 then files it under Direct. So the segment this tool builds captures the AI visits that do pass a referrer — a reliable floor, not the full number. The real signal is the trend: is that floor growing month over month?

More free tools

Pair this with the AI Crawlability Checker (can AI bots even read your site?) and the llms.txt Generator (tell AI systems what your site is about). See all free SEO tools.

Frequently asked

How do I track AI traffic in GA4?
GA4 has no built-in AI channel, so you match the referral domains of AI tools with a regex. Create a Session segment (or a custom channel group) where Session source matches a regex of AI domains like chatgpt.com and perplexity.ai. This tool builds that regex and the exact click-path for you.
Why is my AI traffic undercounted?
Many AI answers open your link with no referrer, so GA4 records the visit as Direct instead of the AI tool. That is called dark traffic. Any source-based method, including this one, is therefore a floor — your real AI traffic is higher.
Which AI tools can I track?
The ones that pass a referrer: ChatGPT, Perplexity, Gemini, Microsoft Copilot, Claude, You.com, DeepSeek, Grok and more. You can toggle each source on or off before generating the regex.
Does this cost anything or need access to my GA4?
No. It generates copy-paste assets you add inside your own GA4 and Looker Studio. Nothing connects to your account and nothing is sent anywhere.

Built by Digital Scholar. Learn the full AEO/GEO process in our AI + Digital Marketing program.