How to track AI traffic in GA4 (ChatGPT & Perplexity)

By The AI Visibility Checker team7 min read

Last updated: June 10, 2026

TL;DR

GA4 doesn't have an “AI” channel — visits from ChatGPT, Perplexity and friends land in Referral, mixed in with everything else. Build a custom channel group (or a segment) that matches their referrer domains and you'll see AI traffic as its own line. Just know the ceiling: a lot of AI-assistant visits arrive with no referrer at all, so GA4 undercounts. Pair it with server logs and citation checks for the full picture.

Why AI traffic is invisible by default

When someone clicks a link inside an AI answer, their browser usually sends your site a referrer like chatgpt.com or perplexity.ai. GA4 files that under the generic Referralchannel — it has no built-in concept of “AI assistants.” So the traffic is there; it's just not labelled. The fix is to teach GA4 to recognize those domains and group them.

The referrer domains to match

Match these source domains (they shift over time, so revisit occasionally):

  • chatgpt.com and chat.openai.com — ChatGPT
  • perplexity.ai — Perplexity
  • gemini.google.com — Gemini
  • copilot.microsoft.com and bing.com/chat — Microsoft Copilot
  • claude.ai — Claude

Build an “AI Assistants” channel group

This makes AI traffic show up in your standard reports as its own channel:

  1. GA4 → Admin → Data display → Channel groups → Create new channel group.
  2. Add a channel named AI Assistants and order it above Referral (rules are evaluated top-down).
  3. Set the condition to: Source matches regex chatgpt\.com|openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai
  4. Save. New traffic is grouped going forward (channel groups aren't retroactive).

Prefer not to touch channel groups? Create a Comparison or explore a Segment with the same regex on Session source — same insight, non-destructive, and it works on historical data.

Tag the links you control

For links you place yourself (in an llms.txt-referenced page, a docs site an agent reads, or anywhere you can control the URL), add UTM parameters like ?utm_source=chatgpt&utm_medium=ai. That removes the referrer guesswork for those paths. You can't UTM-tag organic citations, but it cleans up the traffic you do control.

What GA4 still can't show you

Be honest about the ceiling. Many AI-assistant visits arrive with no referrer — native apps, in-answer fetches, and privacy settings strip it — so GA4 systematically undercounts AI traffic. And GA4 only sees people who actually click through; the far bigger effect of AI search is the zero-clickanswer where you were cited but nobody visited. GA4 can't measure being cited at all.

For that, you need two other signals: server logs (to see the AI crawlers actually fetching you) and citation checks (to see whether assistants quote you). We cover both in how to measure if AI assistants cite your site. Treat GA4 as one leg of the stool, not the whole stool.

FAQ

Why is my ChatGPT traffic lower than I expected?

GA4 only counts click-throughs that carry a referrer. A large share of AI-assistant visits arrive with no referrer, and most AI value is zero-click (you're cited but not visited). GA4 undercounts by design — it's a floor, not the full number.

Will the channel group fix historical data?

No — channel groups apply going forward only. To analyze past data, use a Segment or Comparison with the same regex instead, which works retroactively.

Does ranking in AI answers even matter if traffic is small today?

AI referral traffic is still a small share of the web today, but it's growing fast and tends to arrive further down the funnel. The bigger near-term effect is influence on shortlists — being the source an assistant recommends — which a click-only tool like GA4 never captures.

Want to know whether AI assistants can even reach your content in the first place? Run a free audit or take the 2-minute quiz.

  • 6 min read

    AEO vs GEO vs SEO: what’s the difference?

    AEO, GEO and SEO explained without the hype: what each optimizes for, where they overlap, when each matters, and whether you actually need all three in 2026.

  • 7 min read

    Is Cloudflare blocking your AI crawlers?

    Cloudflare can silently block GPTBot, ClaudeBot and PerplexityBot before they ever reach your robots.txt — making your site invisible to ChatGPT. How to check, and how to fix it.

  • 7 min read

    How to measure if AI assistants cite your site

    The four signals that actually tell you when ChatGPT, Claude, Gemini or Perplexity quote your pages — referrer headers, server-log fingerprints, direct prompting, and branded-search lift — with what each one misses.