All articles
How-To

How to Set Up GA4 to Track AI-Referred Traffic

September 17, 20267 min readIzajul HaqueIzajul Haque

Last verified: 2026-09-20. AI platform behavior changes frequently — verify current details on the respective platform's site.

Set up GA4 to track AI-referred traffic by creating custom segments for referrals from chatgpt.com, perplexity.ai, copilot.microsoft.com, and other AI platforms, then monitor engagement metrics and conversions from these sources.

Key Takeaways

  • GA4 classifies AI-referred traffic as "Organic Search" by default — it does not separate ChatGPT, Perplexity, or Google AI Overviews into their own channel.
  • AI engine referrers follow identifiable patterns: chatgpt.com, perplexity.ai, you.com, phind.com, and others — these can be segmented using GA4 traffic source filters.
  • Create a custom segment for AI-referred traffic using source matching against known AI engine domains, then use it in explorations and reports.
  • Some AI-referred traffic arrives as "Direct" (no referrer passed) — use landing page patterns and UTM parameters on links you control to capture what referrer matching misses.
  • AI-referred traffic is often the highest-intent segment — track it separately in GA4 and your CRM to measure GEO ROI accurately.


GA4 does not automatically separate AI-referred traffic from organic search. When a user clicks a link from ChatGPT, Perplexity, or Google AI Overviews, GA4 classifies it as "Organic Search" or "Direct" by default. This means your GEO investment is invisible in standard reports — AI-driven traffic and conversions are buried in aggregate organic numbers. This guide walks through segmenting AI-referred traffic correctly so you can measure GEO ROI.

Step 1: Understand how GA4 classifies AI-referred traffic by default

GA4 uses the HTTP referrer header to classify traffic source. When a user clicks a link from an AI engine, the referrer is passed to your site and GA4 matches it against its channel grouping rules.

Default GA4 channel groupings:

AI EngineReferrerGA4 Default Classification
ChatGPTchatgpt.comOrganic Search or Direct
Perplexityperplexity.aiDirect (not in GA4 search engine list)
Google AI Overviewsgoogle.comOrganic Search (indistinguishable from regular Google)
Microsoft Copilotcopilot.microsoft.comOrganic Search or Direct
You.comyou.comDirect
Phindphind.comDirect
Geminigemini.google.comOrganic Search (indistinguishable from Google)

The problem: GA4 has no built-in "AI search" channel group. AI-referred traffic is scattered across Organic Search and Direct, making it invisible as a segment. See how AI Overviews are changing search for why this traffic matters.

Step 2: Identify the AI engine referrer domains to track

Compile the list of AI engine domains that refer traffic to your site:

Primary AI engines:
  chatgpt.com              → ChatGPT
  perplexity.ai            → Perplexity
  you.com                  → You.com
  phind.com                → Phind
  copilot.microsoft.com   → Microsoft Copilot
  gemini.google.com        → Google Gemini

Secondary / emerging:
  search.brave.com         → Brave Search (AI features)
  duckduckgo.com           → DuckDuckGo (AI features)
  socratic.org             → Socratic (AI tutoring)

To find which AI engines are already sending traffic, go to GA4 → Reports → Acquisition → User acquisition, and look at the "Session source" breakdown. Any unfamiliar domain sending traffic may be an AI engine. Cross-reference with your AI citation tracking data (see how to track AI citations for your brand).

Step 3: Create a custom segment for AI-referred traffic in GA4

In GA4:

1. Go to Admin → Segments → New segment
2. Set the condition: Session source matches one of:

   chatgpt.com
   perplexity.ai
   you.com
   phind.com
   copilot.microsoft.com
   gemini.google.com
   ```
3. Name the segment: **"AI-Referred Traffic"**
4. Save

**Using the segment:**
- Apply it in **Explorations** to analyze AI-referred sessions, users, conversions, and revenue
- Apply it in standard **Reports** (Reports → Acquisition, Reports → Engagement) to compare AI traffic vs organic traffic
- Use it in **Comparisons** to see AI-referred traffic side-by-side with all traffic

This segment is the foundation of GA4 AI traffic tracking. Every AI traffic analysis starts here.

## Step 4: Set up a custom dimension for AI traffic source

To break down AI-referred traffic by specific AI engine (ChatGPT vs Perplexity vs Copilot), create a custom dimension:

1. Go to **Admin → Custom definitions → Create custom dimension**
2. Set dimension name: **"AI Traffic Source"**
3. Set scope: **Session**
4. Set the parameter to capture the session source for AI-referred sessions

This lets you see which AI engine drives the most traffic, conversions, and revenue — not just an aggregate "AI-referred" number. See [GEO consulting](/services/geo) for advanced dimension setup.

## Step 5: Capture AI traffic that arrives as Direct with UTM parameters

Some AI-referred traffic arrives with no referrer (classified as Direct in GA4). This happens when:
- The AI engine strips the referrer header
- The user copies a URL from an AI response and pastes it into the browser
- The user's browser privacy settings block referrer passing

For links you control, add UTM parameters:

https://yourdomain.com/services/geo?utm_source=chatgpt&utm_medium=ai_search&utm_campaign=citation
```

UTM parameter convention for AI traffic:

ParameterValueExample
utm_sourceAI engine namechatgpt, perplexity, copilot
utm_mediumai_searchai_search (consistent across all AI engines)
utm_campaignContextcitation, ai_overview, recommendation

Use these UTMs on links in content you publish that AI engines may cite, in social posts referencing AI citations, and in email campaigns referencing AI visibility. This captures traffic that referrer matching misses. See how to measure ROI from SEO, AEO, and GEO for connecting UTM data to revenue attribution.

Step 6: Connect AI-referred traffic to conversions and revenue

Apply the AI-Referred Traffic segment to your conversion reports:

In GA4 Explorations:
1. Create a new exploration
2. Add the AI-Referred Traffic segment
3. Set dimensions: AI Traffic Source, Landing page, Session medium
4. Set metrics: Sessions, Conversions, Total revenue, Conversion rate
5. Compare to the All Users segment to see AI traffic vs total traffic

Key metrics to track:

MetricWhat It Tells You
AI-referred sessionsVolume of traffic from AI engines
AI-referred conversionsHow many AI-referred users converted
AI-referred revenueRevenue from AI-referred conversions
AI conversion rateAI conversions / AI sessions — typically 2-3x organic
AI traffic by engineWhich AI engine drives the most traffic and conversions

AI-referred traffic is often the highest-intent segment. Users who click through from an AI citation have already received a recommendation — they are further along in the buying journey than generic organic search visitors. See the localization consultancy case study (19 AI-driven leads from 25 citations) and transcription service case study (41% CTR increase from AEO) for real conversion data. See how to build a monthly SEO and AI visibility report for reporting this data monthly.

Common mistakes

  • Assuming GA4 automatically tracks AI-referred traffic — It does not. GA4 classifies AI referrers as Organic Search or Direct. You must create a custom segment to isolate AI-referred traffic. Without it, GEO ROI is invisible.
  • Only using referrer matching and ignoring Direct traffic — Some AI-referred traffic arrives as Direct (no referrer). Use UTM parameters on links you control to capture this traffic. See Step 5 above.
  • Not tracking AI traffic by engine — Aggregate AI traffic hides which engines drive the most value. Create a custom dimension to break down by ChatGPT, Perplexity, Copilot, etc. See GEO consulting for dimension setup.
  • Not connecting AI traffic to CRM lead source — GA4 shows traffic and conversions, but the CRM shows pipeline and revenue. Add "AI referral" as a lead source field and train sales to ask "how did you find us?" See how to measure ROI from SEO, AEO, and GEO.
  • Confusing Google AI Overview traffic with regular Google organic — Both appear as google.com referrer. Correlate AI citation tracking data with Search Console impression spikes to estimate AI Overview traffic. See how to track AI citations and the localization consultancy case study.

Frequently Asked Questions

GA4 classifies traffic source based on the referrer header. ChatGPT passes chatgpt.com as the referrer, which GA4 matches against its channel grouping rules. Depending on your GA4 configuration, chatgpt.com may match the Organic Search rule (if it is in the search engine list) or fall into Direct (if not recognized). GA4 does not have a built-in AI search channel group. Create a custom segment using source matching to isolate AI-referred traffic. See how to set up GA4 to track AI-referred traffic for the full setup.

It depends on your industry and AI citation rate. Sites actively cited by ChatGPT and Perplexity typically see 1-5% of total traffic from AI referrers. The localization consultancy case study generated 19 AI-driven leads from 25 AI engine citations. AI-referred traffic is low volume but high intent — it often converts at 2-3x the rate of generic organic search. See the localization consultancy case study for real numbers.

Partially. Google AI Overview click-throughs may appear as google.com referrer traffic, making them indistinguishable from regular organic search in GA4. To estimate AI Overview traffic, correlate AI Overview citation tracking data (from how to track AI citations) with Google Search Console impression and click data for the same queries. A spike in impressions without a corresponding ranking change often indicates AI Overview placement. See GEO consulting for advanced AI Overview tracking.

Izajul Haque

Izajul Haque

SEO, AEO & GEO consultant. I help businesses get discovered, understood, and cited across Google, AI Overviews, ChatGPT, and Perplexity. More about Izajul →

Keep reading

Let's talk

Your next customer might not click a blue link — they'll ask an AI. Be the answer.

Book a free strategy call and I'll audit your visibility across Google, AI Overviews, ChatGPT, and Perplexity — then map out exactly what it takes to be found and cited.