Blog

How to track ChatGPT traffic in Google Analytics 4

Google Analytics 4 can show which sources sent people to your site, including AI assistants. Not every visit lands where you expect, so treat the number you see as a floor, not the full count.

Zmienka team · · 6 min read

If your site has Google Analytics 4 (GA4), you can check whether people arrive from AI assistants such as ChatGPT, Perplexity, Gemini or Copilot. It is not exact measurement. Some AI visits can end up as Direct, so what you see is a floor rather than the full picture. It is still worth looking, because it is data from your own site.

Step 1: look at your traffic sources

In GA4, go to Reports, then Acquisition, then Traffic acquisition. Set the date range to the last 90 days. Above the table, change the first column from the default channel group to Session source / medium. You now see a list of the sources that sent visits.

Scan it for assistant names such as chatgpt, perplexity, gemini or copilot. Do not expect one fixed spelling. How a source shows up depends on how the link was opened and what the assistant sends along. So check what actually appears in your own report instead of relying on examples from articles.

Step 2: check the AI Assistant channel

Google's help lists an AI Assistant channel in the default channel group. It describes it as visits from AI chat sources such as ChatGPT, Gemini, Deepseek, Copilot or Grok, and says Google's AI Overviews and AI Mode are not included. The rule is that the medium exactly matches ai-assistant, and GA4 sets that medium when the referrer matches Google's list of assistants.

In Traffic acquisition, switch the first column back to Session default channel group and look for an AI Assistant row. If it is empty, that does not prove nobody came. A source outside Google's list will land in another channel, often Referral. Compare it with what you saw in step 1.

Step 3: build your own AI channel group

A custom channel group puts every AI source you care about into one row. You need at least the Editor role on the property.

  1. Open Admin, then Data display, then Channel groups.
  2. Click Create new channel group. This copies the default group.
  3. Give the group a name, then click Add new channel and name it, for example, AI assistants.
  4. Add a condition: choose the dimension Source and the match type matches regex, then paste the expression below.
  5. Click Save channel, then Reorder and drag the new channel above Referral. Click Apply, then Save group.

Order matters. Google's help says traffic is counted in the first channel whose definition it matches, so a channel placed below Referral never gets the visits. A standard property can have 2 custom groups of up to 50 channels each. You can read the full procedure in Google's help on custom channel groups.

A regex you can copy

A regular expression lets one condition match several words. This one covers the common assistant sources:

chatgpt|openai|perplexity|gemini|copilot|claude

The vertical bar means "or", so the condition is true when the source contains any of these words. Google's own example for AI assistants also uses a pattern like this and says to update it when the URLs or the list of assistants change. Check it after a few weeks against the sources that really appeared. Open the results too: a word like gemini can match other sources with the same name.

Step 4: see which pages AI visitors land on

For a closer look, open Explore in the left menu and start a blank exploration. Add Session source / medium and Landing page as dimensions, then Sessions as a metric. Add a filter on source with the same regex. If your filter options do not include a regex match, use the custom channel group from step 3 instead, which does support it.

Also look at what these visitors did: sent a message, called or submitted a form. With small numbers it pays to look at each visit.

What you will find where

Where to lookWhat it shows
Traffic acquisition, Session source / mediumThe exact source names that sent visits, so you can spot assistants
Traffic acquisition, Session default channel groupThe AI Assistant row, if the source is on Google's list
Custom channel groupAll AI sources you chose in one row, by your regex
Explore, Landing pageWhich pages AI visitors open first

What GA4 will not show you

Some AI visits may be counted as Direct. That happens when the link opens without information about where the visitor came from. Google's help describes Direct as visits through a saved link or a typed URL, with the source shown as (direct). Other visits may end up as Unassigned, which is used when no channel rule matches. Nobody can tell you reliably what share is lost this way, so there is no percentage here.

There is also a gap that no report closes. Someone may hear about your business from an assistant and then type your name into Google. That visit appears as organic search. So GA4 alone cannot tell you whether AI mentions you.

UTM links and how often to check

You can tag links you control yourself. The UTM link builder makes a link that shows up in GA4 under the source you choose. This applies to your own posts and emails. You cannot tag the links an assistant creates.

Checking once a month is enough. Compare the same period, such as the last 30 days, with the month before. On a small site one or two visits can move the number, so watch the longer trend and any new sources to add to the regex.

What to do with the result

If AI sources show up, note them and see which pages they visit. If the numbers are zero or small, that is not a verdict, only a reason to add other checks. Ask the assistants directly, as described in how to check if ChatGPT recommends your business. Assistants that search the web often use Bing's index, so Bing Places for Business is worth a look too.

For a comparison, you can run the free Zmienka test. It checks whether Gemini with Google Search mentions your business and works with public information about the business. Keep its result separate from your Google Analytics numbers.

Frequently asked questions

Does GA4 have a channel for AI assistants?

Google's help lists an AI Assistant channel in the default channel group. It covers visits from AI chat sources such as ChatGPT, Gemini, Copilot and others, and the rule is that the medium exactly matches ai-assistant. Google's AI Overviews and AI Mode are excluded.

Why can't I see any ChatGPT visits in Google Analytics?

There are a few possible reasons. The assistant may not have sent anyone to your site, the visit may sit under a different source, or the visit may have arrived without referrer information and been counted as Direct. Treat AI numbers as a lower bound.

How many custom channel groups can I create?

Google's help says a standard property can have 2 custom channel groups, each with up to 50 channels. Properties on Analytics 360 can have 5 custom groups.

Is tracking visits enough to know if AI recommends my business?

No. Visits only show people who clicked a link and arrived. If an assistant mentions your business and people then search for you by name, that visit can show up as organic search or direct. To see what assistants say, ask them directly.

Does AI recommend you?

Enter your website and find out for free whether AI names you when customers ask about businesses in your city.