top of page

How to Track Google Analytics AI Traffic

Writer: Harold Bell
Harold Bell
Oct 21
7 min read

Updated: 5 hours ago

A dashboard with a bar chart with a lime badge showing a robot icon, the cover art for How Do You Track AI Traffic in GA4, and What Can't It See?

Key takeaways

  • GA4 doesn't have an AI channel by default, so visits from ChatGPT, Perplexity, Claude, Gemini and Copilot usually land in Referral.

  • Create a custom AI Assistants channel that matches AI source domains, and move it above Referral so GA4 assigns sessions to it first.

  • GA4 only sees the people who click. Pew Research found people clicked a traditional result on 8% of visits when an AI summary appeared.

  • Combine the GA4 AI channel with self-reported attribution and share of model to see AI's real influence.

Ask most B2B teams how much traffic they get from AI assistants and you'll get a shrug. The traffic is there, but GA4 files it under Referral alongside everything else. Nobody set up a place for it to go. So the number that matters most to the board is the one nobody can find.


Setting up Google Analytics to see AI traffic takes about 10 minutes. Understanding what GA4 can't see takes a little longer, and it matters more. In more than 16 years of B2B marketing measurement, I've rarely seen a channel this undercounted. This guide covers how to build an AI Assistants channel, why GA4 hides AI traffic, how UTM parameters help, what to measure and how to see the whole picture.



How do you track AI traffic in Google Analytics?

Create a custom channel group in GA4 with an AI Assistants channel that matches session sources from AI domains like chatgpt.com and perplexity.ai. Move that channel above Referral so GA4 assigns AI sessions to it first. Then use the custom group in your reports. Learn the wider measurement picture in content marketing measurement.


It takes about 10 minutes and works on historical data too. Custom channel groups in GA4 apply to past sessions as well as new ones. The moment you set it up, you can look back. That's useful for showing a trend right away.


The setup only changes how GA4 groups traffic. It doesn't change what's tracked. Your existing reports stay intact if you copy the default group first. Nothing breaks.


What you'll see is the floor, not the ceiling. GA4 only counts the people who click from an AI answer to your site. Many more read an answer that mentions you and never click. The rest of this guide covers both.



How do you build an AI Assistants channel in GA4?


In GA4's Admin area, open Data display, then Channel groups, copy the default group, add a channel called AI Assistants and set its condition to match AI source domains with a regular expression. Then drag it above Referral and save. That's the whole setup. Learn how AI tools choose sources in why ChatGPT recommends your competitor.


Four-step diagram titled How to build an AI channel in GA4. 1, copy the default channel group. 2, add an AI Assistants channel. 3, highlighted, move it above Referral. 4, report with the new group. Source is MQL Magnet GA4 setup.

A good starting pattern for the session source is chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com. It covers the main assistants most B2B sites see. Review it every quarter. Add new assistants as they appear.


The step people miss is the order. GA4 assigns each session to the first channel whose rules it matches. If Referral sits above AI Assistants, your AI traffic still disappears into Referral. Drag the new channel above it before saving.


Then switch your reports to the new group. Use it as the primary channel dimension in acquisition reports. Save a comparison view for AI Assistants against organic search. That's the view leadership will ask about.



Why does GA4 hide AI traffic by default?


Because GA4's default channel groups were designed before AI assistants sent meaningful traffic, so there's no AI rule to catch them. Visits from AI tools arrive with a referrer like chatgpt.com, which matches the generic Referral rule. Some arrive with no referrer at all and land in Direct. Learn the zero-click side in what is zero-click search.


Referral is a catch-all. It mixes AI assistants with partner sites, directories and forums. That makes AI impossible to spot without a custom rule. The volume is usually larger than teams expect once it's separated.


Direct hides another share. Some AI apps and in-app browsers strip the referrer. Those visits look like someone typed your URL. You can't recover them in GA4, which is one reason the AI channel is a minimum.


Google could add an AI channel in the future. Until then, the custom group is the standard fix. It's also more flexible. You control which assistants count.



Partner Over Product, a playbook for winning deals without losing the plot, by Harold Bell. Available on Amazon.


How do UTM parameters help with AI traffic?


ChatGPT often adds utm_source=chatgpt.com to the links it shows in answers, which makes those visits easier to attribute even when the referrer is lost. Other assistants vary, and the behavior can change without notice. Treat UTMs as a helpful extra signal, not the only one. Learn how engines differ in Perplexity vs ChatGPT vs AI citations.


Add the utm_source value to your channel rule too. Matching on source catches visits tagged with utm_source=chatgpt.com even when the referrer is missing. That recovers some sessions that would otherwise land in Direct. It's a small but useful addition.


Where you control the link, add your own UTMs. Content you distribute, AI share buttons on your pages and links in your own prompts or tools can all carry tags. That keeps attribution clean. It also shows which of your own efforts drive AI-related visits.


Don't over-engineer it. A simple, consistent naming scheme beats a complex one nobody follows. Document it once. Use it everywhere.



What should you measure once you can see AI traffic?


Measure AI sessions and engaged sessions over time, which landing pages AI sends people to, conversion rate compared with organic search and assisted conversions for longer B2B journeys. Those four show whether AI traffic is growing and whether it's valuable. Volume alone isn't the point. Learn how to turn it into ROI in content marketing ROI.


Engaged sessions matter more than raw sessions. They show whether AI visitors read and interact. In my experience, AI-referred visitors often arrive more qualified, because the answer already explained the basics. Check whether that's true for your site.


Landing pages show what AI tools cite. If one guide gets most AI visits, it's probably being quoted often. That's a page to keep updated. It's also a template for others.


Assisted conversions show AI's role earlier in the journey. A buyer might find you through ChatGPT, leave and convert weeks later through search. Last-click reports miss that. The path exploration and attribution reports in GA4 show more.



Mastering AI Visibility by Harold Bell, The Demand Doctrine edition covering AI SEO, AEO, GEO, and LLMO. All four engines, one book. Available November 18th at demanddoctrine.com.



How do you see the whole picture of AI influence?


Combine three sources, which are the GA4 AI channel, self-reported attribution and share of model. I call it the AI Traffic Triangle, because each one covers a blind spot in the others. Together they tell a credible story. Learn the visibility side in AI search visibility tracking.


Three-column chart titled The AI Traffic Triangle. The GA4 AI channel shows visits and conversions from AI clicks but misses everyone who didn't click. Self-reported attribution, highlighted, shows what buyers say influenced them but misses what they forget. Share of model shows how often AI names you but misses the link to revenue. Source is the MQL Magnet measurement method.

The GA4 AI channel measures visits and conversions from AI clicks, but it misses everyone who didn't click. That's most people. Pew Research found people clicked a traditional result on 8% of visits when an AI summary appeared, against 15% without one, and SparkToro found 68.01% of US Google searches ended without a click. GA4 can't see that influence at all.


Self-reported attribution catches what analytics never will. Add a free-text how did you hear about us field to your demo form. Buyers increasingly name ChatGPT or Perplexity there. It's the cheapest, most honest attribution tool in B2B.


Share of model shows visibility directly. It measures how often AI tools name you across a fixed set of buyer questions, as explained in what is share of model. Google's generative AI report and Bing's AI Performance report add impression and citation data. Together with GA4, they cover clicks, mentions and buyer memory.



Where does AI traffic tracking fit in the Engine Optimization Matrix™?


Tracking AI traffic measures the downstream result of the Citation lever across the AEO, GEO and LLMO rows of the Engine Optimization Matrix™. It shows what happens after an AI tool cites you. It doesn't show the citation itself. Learn how to track mentions directly in how to track brand mentions in ChatGPT.


The context is worth sharing with leadership. G2 found 51% of B2B software buyers start research in an AI chatbot more often than in Google. Even a small AI channel in GA4 represents a much larger research audience. Show both numbers together.


So set up the AI Assistants channel this week and move it above Referral. Add a how did you hear about us field to your demo form. Then pick 20 buyer questions to track in AI tools every month. That's the triangle, set up in an afternoon.



What else do people ask about tracking AI traffic in GA4?


Does GA4 track AI traffic?

Yes, but not as its own channel by default. Visits from AI assistants usually land in Referral or Direct.


How do I create an AI channel in GA4?

In Admin, open Data display, then Channel groups, copy the default group, add an AI Assistants channel matching AI domains and move it above Referral. Then use the new group in your reports.


What regex should I use for AI traffic in GA4?

Start with chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com. Review it quarterly.


Why does my AI traffic show as Referral?

Because the Referral channel sits above any custom AI channel, or no AI channel exists. Move the AI channel above Referral.


Does the custom channel group work on old data?

Yes. GA4 custom channel groups apply to historical sessions as well as new ones.


Does ChatGPT add UTM parameters?

It often adds utm_source=chatgpt.com to links in answers. Other assistants vary, and the behavior can change.


What can't GA4 see about AI?

Everyone who reads an AI answer without clicking, plus visits where the referrer is stripped. The AI channel is a minimum.


How do I measure AI influence beyond clicks?

Add self-reported attribution and track share of model across buyer questions. Combine both with the GA4 AI channel.



Related guides


About the author. Harold Bell is the founder of MQL Magnet and has spent about 16 years in enterprise technology marketing, working with brands like Cisco, Rubrik and Nutanix in different capacities. He's a member of the Forbes Communications Council, the creator of the Engine Optimization Matrix™ and the author of Partner Over Product.


bottom of page