How to Track AI Traffic in Google Analytics (2026)
See how to find and track visitors from ChatGPT, Gemini, and other AI tools in GA4 — using the 2026 AI channel group and a simple custom setup.
4 min read · Updated

Short answer
GA4 now does this for you: since May 2026, visits that GA4 recognises as coming from AI assistants like ChatGPT, Gemini or Copilot land in a built-in AI Assistant channel, with the medium ai-assistant. Check that channel first. Only if an AI tool you care about still shows up as Referral do you need the old method, a custom channel group with a regex.
Why AI traffic matters now
More and more people ask an AI assistant — "what's the best invoicing app for freelancers?" — instead of searching Google. If the AI mentions your business and the person clicks through, that's a visitor who never touched a search results page.
Tracking this tells you two things: whether AI tools know your business exists, and which of your pages they trust enough to cite. That's a signal worth watching as this traffic source grows.
- Title tag under 60 characters
- Sitemap submitted to Search Console
- Google Analytics set up correctly
- + 24 more
Free checklist
The Small Business SEO Checklist
Covers Google Analytics setup, keyword basics, on-page SEO, and local SEO — free to use, no signup.
Open the checklistStep 1: Check the AI Assistant channel in GA4
Google added an AI Assistant channel to GA4's Default Channel Group in May 2026. There's nothing to set up. When a visit's referrer matches Google's list of AI assistants, GA4 sets the medium to ai-assistant and the campaign to (ai-assistant), and the visit is counted in this channel. Google's default channel group definitions name ChatGPT, Gemini, DeepSeek, Copilot and Grok as examples.
Two things the channel does not include:
- Google's AI Overviews and AI Mode. Google counts clicks from these as Organic Search, not AI Assistant.
- AI visits with no referrer. The channel identifies AI traffic from the referrer, so a visit that arrives without one (from some in-app browsers or a copied link) still counts as Direct.
- Go to Reports → Acquisition → Traffic acquisition
- Look at the Session primary channel group column
- Look for AI Assistant in the list
If you see it, GA4 is already bucketing AI traffic for you. Google has not published the full list of AI assistants it recognises, so a smaller or newer tool can still land in Referral. Steps 2 and 3 catch those.
Step 2: Check for AI tools GA4 didn't recognise
To see whether any AI tool is slipping past the channel, look at sources directly:
- Go to Reports → Acquisition → Traffic acquisition
- Set the dimension to Session source / medium
- Look for AI hostnames whose medium is still
referralrather thanai-assistant. Common ones:
chatgpt.comandchat.openai.com— ChatGPTperplexity.ai— Perplexitygemini.google.com— Google Geminicopilot.microsoft.com— Microsoft Copilotclaude.ai— Claude
If they all show ai-assistant, the built-in channel has you covered and you can stop here.
Step 3 (only if needed): Add the missing tools with a custom channel group
If an AI tool keeps showing up as Referral, you can build your own channel group that catches it. Your property keeps the default group as it is, and a standard GA4 property can have two custom groups.
- Go to Admin → Data display → Channel groups
- Click Create new channel group
- Add a channel called "AI assistants"
- Set the conditions to Medium exactly matches
ai-assistantor Source matches regex listing only the tools you saw in Referral. If those were Perplexity and Claude, for example:perplexity|claude - Save, and order it above Referral so those visits land in the right bucket
Now the tools Google recognises and the ones you added are counted on one line. Google says custom channel groups can be applied to your reports retroactively, so you can see past AI visits too.
Step 4: Recover the AI traffic you're missing
Some AI tools hide the referrer, so a share of AI visits land as direct or unassigned. Two ways to claw some of it back:
- Tag links you share. When you post a link inside an AI-friendly context, add UTM parameters (
?utm_source=chatgpt&utm_medium=ai-assistant). GA4's AI Assistant channel takes any visit whose medium is exactlyai-assistant, so the tagged visit is counted there. The UTM builder assembles the tagged link for you. - Watch your landing pages. A sudden rise in direct traffic to one deep article is often an AI tool citing it. Cross-check in where your traffic comes from.
What to do with the data
If a page is pulling AI referrals, it's earning AI trust — make more like it. If you're getting none, that's a prompt to publish clear, factual, well-structured content (the kind AI tools quote). Treat AI traffic as one of the website metrics that matter and check it monthly.
Related questions
Frequently asked questions
- Does GA4 track traffic from ChatGPT and other AI tools?
- Yes — when someone clicks a link to your site from a tool like ChatGPT, Perplexity, or Gemini, GA4 records the source (for example chatgpt.com or perplexity.ai). Since May 2026, visits from AI tools that GA4 recognises are put into a built-in "AI Assistant" channel in the default reports, so you can see them without building anything custom. AI tools GA4 doesn't recognise still show up as Referral.
- Why does my AI traffic show as 'direct' or 'unassigned'?
- Some AI tools strip the referrer or open links in an in-app browser, so the visit lands in GA4 as direct or unassigned. The AI Assistant channel can't help here: it only recognises AI visits by their referrer, so a visit with no referrer still counts as Direct. You can recover some of it by adding UTM tags to links you share inside AI tools, and by checking landing-page reports for unusual spikes on pages an AI is likely to cite.
- Is AI traffic worth tracking for a small business?
- It's becoming worth it. A growing share of buyers now ask an AI assistant for recommendations before they ever reach Google. Even a small amount of AI referral traffic tells you the AI tools know your business exists and are sending people your way — useful for deciding whether to invest in content that AI tools cite.
- How do I see which page an AI tool sent traffic to?
- In GA4 go to Reports → Engagement → Landing page, then add Session source / medium as a secondary dimension. Filter the source to the AI hostnames (chatgpt.com, perplexity.ai, and so on) to see exactly which pages AI tools are pointing people to.
Free SEO checklist
Grab our free Small Business SEO Checklist — a step-by-step guide to ranking your site higher.