How to Track AI Search Traffic (ChatGPT, Perplexity, Claude) in 2026

Step-by-step guide to measuring traffic from ChatGPT, Perplexity, Claude, and Gemini in GA4, server logs, and dedicated AI visibility tools — including why much of it hides in your Direct bucket.

Quick Answer

In Google Analytics 4, go to Admin → Data Display → Channel Groups and add an 'AI Traffic' channel using the regex pattern chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|anthropic\.com|gemini\.google\.com|copilot\.microsoft\.com. Place it above 'Referral' in priority order. Caveat: an estimated 30–50% of AI referral sessions arrive with no HTTP referrer and land in Direct, and even a well-tuned setup recovers only about 50–70% of true AI clicks — so GA4 undercounts AI visits. Pair it with server-log crawler analysis to see the full picture.

TL;DR: AI search engines now send measurable traffic, but a large share arrives without a referrer header and hides in your GA4 “Direct” bucket — estimates put it at 30–50% of AI referrals, and even a well-tuned setup recovers only about 50–70% of true AI clicks. The fix is a three-layer approach: a custom GA4 channel group for attributable AI referrals, server-log analysis for crawler traffic, and a dedicated AI visibility tool for citation tracking. This guide covers all three, step by step.


Why AI Search Traffic Is Hard to Measure

When someone clicks a ChatGPT citation and lands on your site, their browser should send a Referer header telling your analytics where they came from. But most AI engines actively suppress this.

The main culprits:

  • In-app browsers — most AI chat happens inside mobile apps and embedded WebViews (iOS WKWebView, Android Custom Tabs), which commonly strip the Referer header before the click reaches your server.
  • Copy-paste behavior — users often copy a URL from an AI answer and open it manually, which carries no referrer at all.
  • Strict referrer policies — outbound links from Claude, Gemini, and Copilot frequently arrive with no referrer. This is usually attributed to the WebView and copy-paste effects above rather than a single published rel="noreferrer" policy, but the net result is the same: the source is invisible to GA4.

The practical result: across measured samples, an estimated 30–50% of AI referral sessions arrive with no referrer and get classified as Direct in GA4 — and even a carefully configured channel group typically recovers only 50–70% of your true AI clicks. Your dashboard chronically undercounts AI-driven traffic.

That said, the portion that is attributable is growing. ChatGPT expanded utm_source=chatgpt.com tagging across citation links in June 2025. Perplexity passes referrers more consistently because its architecture links out directly from live results. So your visible AI traffic in GA4 is a real floor — not your total.


Step 1: Set Up a Custom AI Traffic Channel in GA4

If your property is on GA4 (not Universal Analytics):

Google added a native AI Assistant channel to GA4’s Default Channel Group on May 13, 2026. It automatically classifies sessions from AI assistants — Google cites ChatGPT, Gemini, and Claude as examples. Check whether it’s already active:

  1. Go to Admin → Data Display → Channel Groups
  2. Open Default Channel Group
  3. Look for an “AI Assistant” entry near the bottom

If you see it, GA4 is already bucketing the major assistants for you. It still can’t recover referrer-less sessions (they stay in Direct), and it keys off Google’s maintained source list — so a custom channel is worth keeping to guarantee you also capture Perplexity, Copilot, and newer engines the moment they appear. Create one:

Creating a comprehensive AI Traffic channel:

  1. In the same Channel Groups admin panel, click Create new channel group
  2. Name it something like “All Channels + AI”
  3. Add a new channel called AI Traffic
  4. Set the condition: Session source matches regex:
chatgpt\.com|chat\.openai\.com|openai\.com|perplexity\.ai|claude\.ai|anthropic\.com|gemini\.google\.com|copilot\.microsoft\.com|you\.com|phind\.com
  1. Critical: Drag “AI Traffic” above “Referral” in the list. GA4 evaluates channels top-down and assigns the first match — if Referral is higher, perplexity.ai sessions get swallowed into generic Referral before reaching your AI rule.
  2. Save and apply to your Explorations and standard reports.

Reading the data:

Once the channel is active, go to Reports → Acquisition → Traffic acquisition and switch your channel group dropdown to the one you just created. You’ll see sessions from AI engines as a row. Expect the numbers to be lower than reality — but they’re a reliable trend signal. If you see AI traffic growing week-over-week, that’s meaningful even at an absolute undercount.

You can also build an Exploration (the old custom reports) filtering to session_source containing chatgpt.com or perplexity.ai individually, which gives you per-platform breakdowns.


Step 2: Monitor AI Crawler Traffic in Server Logs

GA4 is a JavaScript-based tool that only fires when a human browser loads your page. AI crawlers don’t run JavaScript — they fetch raw HTML with HTTP requests. The only place that traffic appears is your server access logs.

This matters because crawler frequency is a proxy for citation activity. If ChatGPT-User is hitting your pages every day, ChatGPT is likely citing your content in user conversations. If it’s never appeared, you may not be getting cited at all.

The main AI user-agent strings to watch:

CompanyBot namePurpose
OpenAIGPTBotTraining data collection
OpenAIOAI-SearchBotSearch index for ChatGPT Search
OpenAIChatGPT-UserReal-time page fetches during user queries
AnthropicClaudeBotTraining data collection
AnthropicClaude-UserReal-time page fetches during user queries
PerplexityPerplexityBotSearch index and retrieval
PerplexityPerplexity-UserReal-time user query fetches

The -User bots are the most important for traffic attribution — they indicate active real-time citation. Training bots (GPTBot, ClaudeBot) are about future model training and don’t directly drive citations today. Anthropic’s older claude-web and anthropic-ai tokens are deprecated, so you can ignore them.

A note on Google: Google-Extended is a robots.txt control token that lets you opt out of Gemini/Vertex AI training — it is not a crawler user-agent, so it won’t appear in your access logs. Google doesn’t currently expose a distinct, public UA string for real-time Gemini fetches, which is why Gemini referral measurement leans on GA4 and visibility tools rather than log analysis.

How to extract this from your logs:

If you’re on Cloudflare, Nginx, or Apache, the raw access log format includes the User-Agent string on every line. On a Linux server:

grep -E "GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-User|PerplexityBot|Perplexity-User" /var/log/nginx/access.log | \
  awk '{print $1, $7, $11}' | sort | uniq -c | sort -rn | head -50

This shows request count, IP, URL, and user-agent for every AI crawler hit — organized by most-frequent. The URLs it’s fetching most are likely the pages getting cited.

If you’re on a managed host without log access, Cloudflare’s Analytics → Bots tab provides an approximation. Cloudflare’s 2025 Radar data showed AI bot traffic increasing ~40% year-over-year.


Step 3: Use a Dedicated AI Visibility Tool

GA4 plus server logs tells you about traffic you already got. But they can’t answer: “Is my brand being mentioned in ChatGPT conversations about my topic, even when no one clicks?”

For that, you need a tool that actively queries AI engines.

The leading options in 2026:

ToolBest forPricing tier
ProfoundEnterprise brands, deep citation intelligenceEnterprise ($96M Series C, Feb 2026, $1B valuation)
Peec AIPure AI visibility trackingMid-market
OtterlyFast setup, URL citation analysisSMB-friendly
Semrush AI Visibility ToolkitTeams already in the Semrush ecosystemAdd-on to existing plans
PromptmonitorCustom prompt testing, multi-platformSMB to mid-market

These tools run a set of prompts relevant to your industry (e.g. “best project management software for small teams”) across ChatGPT, Perplexity, and Google AI Overviews, then track whether your brand is cited, where, and against which competitors.

For small businesses, Otterly or Peec AI are the lowest-friction entry points. For a free starting point, SEOPulse’s own AI Search Audit tool checks your site’s structural readiness to be cited — the GEO signals that determine whether AI engines can extract and trust your content.


Putting It Together: A Practical Tracking Stack

No single tool catches everything. Here’s the minimal setup that gives you a real picture:

  1. GA4 custom channel group — attributable referrals from AI engines (roughly 50–70% of true AI traffic once well-configured, but directionally accurate)
  2. Server log bot filter — weekly grep for ChatGPT-User, Claude-User, PerplexityBot — shows citation frequency and which pages are being fetched
  3. One AI visibility tool — monthly audit of brand mentions in AI answers for your target queries
  4. Watch Direct traffic — if AI search is growing, unexplained Direct typically grows in parallel. A sustained lift in Direct alongside stable or declining Organic is a strong indirect signal.

For the measurement to be useful, run it weekly rather than monthly. AI search share is shifting fast. One vendor’s GA4 panel (Higoodie, triangulated with SimilarWeb and Sensor Tower) put ChatGPT at about 89% of measurable B2B AI referral traffic in mid-2025, falling to roughly 63% across March–April 2026 as Claude (~18%) and Gemini (~11%) grew. Treat that as one directional estimate, not an industry census — but the takeaway holds: the mix is moving on a quarterly cadence, not annually, so don’t hard-code last quarter’s assumptions.

Once you’re tracking the traffic, the logical next step is improving what AI engines say about you — see How to Get Your Business Cited by ChatGPT and Perplexity for the content and schema tactics that drive citation frequency.

Frequently Asked Questions

Why does ChatGPT traffic show up as Direct in GA4?
ChatGPT (and most AI engines) use a strict referrer policy or add rel="noreferrer" to outbound links, which strips the HTTP Referer header before the request reaches your server. GA4 can't see where the visitor came from, so it classifies the session as Direct. Mobile app traffic (iOS WKWebView, Android Custom Tabs) strips the referrer entirely by default. ChatGPT started appending utm_source=chatgpt.com to some citation links in mid-2025, but this only applies to inline citation links — not all referrals.
Which AI engines actually pass a referrer header?
Perplexity.ai is the most consistent at passing referrers because it uses live web retrieval and links out directly. ChatGPT passes referrers on some citation-style links and appends utm_source=chatgpt.com to many citations (expanded June 2025). Claude.ai and Google Gemini links frequently arrive with no referrer, largely because of copy-paste behavior and in-app WebViews (iOS WKWebView, Android Custom Tabs) rather than a single published policy. In practice, a well-configured GA4 setup recovers roughly 50–70% of your true AI clicks as attributable referrals; the remaining 30–50% lands in Direct.
Does GA4 track AI traffic automatically in 2026?
Yes — Google added a native 'AI Assistant' channel to GA4's Default Channel Group on May 13, 2026. It automatically classifies sessions from AI assistants (Google cites ChatGPT, Gemini, and Claude as examples). It keys off Google's maintained source list and still can't recover referrer-less sessions, so a custom channel group with your own regex is worth keeping — it guarantees you also capture Perplexity, Copilot, and newer engines the moment they send traffic.
What are the AI crawler user-agent strings I should track in server logs?
OpenAI operates GPTBot (training), OAI-SearchBot (search index), and ChatGPT-User (real-time page fetches). Anthropic runs ClaudeBot (training) and Claude-User (real-time); the older claude-web and anthropic-ai tokens are deprecated. Perplexity uses PerplexityBot and Perplexity-User. The -User bots (ChatGPT-User, Claude-User, Perplexity-User) fetch pages in real time to answer user questions, so high frequency from these indicates active citation activity. Note that Google-Extended is a robots.txt control token, not a crawler user-agent — it won't appear in your access logs.
What tools track AI search visibility beyond GA4?
For citation tracking across AI platforms, the leading tools in 2026 are Profound (enterprise-grade; raised a $96M Series C in February 2026 at a $1B valuation), Peec AI (AI visibility specialist), Otterly (fast onboarding, URL citation analysis), Semrush's AI Visibility Toolkit (integrated with their SEO stack), and Promptmonitor (custom prompt testing). These tools run regular prompts across ChatGPT, Perplexity, and Google AI Overviews to show where your brand is cited, how often, and against which competitors.
Can I use UTM parameters to track AI traffic more reliably?
ChatGPT appends utm_source=chatgpt.com to many citation links (expanded June 2025), which survives referrer-stripping and lands clearly in GA4's campaign report. You cannot add UTM parameters to links that appear in AI-generated answers yourself — the AI engine adds them if it chooses. Your best alternative is to make your GA4 custom channel group the primary source of truth for AI traffic, accept the undercounting, and track total 'Direct' volume as a rough proxy — if AI search is growing, unexplained Direct usually grows alongside it.