AI Analytics

How to Track ChatGPT, Perplexity and Claude Traffic in GA4

Step-by-step 2026 guide to tracking ChatGPT, Perplexity, Claude and Gemini referral traffic in GA4 using a custom channel group regex — plus what GA4 misses.

By CitedPulse Research · Updated · 5 min read

TL;DR

  • Create a GA4 Custom Channel Group called 'AI Search' using a single Session Source regex covering chatgpt.com, perplexity.ai, claude.ai, gemini.google.com, copilot.microsoft.com, and you.com.
  • GA4 only sees human clicks that pass a referrer header — it misses zero-click brand recommendations, mobile app clicks that strip referrers (landing as Direct), and non-JS AI crawlers (GPTBot, PerplexityBot, ClaudeBot).
  • Always separate human AI referral sessions from server-side AI bot logs so you can see which pages AI crawls before referral clicks appear.
  • Pair GA4 referral tracking with weekly unbranded AI visibility audits on CitedPulse to measure share of voice even when users don't click.

Copy-ready GA4 regex for AI search traffic

In Google Analytics 4, go to Admin → Data display → Channel groups → Create new channel group, add a channel named AI Search, place it above Referral, and match Source with this regex:

.*(chatgpt.com|chat.openai.com|perplexity.ai|claude.ai|gemini.google.com|copilot.microsoft.com|edgeservices.bing.com|poe.com|you.com|kagi.com|meta.ai|grok.com).*

Within 24 hours, GA4 will group new sessions from ChatGPT Search, Perplexity, Claude, Gemini, and Copilot into their own acquisition row so you can compare conversion rate and revenue per visitor against Google Organic.

3 blind spots GA4 cannot see in AI search

Most teams set up the GA4 regex and assume AI search is tiny. In practice, GA4 under-counts AI influence for three structural reasons:

SignalVisible in GA4?How to Measure It
Desktop clicks from ChatGPT / Perplexity webYes (when referrer is sent)GA4 Custom Channel Group or first-party analytics
Mobile app clicks & copy-pasted brand searchesNo (shows up as Direct or Branded Google)Post-signup "How did you hear about us?" + branded search lift
AI crawler hits (OAI-SearchBot, PerplexityBot, ClaudeBot)No (bots don't run GA4 JS)Edge / server access logs (Cloudflare Workers, Nginx, Vercel)
Zero-click brand mentions & competitor recommendationsNoAutomated unbranded prompt audits (CitedPulse)

How to connect AI visibility to revenue

Follow a three-layer measurement stack instead of guessing:

  1. Crawl layer: Verify AI bots can read your site without JavaScript using our AI Crawler Checker and log OAI-SearchBot / PerplexityBot / ClaudeBot hits at the server edge.
  2. Visibility layer: Compare your classic Google rank vs live AI recommendation rank with our free Site Ranking Checker, or run a full CitedPulse AI visibility audit to see how often AI recommends your brand vs competitors on unbranded buyer prompts — and which third-party URLs it cites.
  3. Revenue layer: Tag your GA4 AI Search channel and judge GEO work by qualified signups and net revenue per visitor over 14-to-30-day windows, not raw impressions.

Frequently asked questions

Why does ChatGPT traffic show up as Direct in GA4?

Clicks from the ChatGPT iOS and Android apps, or users who read a recommendation in ChatGPT and then type your brand URL into a browser, do not send a chatgpt.com HTTP referrer. ChatGPT web search does append utm_source=chatgpt.com on many outbound links.

Does GA4 track GPTBot, PerplexityBot, or ClaudeBot visits?

No. AI crawlers do not execute client-side Google Analytics JavaScript, and GA4 intentionally filters known bots. You must inspect server or CDN edge logs (such as Cloudflare) to monitor AI crawler activity.

How do I know if ChatGPT is recommending my brand even before traffic arrives?

Run an unbranded buyer-intent audit with CitedPulse (citedpulse.com). It probes live web-grounded AI engines and shows your mention rate, average recommendation rank, and cited sources in 15 seconds.

Related