Measurement

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

Moonlit Tools teamUpdated 4 min read

Short answer

Google Analytics 4 now has a built-in AI Assistant channel for assistants it recognizes, like ChatGPT, Gemini and Copilot. To catch the rest, such as Perplexity and Claude, add an "Other AI assistants" channel to a copy of the default channel group and place it above Referral. GA4 applies the new group to past visits too. Some assistant visits arrive with no record of where they came from, so treat the total as a minimum.

  • Check GA4's built-in AI Assistant channel first.
  • A custom channel catches assistants Google's list misses, and takes about ten minutes.
  • Order matters, because GA4 files each visit under the first channel it matches.
  • Pair GA4 with Search Console and Bing Webmaster Tools to see citations that got no click.
On this page
  1. Before You Start
  2. Set Up the Channel
  3. The Pattern to Paste
  4. What the Numbers Tell You
  5. Put the Numbers to Work
  6. Frequently Asked Questions
  7. Sources

GA4 now sorts visits from the AI assistants it recognizes into a built-in AI Assistant channel. Google names ChatGPT, Gemini, DeepSeek, Copilot and Grok as examples, and leaves out AI Overviews and AI Mode. Start there: open Reports > Acquisition > Traffic acquisition and look for the AI Assistant row.

Google's list doesn't cover every assistant, though. Visits from Perplexity, Claude and newer tools can still land in Referral, GA4's bucket for any other website that sent you a visitor, somewhere between a recipe blog and that one directory site from 2014. A custom channel catches those. It takes about ten minutes and doesn't need any code on your site.

Left: part of the channel order in a custom channel group. GA4's built-in AI Assistant channel comes first, then the custom Other AI assistants channel, then Referral, because a visit lands in the first channel it matches. Right: an example traffic acquisition report using made-up numbers. AI Assistant shows 168 sessions and Other AI assistants shows 44. Before, those 44 visits hid inside Referral. 1 · CHANNEL ORDER (PART OF IT) Channels above AI AssistantGA4's Other AI assistantsYours Referral Channels below A visit lands in the first channel it matches. Put yours below AI Assistant, above Referral. 2 · TRAFFIC ACQUISITION EXAMPLE DATA Session custom channel group Sessions Organic Search1,840 Direct960 AI Assistant168 Other AI assistants44 Referral184 Before, those 44 hid inside Referral.

Before You Start

Set Up the Channel

  1. Open channel groupsIn GA4, go to Admin > Data display > Channel groups.
  2. Copy the default groupStart from a copy of the default channel group so all your usual channels come along, including GA4's AI Assistant channel. Name it something like "Channels with AI."
  3. Add a new channelName it "Other AI assistants."
  4. Add the rulePick Source (the site a visit came from), choose matches regex, and paste the pattern below. Regex is a way of matching text, and you don't need to understand it to use this one.
  5. Move it upClick Reorder, drag Other AI assistants above Referral and just below AI Assistant, then click Apply. GA4 puts each visit in the first channel it matches, so assistants Google recognizes stay in AI Assistant and the rest land in yours.
  6. Save the groupSave your changes.
  7. Check the reportGo to Reports > Acquisition > Traffic acquisition. Click the dropdown at the top of the table's first column and pick your new channel group. You should see AI Assistant and Other AI assistants rows. Because each visit lands in only one channel, the two rows together are your AI assistant visits.

The Pattern to Paste

.*(chatgpt\.com|openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com).*

This catches the main assistant sites without grabbing ordinary Google or Bing search visits. It also matches ChatGPT and Gemini, but GA4's own channel catches those first. When a new assistant shows up in your Referral list, add its domain to the pattern.

A note on Google's example

Google's help page for custom channel groups has its own AI assistants pattern. It's quite broad, with pieces like "ai" and "gpt" that can match sites that aren't assistants. If you use it, check which sources land in your channel after you save.

What the Numbers Tell You

What it shows

  • Visits where the assistant told GA4 it sent them
  • Which assistants send visitors, and to which pages
  • Trends over time, especially after you improve a page

What it misses

  • Visits from assistant apps that don't say where they came from, which often land in Direct
  • Times you were cited but nobody clicked
  • Mentions of your brand without a link

That's why it helps to pair GA4 with two other tools:

Put the Numbers to Work

Where Moonlit Tools Fits

With GA4 connected, Moonlit Tools reads GA4's built-in AI Assistant channel and shows those visits on its AI Search page, kept apart from readiness scores. On paid plans it also checks each week whether ChatGPT and Perplexity answers cite your site. GA4 in Moonlit Tools.

Frequently Asked Questions

Why is my Other AI assistants channel empty?

That can be good news: GA4's built-in AI Assistant channel may already be catching your assistant visits. Check that row first. If an assistant you expected isn't in either, look in Referral and Unassigned with Session source / medium as the dimension. If it's there, add its domain to your pattern or move your channel higher.

Does this slow down my site?

No. Channel groups are just a report setting inside GA4. Nothing changes on your website.

Can I see which questions people asked?

Not in GA4. Bing Webmaster Tools shows a sample of the phrases Copilot used to find the pages it cited. Other assistants don't share this yet.

Sources

See What Google and AI Tools Can Read

Moonlit Tools reads your site the way search engines and AI assistants do, then tells you what to fix first and shows you why. Scan your own website free. No card needed.

Scan Your Site Free Or apply for 90 days of Launch free