Tracking • commercial intent
How to Track ChatGPT and AI Referral Traffic All the Way to Revenue
A practical guide to identifying, measuring, and attributing traffic from ChatGPT, Claude, Perplexity, and Gemini. Covers referrer detection, provider-level attribution, conversion tracking, and reporting.
The AI referral traffic you're probably missing
When a user asks Perplexity 'best CRM for freelancers' and clicks through to your site, that visit appears in your analytics as a referral from perplexity.ai. That part is trackable. But when a user asks ChatGPT the same question, reads the recommendation, then types your URL directly into their browser — that shows up as direct traffic. No referrer, no attribution, no proof that AI drove the visit.
This attribution gap is the core challenge of measuring AI-driven traffic. Some AI interactions generate trackable referrals (Perplexity clicks, ChatGPT Browse links), while others generate invisible influence (model recommendations that users act on independently). A complete measurement strategy needs to capture both.
The business stakes are real: teams that can prove AI referral ROI get budget for AI visibility work. Teams that can't measure it treat AI optimization as a nice-to-have that loses to projects with clearer attribution.
What AI referral traffic actually looks like in analytics
AI referral traffic comes from several distinct sources, each with different tracking characteristics.
- Perplexity.ai referrals — The most trackable AI traffic source. When users click citation links in Perplexity answers, the referrer header contains perplexity.ai. These show up clearly in GA4, Plausible, and other analytics tools as referral traffic.
- ChatGPT Browse — When ChatGPT's browsing agent fetches your page and presents content to the user, any click-through carries a chatgpt.com referrer. These are less common than Perplexity referrals but growing as Browse usage increases.
- SearchGPT — OpenAI's search product generates referrals similar to traditional search engines. These appear as search traffic from searchgpt.com or chat.openai.com depending on the integration.
- Gemini citations — Google's Gemini occasionally includes clickable source links. These referrals come from gemini.google.com and are trackable but currently low-volume.
- Dark traffic — The largest category by volume. A user reads an AI recommendation, remembers your brand, and visits directly. Or they search your brand name on Google and click through. This traffic is real but invisible to standard referrer-based attribution.
Setting up basic referrer tracking
Start by creating referrer-based segments in your analytics tool for known AI traffic sources.
In GA4: go to Admin > Data Streams > your stream > Configure Tag Settings > List Unwanted Referrals. Make sure none of the AI referral domains (perplexity.ai, chat.openai.com, chatgpt.com, gemini.google.com) are on the unwanted list. Then create a custom segment or report that filters traffic where the source/medium matches these domains.
In Plausible, Fathom, or Umami: create custom filters for referrer sources matching AI domains. These analytics tools typically show referrers by default without additional configuration.
This baseline tracking captures the visible portion of AI referral traffic. For most sites, this represents 20-40% of actual AI-influenced visits — the rest arrives as direct or branded search traffic.
Provider-level attribution with signed tracking links
To track AI-influenced traffic beyond basic referrers, you need dedicated tracking links embedded in the touchpoints where AI agents discover your site — your llms.txt, structured data CTAs, and WebMCP endpoint responses.
The approach: generate unique tracking URLs for each AI provider context. When your llms.txt links to your pricing page, use a tracked URL like yourdomain.com/pricing?ref=llms&provider=openai. When your structured data includes a URL, use a tracked variant. This lets you attribute visits to specific AI discovery paths.
For HMAC-signed tracking (recommended for production), generate server-signed click URLs that include a provider identifier, campaign tag, and cryptographic signature. When a user clicks through, the tracking endpoint validates the signature, records the touchpoint with provider metadata, and redirects to the destination. This prevents URL tampering and gives you verified attribution data.
The key advantage of signed tracking over UTM parameters: signed links can be verified as authentic (not manually crafted or shared), they record server-side touchpoints regardless of client-side analytics blockers, and they enable full-funnel attribution from click to conversion.
Connecting clicks to revenue
Attribution becomes valuable when you can trace an AI referral all the way to revenue. This requires connecting your tracking touchpoints to your conversion events.
For ecommerce: when a tracked click arrives, store the touchpoint ID in a session or first-party cookie. When the user completes a purchase, fire a conversion event that includes the touchpoint reference, order ID, and revenue amount. This creates a touchpoint-to-conversion chain that proves 'this $249 order originated from a Perplexity referral on this keyword.'
For SaaS: track signup events (free trial, demo request, plan upgrade) as conversions with the originating touchpoint. Even if the conversion happens days after the initial click, the stored touchpoint links the revenue back to the AI referral source.
For lead generation: track form submissions and qualified lead status as conversion milestones. When a lead eventually closes, update the conversion record with revenue to complete the attribution loop.
Building a weekly AI attribution report
A useful AI attribution report answers four questions: How much traffic came from AI sources? Which providers drove the most valuable traffic? Which pages are being cited most often? And how does AI-attributed revenue trend over time?
Report structure: start with total AI referral sessions broken down by provider (Perplexity, ChatGPT, Gemini, Claude, Grok). Show conversion rate and revenue per provider. Then show top landing pages by AI referral volume — these are the pages AI models are actively recommending.
The most actionable insight: compare AI referral conversion rates to organic search conversion rates. In most cases, AI referral traffic converts at a higher rate because the user arrives with a specific recommendation context ('ChatGPT said this is the best tool for X') rather than a generic search intent.
Track the trend weekly. AI referral traffic is growing rapidly for most sites — establishing a baseline now and monitoring growth gives you data to justify investment in AI visibility improvements.
Dealing with dark AI traffic
The hardest part of AI attribution is the traffic you can't directly measure — users who were influenced by an AI recommendation but arrive through branded search or direct navigation.
Indirect measurement approaches: monitor branded search volume over time. An increase in branded searches that correlates with improved AI visibility (after fixing robots.txt, publishing llms.txt, etc.) suggests AI-influenced traffic arriving through Google. Survey new customers about how they discovered you — 'recommended by ChatGPT/AI assistant' is an increasingly common response.
Another signal: if your AI visibility score improves and your direct traffic increases proportionally without other marketing changes, the correlation likely reflects AI-driven discovery. This isn't proof in a statistical sense, but it's evidence for business decision-making.
Execution Checklist
- • Verify AI referral domains (perplexity.ai, chatgpt.com, gemini.google.com) are not on your analytics unwanted referral list.
- • Create custom analytics segments or reports filtering for AI referral sources.
- • Generate tracked URLs for your llms.txt links and structured data CTAs — one per provider context.
- • Implement signed click tracking with provider and campaign metadata for verified attribution.
- • Connect tracking touchpoints to conversion events (purchases, signups, form submissions) with revenue data.
- • Build a weekly report showing AI referral sessions, provider breakdown, conversion rate, and revenue trend.
- • Monitor branded search volume as a proxy for dark AI-influenced traffic.
FAQ
Can I track AI referral traffic in GA4 without custom setup?
Partially. GA4 automatically shows referral traffic from perplexity.ai, chatgpt.com, and other AI domains in the Traffic Acquisition report. But it doesn't separate AI referrals into a dedicated channel, doesn't track provider-level conversion attribution, and can't measure dark traffic (users who visit directly after an AI recommendation). For complete measurement, you need custom segments and ideally server-side tracking.
How much of my traffic is actually from AI sources?
It varies widely by industry and site type. Content-heavy sites with strong AI visibility typically see 3-8% of measurable referral traffic from AI sources (primarily Perplexity), with an estimated 2-3x more arriving as dark traffic. Ecommerce sites with good structured data may see higher percentages as AI agents increasingly assist with product research. The numbers are growing month over month for most sites.
How quickly does AI referral traffic respond to visibility improvements?
For retrieval-based platforms (Perplexity, ChatGPT Browse), improvements can be visible in referral data within 1-2 weeks of fixing crawler access and publishing llms.txt. For training-based influence (ChatGPT and Claude answering from memory), the lag is longer — weeks to months depending on model retraining cycles. The fastest signal is Perplexity referral traffic, which responds almost immediately to crawl access changes.