FREE SCORE · ZYGUR.COM · INSTANT · AEO PLATFORM · NO ACCOUNT ·
⊙ ONLINESYS:AEO · MODE:SCAN · REG:007Ø186M QUERIES/MO1001·0110·0101·1001ZYGUR TECHNOLOGIES CORP. v1.0 // 2026
BlogAI Search Optimization
June 21, 2026·6 MIN READ

How to Track ChatGPT and AI Search Referrals in Google Analytics

Step-by-step setup for capturing AI referral traffic from ChatGPT, Claude, Perplexity, and Gemini in GA4 — so you know exactly how much business AI search is sending you.

AW

Aaron West

FOUNDER, ZYGUR TECHNOLOGIES CORP.

RE: How to Track ChatGPT and AI Search Referrals in Google Analytics // ZYGUR BLOG

AI search platforms sent an estimated 400 million referral clicks to external websites in 2025. Most of those clicks are invisible in Google Analytics. This guide covers the practical steps to start capturing them.

Step 1: Create a Referral Exclusion List (What Not to Exclude)

GA4 has a referral exclusion feature designed to prevent your own domains from inflating traffic. By default, some analytics setups accidentally exclude AI platforms. Check Settings → Data Streams → Configure Tag Settings → List Unwanted Referrals and make sure you are not blocking chat.openai.com, perplexity.ai, claude.ai, or gemini.google.com.

Step 2: Set Up a Channel Group for AI Search

In GA4, go to Admin → Data Display → Channel Groups → Create New Channel Group. Add a channel called "AI Search" with the following rules:

  • Source contains: perplexity.ai
  • Source contains: chat.openai.com
  • Source contains: claude.ai
  • Source contains: gemini.google.com
  • Source contains: copilot.microsoft.com
  • Source contains: you.com

This captures sessions where the AI platform does pass a referrer. It will not capture dark traffic (sessions with no referrer), but it gives you a baseline to work from.

Step 3: Add UTM Parameters to AI-Readable Content

In your llms.txt file, append UTM parameters to any links you include. For example:

https://yoursite.com/services?utm_source=ai&utm_medium=llms-txt&utm_campaign=ai-visibility

When an AI reads your llms.txt and a user clicks a link from the AI's response, the UTM parameters persist in the session. You will see these sessions in GA4 under the Source/Medium report as ai / llms-txt.

Step 4: Use JSON-LD to Embed Trackable URLs

AI crawlers read JSON-LD structured data directly. Include your primary URL with UTM parameters in your Organization and Service schema:

"url": "https://yoursite.com?utm_source=ai&utm_medium=schema"

This is a small but effective way to tag AI-sourced traffic that flows through structured data citations.

Step 5: Create a Server-Side AI Traffic Log

The most reliable method is server-side. Log the raw HTTP_REFERER header for every session and flag any request where the referrer contains a known AI domain. Most web frameworks can write this to a custom log file or database table.

Run a weekly query against this log and compare the AI-sourced session count to your GA4 "AI Search" channel. The gap between the two numbers is your dark traffic estimate.

What to Do With the Data

Once you start seeing AI referral numbers, look at three things: which pages receive AI-sourced traffic, what the bounce rate and time-on-site is compared to organic search, and whether conversion rates differ. In most sites, AI-sourced traffic converts at 1.5x to 3x the rate of organic search because the user already received a recommendation before they arrived.

Before you can track AI referrals, AI systems need to be able to find your site. Check your AI visibility score free at zygur.com.

AW

Aaron West — Founder, Zygur Technologies Corp.

Aaron built Zygur to solve the AI visibility problem he kept hitting while running his other companies — businesses that were invisible to ChatGPT, Claude, and Perplexity despite having real SEO. He writes about AEO, AI crawler behavior, and practical fixes for business owners.

analyticschatgptga4tracking

FREE TOOL

CHECK YOUR AI VISIBILITY SCORE — FREE IN 60 SECONDS.

See exactly how your site scores on AI crawler access, llms.txt, structured data, meta tags, and MCP server. Average score is 23/100.

SCORE MY SITE →
|||||||||||||× ⊕0x28 · 0x93 · 1001·0110 · REG:Ø001ZYGUR
KNOWLEDGE BASE [↗]BLOG [↗]PRICING [↗]ABOUT [↗]PRIVACY [↗]
© 2026 ZYGUR TECHNOLOGIES CORP. ALL RIGHTS RESERVED. //