AI traffic in analytics

How do I set up an AI traffic channel in GA4?

The short answer

In GA4, create a custom channel group, add a channel for AI tools with a rule that matches AI sources such as chatgpt, perplexity, gemini, copilot and claude, and move it above the Referral channel so those visits are not counted as ordinary referrals. Then select that channel group in your acquisition reports.

Why a separate channel helps

By default, GA4 sorts most AI visits into the Referral channel, mixed in with links from every other website. That makes them easy to miss. A dedicated AI channel puts visits from ChatGPT, Perplexity, Gemini, Copilot and Claude together, so you can see the trend, the landing pages and the conversions at a glance.

The steps

GA4's interface changes from time to time, so treat these as a guide and check Google's current help pages if the menus look different. At the time of writing:

  • Go to Admin, then Data display, then Channel groups
  • Create a new channel group, starting from a copy of the default one so your other channels stay the same
  • Add a new channel and name it something clear, such as AI assistants
  • Set the condition to session source matches regex, with a pattern like `chatgpt|perplexity|gemini|copilot|claude`
  • Save the channel, then move it above Referral in the list, because GA4 assigns each visit to the first channel whose rule it matches
  • Save the channel group

Then open the traffic acquisition report and switch the primary dimension to your new channel group.

Keep the rule up to date

New AI tools appear and source names change. Check your referral sources every few months for anything AI-related that your rule misses, and add it. Be careful that the pattern does not catch unrelated sites with a similar name; reviewing the sources the rule matches will show any mistakes.

Some links from ChatGPT carry a utm_source tag at the time of writing. If your rule matches on session source, tagged and untagged ChatGPT visits will both be caught.

What the channel cannot show

The channel only counts visits that arrive with an AI source attached. Visits from AI apps that lose their referrer are recorded as direct, explained in why some AI traffic shows up as direct. Clicks from Google's AI Overviews and AI Mode count as Google organic search and cannot be separated in GA4.

So the channel gives you a floor, not a full count. It is most useful for trends, for seeing which pages AI tools send people to and, once conversions are set up, for checking whether those visitors become leads or sales. How to track leads and sales that came from ChatGPT covers that next step, and whether you can see ChatGPT traffic in Google Analytics explains where to look before you build the channel.

Related questions

  • Can I see traffic from ChatGPT in Google Analytics?Yes, partly. Visits from ChatGPT often appear in Google Analytics 4 with chatgpt.com as the source, and at the time of writing ChatGPT adds a utm_source tag to many links it shows.
  • Why does some AI traffic show up as direct in my analytics?Analytics tools label a visit as direct when it arrives without any referrer or tracking tag.
  • How do I track leads and sales that came from ChatGPT?Combine three things: conversions in GA4 tied to AI traffic sources, the original source captured into your CRM or order system with each lead, and a how-did-you-hear question on forms and sales calls that includes ChatGPT and other AI tools.
  • What KPIs make sense for AI SEO?Useful AI SEO KPIs fall into three layers: access (can AI crawlers reach and read your key pages), visibility (how often you are named for a fixed set of buyer questions, and your share against competitors), and outcomes (AI referral traffic, conversions and leads that mention AI tools).

More questions about aI traffic in analytics

Next questionHow do I track leads and sales that came from ChatGPT?

Find out whether ChatGPT and other AI tools recommend your business

Get an AI visibility audit showing whether ChatGPT and other AI tools recommend your business when people ask for what you offer, which competitors they name instead, and how you compare.

Request my AI visibility audit