Visits from AI assistants such as ChatGPT, Perplexity, Gemini, Copilot and Claude can be tracked in Google Analytics 4, but by default they're scattered across the Referral, Unassigned and Direct channels. The fix is a custom channel group with an "AI assistants" channel that matches the main AI sources, placed above Referral. It takes about ten minutes, applies to past data too, and gives you a clear view of how much traffic AI tools send and what it does on your site.
This article explains how AI traffic reaches GA4, how to set up the channel, and what you still can't measure.
How AI traffic shows up in GA4
When someone clicks a link in an AI answer, GA4 records the session's source in one of three ways:
- With a referrer. The browser tells your site where the visitor came from, so the session appears as, for example, perplexity.ai / referral.
- With a tracking tag. OpenAI says ChatGPT automatically adds utm_source=chatgpt.com to links in its search answers. Because the tag has a source but no medium, GA4 may record the medium as "(not set)", and the session can land in the Unassigned channel rather than Referral.
- With nothing at all. Some apps and in-app browsers don't pass a referrer. Those visits appear as Direct and can't be separated out.
Clicks from Google's AI Overviews and AI Mode are different. They come from Google Search, so GA4 counts them as normal Organic Search traffic, and Search Console includes them in the Performance report's "Web" search type. You can't isolate them in either tool.

Step 1: see what you already have
Before building anything, look at your existing data:
- Go to Reports → Acquisition → Traffic acquisition.
- Change the primary dimension to Session source / medium.
- Search the table for "chatgpt", "perplexity", "gemini", "copilot" and "claude".
This shows which AI sources are already sending visits, and how they're labelled.






