Home / Blog / Track AI Search Referrals with UTM Tags

Track AI Search Referrals with UTM Tags

By UpGeo · 2026-07-20

UTM tags are the only way to tell which AI chat experience generated a sale or lead. Platforms like ChatGPT, Perplexity, Google AI Overviews, Gemini, and Copilot all send referral traffic, but the referrer data is stripped or useless, breaking standard attribution. To get around this, you can place UTM‑tagged URLs directly in the paths these models read when citing your content: your LLMs.txt file and the canonical‑like links you optimize for generative engines. When you embed utm_source, utm_medium, and utm_campaign parameters there, those otherwise invisible AI visits turn into measurable traffic that ties back to revenue.

Why standard attribution fails for AI search traffic

Standard web analytics look at the HTTP referrer to trace a visitor’s origin. But a click on a citation inside ChatGPT’s answer often comes with no referrer at all (because of Referrer-Policy: no-referrer) or just a bare domain like chat.openai.com, stripped of any useful path or query. Perplexity, Google AI Overviews (sitting right on the SERP), Gemini, and Copilot do the same. You end up with “direct / none” or a source that reveals nothing about the prompt or which AI platform sent the click. That breaks your ability to see if your Generative Engine Optimization (GEO) efforts are generating real pipeline, and it hides which content cluster is performing.

The UTM tagging framework for AI referrals

AI models decide how to present links on their own, so you need to influence the URL they pick. The best lever is to put UTM‑tagged versions of your key pages directly into your LLMs.txt file—a machine‑readable instruction file that leading AI crawlers honor. When a model fetches that file, it sees the exact URLs you want cited. If those URLs carry UTM parameters, every click out of an AI answer lands in your analytics with full attribution.

Here’s a UTM structure that works well for the major generative search players. Keep utm_medium consistent to group all AI traffic together, and use utm_source to tell the platforms apart.

AI Platform utm_source utm_medium Example URL
ChatGPT chatgpt ai_chat https://yoursite.com/guide?utm_source=chatgpt&utm_medium=ai_chat&utm_campaign=productivity
Perplexity perplexity ai_search ?utm_source=perplexity&utm_medium=ai_search&utm_campaign=productivity
Google AI Overviews google_ai_overview ai_overview ?utm_source=google_ai_overview&utm_medium=ai_overview&utm_campaign=productivity
Gemini gemini ai_chat ?utm_source=gemini&utm_medium=ai_chat&utm_campaign=productivity
Microsoft Copilot copilot ai_chat ?utm_source=copilot&utm_medium=ai_chat&utm_campaign=productivity

Important: A note of caution: never put UTM parameters on your main canonical URLs—that can confuse indexing signals. Instead, use an LLMs.txt file to serve tagged URLs only to AI crawlers. The free LLMs.txt Generator can build a properly formatted file with your UTM‑enriched links in a few minutes.

Align campaign values with content clusters

The utm_campaign field captures the “why” behind a visit. Map it to your content pillars or topic clusters—things like productivity-tools, budgeting-guides, brand-queries. That way, you can spot which topic areas are winning in generative search and which need more GEO attention. Later, if you run A/B tests on how your content appears in AI summaries, you can add utm_content to distinguish formats—like “carousel” vs. “paragraph.”

Step-by-step implementation

  1. Audit your AI‑visible assets. Look at the comprehensive AI crawlers list to see which bots—ChatGPT‑User, PerplexityBot, Google‑Extended, etc.—have crawled your site lately. Spot the pages already showing up in generative responses or those that should rank for high‑intent queries.
  2. Create UTM‑tagged target URLs. For each asset, build a clean version with parameters using the table above as a guide. The base page stays the same; you just append the tracking query string.
  3. Generate and deploy your LLMs.txt. The LLMs.txt Generator can compile your tagged URLs into a standards‑compliant file. Upload it to your site root (like /llms.txt). From then on, when AI models crawl your domain, they’ll grab the exact URLs you want them to cite.
  4. Validate in analytics. Give it a few days, then open GA4 (or your analytics platform) and check for sessions where Source matches your utm_source values. Create a dedicated “AI Search” channel group using the medium values ai_chat, ai_search, and ai_overview to see all AI traffic trends together.
  5. Connect to conversions. With event‑based goals or e‑commerce tracking, you can measure how the AI search segment performs. At UpGeo, we’ve seen early adopters get conversion rates from AI chat platforms that are 20–30% higher than generic organic traffic—the pages are tied to highly specific, intent‑rich prompts.

Handling AI citations that don’t use your UTM links

Even with great GEO, some AI answers will still cite your raw canonical URL—especially if snippets come from existing search indexes, not your LLMs.txt. There’s no perfect fix, but you can close the gap. A server‑side rewrite can add a default utm_medium=ai_referral when the referrer is a known AI domain, or a JavaScript snippet could decorate links after the page loads with a “likely AI” flag. Those methods are guesswork and less precise than the UTM‑in‑LLMs.txt approach. As LLMs.txt adoption grows, the native UTM method will become the norm.

Making AI attribution part of your GEO routine

Tracking AI search referrals isn’t a set‑and‑forget task. Every time you publish or update a high‑value piece of content, add its UTM‑tagged URL to your LLMs.txt file. Keep an eye on the AI crawlers list for new bots that might need fresh entries. If you see plenty of Perplexity traffic but nothing from Gemini, that’s a signal to revisit your GEO strategy for Gemini—the traffic data tells you where your content is under‑exposed.

When UTM tags are a natural part of your generative engine optimization stack, you stop guessing about AI’s business impact and start measuring it with the same precision you apply to paid search and email. That’s how you prove the ROI of showing up in a ChatGPT answer.

Want AI to recommend you?

UpGeo gets your brand cited across ChatGPT, Perplexity and Google AI.

See plans

Related