How to Track AI Search Traffic in Google Analytics 4
ChatGPT, Perplexity, and Claude now send measurable traffic to websites. Here's exactly how to identify, track, and attribute revenue to AI search visitors in GA4.
Aeranko Editorial Team
AI Search Optimization Experts

AI search engines like ChatGPT, Perplexity, and Claude are sending measurable traffic to websites — and most companies have no idea. Unlike traditional search where Google Analytics automatically captures the source, AI referral traffic often shows up as 'direct' or gets lumped into 'other'. Here's exactly how to identify, track, and attribute revenue to visitors who find your brand through AI search.
Why AI Traffic Is Hard to Track
When a user asks ChatGPT 'what's the best project management tool?' and clicks a link in the response, that click doesn't always carry a referrer header. Many AI platforms use intermediary redirects, embed links in conversation UI, or strip referrer data entirely. The result: GA4 shows these visitors as 'direct' traffic — mixing them in with bookmarks and typed URLs.
This is a problem because AI search traffic converts differently from other channels. Users arriving from AI recommendations have higher intent (they asked a specific question) and higher trust (the AI recommended your brand). Without proper tracking, you're making marketing decisions without understanding one of your fastest-growing channels.
Known AI Search Referrer Domains
The first step is knowing what to look for. AI platforms that send trackable referral traffic include: chatgpt.com and chat.openai.com (ChatGPT), perplexity.ai (Perplexity), gemini.google.com (Gemini), claude.ai (Claude), copilot.microsoft.com (Copilot), you.com, and phind.com. When users click links in responses from these platforms, the referrer domain appears in GA4's session source.
- chatgpt.com / chat.openai.com — ChatGPT web interface clicks
- perplexity.ai — Perplexity answer citations
- gemini.google.com — Google Gemini response links
- claude.ai — Claude conversation links
- copilot.microsoft.com — Microsoft Copilot citations
- you.com — You.com search results
Setting Up AI Traffic Tracking in GA4
In GA4, go to Admin → Data Streams → your web stream → Configure tag settings → List unwanted referrals. Make sure none of the AI domains above are listed as unwanted referrals — if they are, GA4 will ignore the referrer and mark those sessions as 'direct'.
Next, create a custom channel group in GA4: Admin → Channel groups → Create new. Add a channel called 'AI Search' with the rule: Source matches regex (chatgpt|perplexity|gemini|claude|copilot|you\.com|phind). This gives you a dedicated channel in all GA4 reports that shows AI search traffic separately from organic, paid, and direct.
Tracking AI Crawler Visits
Beyond user traffic, AI platforms send crawlers to index your content. GPTBot (OpenAI), PerplexityBot, ClaudeBot (Anthropic), and Google-Extended all visit your site regularly. Tracking these visits tells you which pages AI platforms are indexing — and which they're missing.
Aeranko provides a middleware snippet you can install on your site that automatically detects AI crawler visits and sends them to your dashboard. You'll see which crawlers visit, how often, and which pages they index. This data feeds into your AI Visibility Score and helps you optimize which content gets seen by AI models.
Revenue Attribution: Connecting the Dots
The real value comes from connecting AI traffic to revenue. With Aeranko's GA4 integration, we pull your session and conversion data, filter it by AI referrer sources, and show you: how many sessions came from AI search, what your AI traffic conversion rate is compared to other channels, and how much revenue those conversions generated.
This closes the loop: you can see your AI Visibility Score (how well AI platforms know your brand), your AI traffic (how many users those mentions drive), and your AI revenue (what those users are worth). That's the data you need to justify investing in AEO optimization.
Get Started in 5 Minutes
Run a free AI Visibility Audit at aeranko.com to see your baseline score. Then connect GA4 to see your AI traffic and revenue attribution. The whole setup takes under 5 minutes and gives you data you can act on immediately.
See how your brand ranks in AI search — for free
Run a free AI audit and get your visibility score across ChatGPT, Perplexity, Gemini, and Google AI Overviews in 60 seconds.
Run Free AI Audit