All posts

Method · June 18, 2026 · 6 min read

How to track AI traffic from ChatGPT and Perplexity in GA4

The short answer: AI engines send referral traffic to your site, and you can isolate it in GA4 by filtering Session source for the AI domains (chatgpt.com, perplexity.ai, gemini.google.com, copilot.microsoft.com) or by building a custom channel group. It's undercounted by default, so the setup matters.

This is the complement to measuring your AI visibility. Visibility tells you whether AI cites you; this tells you whether those citations actually send people to your site, and what they do when they arrive.

Why AI traffic is easy to miss

By default, GA4 lumps most AI referrals into vague buckets. A few reasons:

  • It hides in "Referral" or "Unassigned." AI domains aren't in GA4's default channel definitions, so they don't roll up into a clean "AI" channel.
  • It's fragmented across domains. ChatGPT alone can refer from chatgpt.com and chat.openai.com; Copilot, Gemini, and Perplexity each have their own.
  • Some clicks arrive without a referrer. Traffic from a native app or certain in-answer links can show up as direct, undercounting the true number.

So the raw number you see is almost always lower than reality. The goal of setup is to capture as much as possible in one consistent view.

Step 1: Find AI referrals with an exploration

The fastest way to see what's already there:

  1. In GA4, go to Reports → Acquisition → Traffic acquisition (or build a free-form Exploration).
  2. Set the dimension to Session source / medium.
  3. Add a filter on Session source that matches regex:
chatgpt|openai|perplexity|gemini|copilot|bing|claude|edgeservices

That surfaces the sessions GA4 already attributes to AI engines. Note gemini.google.com may overlap with Google, so check the full source/medium string.

Step 2: Build a custom channel group (the durable fix)

A regex filter is great for ad-hoc checks, but you want AI traffic to show up as its own channel everywhere, automatically.

  1. Go to Admin → Data settings → Channel groups → Create new channel group.
  2. Add a new channel called AI Assistants, ordered above Referral and Organic so it captures first.
  3. Define the rule: Source matches regex chatgpt|openai|perplexity|gemini|copilot|claude|edgeservices.
  4. Save. New data will classify into the AI Assistants channel going forward (channel groups don't retroactively reprocess all historical data, so start this early).

Now any report that uses the default channel grouping can be switched to your custom group to see AI as a first-class channel.

Step 3: Mark up your own links with UTMs

For any link you control that an AI might surface, your llms.txt, structured data, or content feeds, you can't add UTMs to how AI cites you. But you can ensure your canonical URLs are clean and consistent so attribution doesn't fragment. Avoid session IDs and tracking junk in the URLs you publish; messy URLs split one source into many rows.

Step 4: Judge the traffic on quality, not just volume

AI referral volume is often small but unusually high-intent, these are people who asked a question, saw you cited as the answer, and clicked through to learn more. Compare AI sessions against your other channels on:

  • Engagement rate and average engagement time
  • Key events / conversions (signups, demo requests)
  • Landing pages, which pages are earning the click-through

Don't dismiss AI as a channel because the session count is low. A handful of late-funnel visits from a buyer who just got told you're the answer can be worth far more than a large top-of-funnel social spike.

The limits of GA4 here

GA4 sees the click, not the citation. It can't tell you how often you were mentioned without a click, where you ranked among cited sources, or your share of voice versus competitors. For the full picture you pair GA4 referral data (the clicks) with citation tracking (the mentions). Bing Webmaster Tools is also worth checking, its AI Performance report shows Copilot impressions and clicks directly.


Want both halves of the picture, citations and the traffic they drive, in one place? Revlift's AI Visibility Audit sets up clean AI-traffic tracking and benchmarks your citation share across every major engine. Or see our AEO services to have the whole measurement-and-content loop run for you.

MO

Written by

Michael Okeje

Founder of Revlift and a former Head of Growth. Writes about AI visibility, answer engine optimization, and getting brands cited by AI.

Done for you

Revlift gets your brand cited by AI. Explore how we help:

Ready to be the answer?

Book an AI Visibility Audit and we'll show you where you stand in AI answers, the gaps keeping you out, and a 90-day plan to get cited.