Measurement
How to Track Traffic From ChatGPT, Perplexity and Other AI Assistants in GA4
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
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.
Before You Start
- You need Editor access or higher on the GA4 property (your site's account in GA4).
- A channel group is how GA4 sorts visits into buckets like Organic Search, Direct and Referral. Standard GA4 properties can have two custom channel groups, with up to 50 channels each. If you've used both, edit one instead of creating a new one.
- Custom channel groups also sort visits you already have, not just new ones.
Set Up the Channel
- Open channel groupsIn GA4, go to Admin > Data display > Channel groups.
- 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."
- Add a new channelName it "Other AI assistants."
- 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.
- 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.
- Save the groupSave your changes.
- 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:
- Bing Webmaster Tools has an AI Performance report. It counts how often Copilot and Bing's AI summaries cite your pages, whether anyone clicks or not.
- Google Search Console has Search Generative AI performance reports that show how often your pages appear in AI Overviews and AI Mode. Those visits also count in the regular Web performance report.
Put the Numbers to Work
- Compare pages. Which pages get assistant visits? They're usually the ones that answer a specific question clearly. Write more like them.
- Note your changes. When you rewrite a page or fix a problem that stopped bots from reading it, note the date. Check that page's AI assistant visits a few weeks later.
- Watch whether they stay. Assistant visitors arrive knowing what they want. If they leave right away, the page may not match the answer they were promised.
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
- Default channel group, Google Analytics Help
- Custom channel groups, Google Analytics Help
- Search Generative AI performance reports in Search Console, Google Search Central Blog
- Introducing AI Performance in Bing Webmaster Tools Public Preview, Microsoft Bing
- AI features and your website, Google Search Central
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