How to Track AI Chatbot Referral Traffic in GA4: Setup Guide

To track AI chatbot referral traffic in GA4, use two layers. First, check the built-in AI Assistant channel that Google

Share:

To track AI chatbot referral traffic in GA4, use two layers. First, check the built-in AI Assistant channel that Google has added to the Default Channel Group. Second, build your own custom channel group with a regex that matches the chatbot sources you care about, and place it above Referrals. Then confirm in your own source data that ChatGPT, Gemini and Perplexity visits actually land where you expect. Without that check, you are trusting a rule you have never tested.

This guide covers only the configuration steps. For attribution models, see our explainer on assisted conversions from organic search. For report formats, see the monthly AI visibility report template.

Start with what GA4 already does for you

Google Analytics now has a dedicated way to measure traffic from popular AI assistants. According to Google’s Analytics release notes, chatbots like ChatGPT, Gemini and Claude can appear in a new AI Assistant channel in your Default Channel Group reports.

When the referrer matches a recognized AI assistant, three things change in your traffic-source dimensions:

  • Medium: the value “ai-assistant” is assigned automatically.
  • Channel group: the visit is grouped under the “AI Assistant” channel.
  • Campaign: the visit gets the campaign name “(ai-assistant)”.

That is a solid starting point. But notice the wording: the release note names ChatGPT, Gemini and Claude as examples. It does not publish a full list of recognized referrers. So don’t assume every assistant you care about, Perplexity included, is covered. Verify it in your own data before you report on it.

Which referral domains point to an AI chatbot?

The honest answer: the referrer values in your property are the only reliable list. Google’s own help documentation gives example patterns for ChatGPT, Gemini, Microsoft Copilot, Claude and Perplexity, but it adds that you should update your regex when URLs or the list of assistants change.

12.000+ DOWNLOADS
How do you get AI to recommend your brand?

The future of search belongs to brands that build authority, not just content.

Authora helps businesses create structured authority systems that increase visibility in Google AI, ChatGPT, Gemini and Perplexity.

So before you write a single rule, look at what is actually arriving:

  1. Open Acquisition > Traffic acquisition.
  2. Switch the primary dimension to the session source.
  3. Search the table for terms such as chatgpt, openai, gemini, copilot, claude and perplexity.
  4. Write down every exact source value you find, including subdomains.

That list becomes the input for your regex. It is concrete, it is yours, and it tells you which assistants actually send you visitors today.

Build a custom AI channel group step by step

The built-in channel is a black box. A custom channel group lets you decide exactly which sources count as AI. Google’s guide to custom channel groups describes the setup:

  1. Go to Admin and create a new custom channel group, or edit an existing one.
  2. Add a new channel and give it a clear name, such as “AI assistants”.
  3. Add a condition on the dimension that holds the referring source and select matches regex.
  4. Enter a regex that matches the AI assistant URLs you want to include.
  5. Save the configuration.
  6. Reorder the channel list so “AI assistants” sits above “Referrals”. Google notes you can place it above other channels too, such as “Organic Search”.
  7. Open Acquisition > User acquisition or Acquisition > Traffic acquisition and select your new channel group as the primary or secondary dimension.

You will only see the “AI assistants” channel once data matches your regex. An empty row on day one can mean no matching visits yet, or a pattern that doesn’t fit your real source values.

Tighten the example regex before you use it

Google’s help page offers this example pattern:

^.*ai|.*.openai.*|.*chatgpt.*|.*gemini.*|.*gpt.*|.*copilot.*|.*perplexity.*|.*google.*bard.*|.*bard.*google.*|.*bard.*|.*.*gemini.*google.*$

Read it closely. Some parts of this pattern are very broad, such as ^.*ai and .*gpt.*. Broad parts like these can produce matches you didn’t intend, so don’t assume every hit is an AI assistant.

A narrower pattern built from the sources you actually found is easier to trust. As an illustration only:

.*(chatgpt|openai|perplexity|gemini|copilot|claude).*

Test any pattern against your exported source list before you save it. Check every hit, and remove or adjust any part of the regex that matches a source you don’t consider an AI assistant.

Mistakes that hide AI traffic in direct or organic

A clean regex is half the job. These reporting mistakes cause AI visits to vanish into other channels.

Treating direct traffic as “no AI”

Google explains that (direct) / (none) represents traffic without a clear referral source. If a visit from a chatbot arrives without a recognizable referrer and without usable campaign-source data such as UTM parameters, GA4 has nothing to match against your AI channel rules. That visit cannot be credited to your AI channel.

Google lists known causes of lost source data: links without UTM parameters, redirects that strip UTM parameters (for example from https to http), and URL shorteners that remove referral details. You control some of these. Check that your own redirects keep parameters intact and that links you place yourself carry correct UTM tags.

What you can’t control is how every assistant passes referrer data. So present your AI channel as a minimum count of identifiable visits, not a complete total.

Leaving the AI channel below Referrals or Organic Search

Google’s instructions say to move the AI channel above Referrals to ensure proper data processing, and optionally above Organic Search. Check the order every time you edit the group.

Mixing user and session reports

The two acquisition reports answer different questions. Google’s comparison shows that User acquisition is scoped to new users and uses first-user dimensions, while Traffic acquisition is scoped to sessions.

A user first acquired through organic search who later returns from a chatbot shows up differently in each report. Pick one report per question and label it in your dashboard. Comparing a user-scoped number with a session-scoped number creates gaps that look like tracking errors.

Setting the regex once and forgetting it

Assistants change domains and new ones appear. Google itself advises updating your regex when URLs or your list of assistants change. Put a recurring check in your calendar to rerun the source search from step one.

A quick check before you share numbers

Run through this list before AI referral data goes into a stakeholder report:

  • Does the built-in AI Assistant channel show data, and for which sources?
  • Does your custom regex match every AI source you found, and nothing else?
  • Is the AI channel ordered above Referrals, and above Organic Search if you chose that?
  • Are you reading session data and user data in separate views?
  • Have you noted that visits with neither a recognizable referrer nor usable campaign-source data cannot be counted as AI?

GA4 shows the clicks. It doesn’t show how often you are mentioned without a click. For that side of the picture, read our guide on how to measure brand visibility in AI chatbots, and pair it with what you see in Google Search Console.

Once your tracking is clean, the next question is how to earn more of those AI visits in the first place. If you want a managed system that builds authority in Google and AI chatbots without hiring an SEO team, see how Authora works.

Get the latest insights from Authora

The Authora blog offers expert perspectives on AI content, organic growth, and what’s next in search

How to become the brand Ai recommends

A practical guide to increasing visibility in ChatGPT, Google AI, Gemini and Perplexity

Product Feed Optimization for AI Shopping: What Counts

Yes, product feeds can affect whether AI shopping assistants show your products, but only on platforms that actually take feed

Voice Search vs GEO: Same Job for Siri, Alexa and ChatGPT?

No, voice search optimization and GEO are not the same thing. They overlap, but they aim at different outputs. Voice

12.000+ DOWNLOADS

Download the free blueprint

Businesses that build authority today will become the trusted source within Google and AI chatbots tomorrow. If you don’t claim that position now, your competitor will.

This website uses cookies

We use cookies to personalise content and advertisements, to provide social media features, and to analyse our website traffic. We also share information about your use of our site with our social media, advertising and analytics partners. These partners may combine this data with other information you have provided to them or that they have collected based on your use of their services.