Back to Blog
AI Search•
•
10 min read

How to Track ChatGPT, Perplexity, and Other AI Traffic in GA4

Matt Weitzman
Senior SEO/GEO Strategist & Founder
How to Track ChatGPT, Perplexity, and Other AI Traffic in GA4

Picture this: a prospect asks where your site's traffic is coming from, and your GA4 report says "direct" for a suspiciously large chunk. No source, no medium, no explanation. Meanwhile, your team has been publishing content specifically to get cited in ChatGPT and Perplexity. The frustrating reality is that if you don't know how to track AI traffic in GA4, a lot of that hard-won visibility is invisible to you. This guide walks through the exact setup to fix that.

AI search referrals are real. ChatGPT launched a Browse feature that sends users to source URLs. Perplexity cites sources with clickable links. Gemini and Copilot do the same. If someone clicks through from one of those citations, that session lands in your GA4 data somewhere. The goal is to stop it from hiding and start reading it clearly.

Why GA4 Misses AI Search Traffic by Default

GA4's default channel grouping was built for a world of search engines and social platforms. It knows Google, Bing, Facebook. It does not have a bucket for chatgpt.com or perplexity.ai out of the box. So when a referral comes from one of those domains, GA4 often drops it into "Referral", "Direct", or "Unassigned", depending on how the referrer is passed and whether the tool strips it.

The referrer-stripping problem makes this worse. Many AI assistants, especially the mobile and desktop app versions, do not pass a referrer header at all. That means clicks look like direct traffic in every analytics tool, not just GA4. This is the dark traffic problem and it's something the whole industry is wrestling with right now. We'll get to the caveats at the end, but first: here's what you can actually capture.

Step 1: Create a Custom Channel Group for AI Referrers in GA4

This is the foundation. A custom channel group lets you define a new bucket called "AI Search" and tell GA4 exactly which domains belong in it. Here's how to set one up.

How to Build Your AI Search Channel in GA4

  1. In GA4, go to Admin, then click "Channel groups" under the Data Display section.
  2. Click "Create new channel group".
  3. Name it something clear, like "AI Search" or "AI Referrals".
  4. Add a new channel and name it "AI Search".
  5. Set the condition to: Session source matches regex, then paste in your regex string (see below).
  6. Save and publish. Note that custom channel groups in GA4 apply to historical data too, so you can look back at past AI referrals once the group is published.

The Regex String to Capture All Major AI Referrer Domains

Use this regex in the "Session source" condition to cover the major AI platforms sending web traffic right now:

chatgpt\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai|you\.com|bing\.com\/chat|bard\.google\.com

A few notes on that list. Bing Chat and Copilot share infrastructure, so both bing.com/chat and copilot.microsoft.com are worth including. Bard redirects to Gemini now, but older referrers may still show bard.google.com in historical data. You.com is a smaller AI search engine but it does pass referrers. Add or remove domains as the landscape shifts.

You can also layer a medium condition. If you want to be more precise, add a second rule: Session medium exactly matches "referral". This prevents the channel from pulling in any edge cases where the source string partially matches for unrelated reasons.

Step 2: Verify AI Referrers Are Showing Up in GA4 Reports

Before you go deeper, confirm the data is actually there. Go to Reports, then Acquisition, then Traffic Acquisition. Change the primary dimension to "Session source / medium". Scroll through or search for your AI domains. If you see chatgpt.com / referral or perplexity.ai / referral with any sessions attached, you're capturing real traffic.

If the numbers look like zero across the board, don't panic yet. A few possibilities: your site may not be getting cited frequently enough to generate clicks, the AI tools your audience uses most may be app-based (which strips referrers), or your volume is just low enough that it's getting filtered by GA4's data thresholds. Give it a week of data before drawing conclusions.

Step 3: Build an AI Traffic Exploration Report in GA4

Standard reports in GA4 are fine for a quick check. But for real analysis, Explorations give you a lot more control. Here's a setup that works well for monitoring AI referral traffic.

Exploration Setup for AI Search Traffic Analysis

  1. Go to Explore in the left nav and create a new blank exploration.
  2. Under Dimensions, import: Session source, Session medium, Landing page, Country, Device category.
  3. Under Metrics, import: Sessions, Engaged sessions, Engagement rate, Conversions (or key events), and Average engagement time.
  4. Set the technique to "Free form" and drag Session source into Rows.
  5. Add a filter: Session source matches regex using the same string from Step 1.
  6. Add Landing page as a second row dimension to see which content is getting cited and clicked.
  7. Set your date range to at least 90 days if your property has the data.

The landing page breakdown is where this gets genuinely interesting. You'll start to see which pages are pulling AI referral traffic, and that tells you a lot about what the AI tools consider citable. In my experience, it's often the more specific, clearly-sourced, and directly-answering content that shows up here, not the broad pillar pages.

Step 4: Segment AI Search Traffic for Conversion Analysis

Traffic from AI tools tends to behave differently than traffic from Google organic. The user has already gotten some answer. They clicked through because they wanted to verify, go deeper, or take action. That changes what you should expect from engagement metrics.

Create a segment in Explorations specifically for AI referral sessions. Use the same source regex as your filter condition. Then compare that segment against your Google organic segment. Look at: engagement rate, pages per session, conversion rate, and average session duration. This tells you whether your AI-cited content is attracting the right audience or just casual browsers.

If AI referral traffic converts at a noticeably different rate than organic, that's a signal worth acting on. It might mean your cited content needs a stronger next step, or it might mean AI is sending you exactly the right people and your conversion flow is letting them down.

The Big Caveats: What GA4 Still Cannot Track for AI Search

I want to be honest here, because this is where a lot of posts on this topic oversell what's possible. GA4 can only capture what the browser actually sends as a referrer. And a lot of AI-driven visits don't send one.

Referrer Stripping and Dark Traffic From AI Tools

The ChatGPT mobile app, the Claude desktop client, the Copilot sidebar in Edge, any AI tool embedded in an app rather than a standard browser tab: these often strip the referrer header entirely. The session arrives looking like direct traffic. This pattern is widely discussed, and the consensus in the industry is that the "direct" category is growing partly because of AI-initiated visits.

There's no clean fix for stripped referrers using GA4 alone. Some teams add UTM parameters to their URLs in AI training contexts, but you don't control how ChatGPT or Perplexity link to you. What you can do is monitor your direct traffic for unusual patterns: high engagement, specific landing pages, times that don't match your usual traffic cycles. That's circumstantial evidence of AI dark traffic.

ChatGPT Referrals and the Logged-In Session Problem

When a logged-in ChatGPT user clicks a source link, the referrer is typically chatgpt.com and it shows up in GA4. But ChatGPT also generates answers without linking, and those zero-click impressions are completely invisible to any analytics setup. The GA4 method here captures clicks, not mentions. That's an important distinction.

For tracking actual citations and mentions inside AI tools, you need a different approach entirely. Our guide to using Google Search Console and GA4 together covers the GSC side of this, and for the AI citation layer specifically, tools purpose-built for that visibility gap are worth considering.

Sampling, Thresholds, and Small-Volume AI Traffic

GA4 applies data thresholds when traffic volumes are low. If you're only getting a handful of AI referral sessions per day, some reporting views may suppress the numbers or round them in ways that make the data look like zero. Free GA4 properties are more susceptible to this than GA4 360. If you're seeing oddly flat numbers, check whether your exploration is affected by thresholds (GA4 will show a yellow icon in the report header when thresholds are active).

How to Monitor AI Referral Trends Over Time in GA4

Set up a saved exploration with your AI channel filter and schedule a weekly check. Specifically, watch for: which landing pages gain or lose AI referral traffic month over month, whether engagement rate changes after you update a cited piece of content, and whether new AI platforms appear in your source list as the market evolves.

You can also use GA4 Comparisons in standard reports. Under Traffic Acquisition, set one comparison to your AI Search custom channel group and another to Organic Search. Watching those two lines over time gives you a rough picture of how AI-driven visits are growing relative to traditional search clicks.

And yes, this is a moving target. The list of AI platforms sending referral traffic will expand. The behavior of these tools changes with every product update. Build the monitoring habit now, while AI referral volumes are still modest, so you have baseline data when they grow.

How Aergos Complements Your GA4 Traffic Data

The GA4 setup above captures the click side of AI search visibility. But a click only happens after a citation, and most citations never produce a click at all. Aergos tracks brand citations across ChatGPT, Perplexity, Gemini, Claude, and Google AI Overviews alongside classic rank tracking, so you can pair what's being mentioned with the click data you see in GA4. If you're managing this for multiple clients, white-label SEO reports let you share that AI visibility data under your own brand. It's one platform for classic SEO and AI visibility.

What to Do Next With Your GA4 AI Traffic Data

Once your custom channel group is live and your exploration is pulling real data, here's how to put it to work. First, identify your top five landing pages by AI referral sessions. Those are your most citable assets right now. Second, check the engagement rate on those pages. If users are bouncing fast, the page isn't delivering on whatever the AI said about it. Third, look at the sources sending traffic and notice which AI platforms your audience actually uses. That tells you where to focus your AI visibility efforts.

The GA4 setup is a starting point, not the finish line. Referrer data gives you clicks. What it doesn't give you is how often your brand is being mentioned, in what context, and whether those mentions are growing. That's the layer most teams are missing right now, and it's where the real competitive opportunity sits.

Build the tracking now. Start collecting the data. The teams with six months of AI referral history by the end of this year are going to have a real advantage when this channel matures.

Frequently Asked Questions

Free SEO, GEO & AI audit

Is your site set up to show up in search and AI?

Run a free instant audit. We check the on-page SEO basics and the files that control whether search engines and AI crawlers can access your site: robots.txt, sitemap.xml and llms.txt.

Free · instant · no sign-up for your first audit.

Matt Weitzman

About

Senior SEO/GEO Strategist & Founder

Matt has over 15 years of experience in technical SEO and digital marketing. He specializes in algorithmic recovery, enterprise architecture, and leveraging AI for content scaling. He is a frequent speaker at search marketing conferences.

More articles by Matt Weitzman