Free Google Ads & Meta ads audit for new clients. Book yours →
Web Zodiac homeGet a free audit
Menu
AI traffic in GA4

How to track ChatGPT and AI referral traffic in GA4

Use Google Analytics 4's AI Assistant channel, find the sources it can miss, build a custom channel group that works on past data, test your regex and connect AI visits to leads and revenue.

In short: Since May 13, 2026, GA4 assigns visits from recognized AI assistants the medium ai-assistant and groups them in an AI Assistant channel in the default channel group. Open Reports, then Acquisition and Traffic acquisition to see it. To include tools Google may not recognize and to view history consistently, add a custom channel group with a regex for AI sources and place it above Referral. Google's AI Overviews and AI Mode are not part of the AI Assistant channel.

People now ask assistants for recommendations, explanations and shortlists, and some of them click through to websites. Until this year, finding those visits in Google Analytics 4 meant building your own filters. GA4 now does part of the job for you, but "AI Assistant" in a channel report is not the whole picture. This guide shows what the native channel counts, how to fill the gaps and how to judge whether the traffic is worth anything.

What changed in GA4 for AI traffic

On May 13, 2026, Google announced AI Assistant traffic measurement. When the referrer matches a recognized AI assistant, GA4 now sets:

DimensionValue
Mediumai-assistant
Campaign(ai-assistant)
Default channel groupAI Assistant

The announcement named ChatGPT, Gemini and Claude as examples. When we checked on November 26, 2026, the default channel group help page described the channel as covering sources "like" ChatGPT, Gemini, DeepSeek, Copilot or Grok, and said it excludes Google's AI Overviews and AI Mode. Neither wording is presented as a complete list of recognized assistants, so check your own source data instead of assuming a particular tool is in or out. Perplexity, for one, was named in neither passage.

How GA4 decides what counts as AI Assistant

Click from an AI tool Referrer GA4 recognizesas an AI assistantA referrer GA4 does notrecognize as AINo referrer and nocampaign information AI AssistantTypically ReferralTypically Direct Google AI Overviews and AI Mode are excluded from AI Assistant
Simplified. Campaign tags and other channel rules can change where a session lands, so confirm with the source and medium dimensions.

Google's definition for the channel is simply that the medium exactly matches ai-assistant, which GA4 assigns when the referrer is on its list. Default channel definitions cannot be edited.

How to see AI Assistant traffic in GA4

  1. In GA4, open Reports, then Acquisition, then Traffic acquisition. Menu names can differ if your property's reports have been customised.
  2. Keep the primary dimension on Session primary channel group or Session default channel group.
  3. Find the AI Assistant row. If your primary channel group is a custom one, switch to the default group.
  4. Set a date range starting on or after May 2026.
  5. Use the plus button to add Session source / medium as a secondary dimension.

No row does not always mean no AI visits. There may be none in the period, the assistant may not be recognized, or its visits may lack source information. Also be careful comparing periods that cross May 2026: we found nothing in Google's announcement saying earlier sessions were reclassified, so a jump around the launch may be a labelling change instead of new demand.

How to track ChatGPT traffic in GA4

To see ChatGPT specifically, including history:

  1. Open Traffic acquisition and change the primary dimension to Session source / medium.
  2. Search the table for chatgpt. Also search chat.openai, the older domain.
  3. Note every variation. The same assistant can appear with different mediums, such as referral, ai-assistant or not set, depending on date and how the link was tagged.
  4. Add Landing page + query string to see which pages people reach. Some ChatGPT links arrive with utm_source=chatgpt.com in the URL, so check for it.
  5. Compare sessions, engaged sessions, key events and revenue against your organic search and referral rows.

The same steps work for Perplexity, Claude, Gemini and Copilot: search the source, then record what you actually see.

Build a custom AI channel group in GA4

A custom group lets you define the list yourself. Google says custom channel groups can be applied to reports retroactively, which makes this the better view for trends that start before May 2026, limited to sessions whose source was recorded. Standard properties can create two custom channel groups in addition to the default one (360 properties can create five), with up to 50 channels each. You need permission to edit the property's data display settings.

  1. Go to Admin and open Channel groups under data display.
  2. Create a new group. It starts as a copy of the default group.
  3. Name it something like "Channels with AI sources".
  4. Add a channel called AI assistants (custom). If the copied group already includes an AI Assistant channel, edit that one instead of adding a second.
  5. Add the condition Source, matches regex, and paste your expression. Add an OR condition of Medium exactly matches ai-assistant so natively recognized visits stay included.
  6. Click Reorder and move the channel above Referral. GA4 puts traffic into the first channel whose definition it matches. Consider where it sits relative to paid channels so that tagged ad clicks are not captured by mistake.
  7. Save the group, then select it as the dimension in Traffic acquisition.

AI traffic regex for GA4

Google's help page gives an example expression. It is broad by design: parts such as ^.*ai and .*gpt.* can catch sources that are not assistants. We suggest naming domains and distinctive names instead:

.*(chatgpt|chat\.openai\.com|perplexity|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|deepseek|grok\.com|meta\.ai|chat\.mistral\.ai).*
PatternMeant to matchWatch for
chatgptchatgpt.com and the source value chatgptYour own campaigns that use "chatgpt" as a source
chat\.openai\.comThe older ChatGPT domainMostly historical data
perplexityperplexity.ai and source value perplexityFew false matches
claude\.aiClaudeVariants without the domain
gemini\.google\.comGemini's web appDoes not match google / organic
copilot\.microsoft\.comMicrosoft Copilot on the webCopilot inside other products may report differently
grok\.comGrokWriting just "grok" would also match ngrok test tools

Review the list each quarter. Assistants add and change domains.

Free AI source regex tester

Paste the source values from your Session source report, one per line, to see which the expression catches before you save a channel. The tester requires the whole source value to match and ignores case. It runs in your browser and sends nothing anywhere.

AI traffic source tester

A browser approximation of GA4's full match. GA4 uses its own regular expression engine, so confirm the saved channel against real report rows.

Custom channel group or Exploration

MethodBest forLimit
Default AI Assistant channelQuick, consistent view with no setupOnly recognized referrers; not editable
Custom channel groupYour own definition across standard reportsLimited number of groups; needs upkeep
Report filter on sourceA one-off check of one assistantManual each time
Free-form ExplorationSource by landing page and key eventsExplorations have their own data retention and sampling limits
BigQuery exportCustom analysis joined with other dataCustom channel groups are not in the export schema, so repeat the logic in SQL

An Exploration for AI landing pages

Create a free-form Exploration. Add Session source and Landing page as dimensions, and Sessions, Engaged sessions and Key events as metrics. Filter Session source with the regex above. Sort by key events, then read the landing pages: they show which content assistants send people to.

How to test your AI tracking setup

Test before you report numbers to anyone.

  1. Check history. Select your new channel group for the last 90 days and add Session source as a secondary dimension. Every source in the AI row should be one you intended to include.
  2. Check what is left. Read the sources in the Referral row. Any assistant still sitting there means your regex or channel order needs work.
  3. Click a real link. Click a link to your site from an assistant, in a normal browser where you accept analytics consent. Watch Realtime or DebugView for the page view and check its traffic source parameters and referrer where shown. Processed acquisition reports update later than Realtime.
  4. Test conversion tracking. Submit a test form and confirm the key event fires once.
  5. Compare totals. A channel group changes how sessions are labelled, so total sessions for the same date range should not change materially between groups.

Avoid testing with a made-up utm_source on your live property unless you are happy to keep that test data in your reports.

Keep the source with the lead

Analytics shows sessions; your sales team works with people. Add hidden form fields that record the landing page, the document referrer and any UTM parameters, then save them to your CRM. Collect only what you need, cover it in your privacy notice and respect consent choices. For a visitor who arrives today and converts next week, decide whether you will report the first source, the converting session's source or both, and keep that choice consistent.

Why AI traffic shows as direct in GA4

GA4 can only classify what arrives with the visit. If someone copies a link from an answer and pastes it into a browser, types your address after reading about you, or opens a link from an app that passes no referrer, the session can be reported as direct. Redirects that drop URL parameters and tags that load late or only after consent can also lose or hide information.

  • Test your redirects and confirm that UTM parameters survive them.
  • Watch direct visits to deep pages that people rarely type by hand. A rise is a clue, not proof of AI traffic.
  • Do not add a share of direct traffic to AI totals. Report what you can identify and describe it as a minimum.
  • Ask "How did you hear about us?" on forms or calls, with an AI assistant option. It captures influence that never produces a click.

Consent also matters. If analytics storage is denied for some visitors, your reports will not show every session in the usual way.

How to track AI Overviews and AI Mode traffic

Do not look for these in the AI Assistant channel; Google excludes them. Google's documentation says sites appearing in AI Overviews and AI Mode are included in Search Console's overall search traffic, in the Performance report under the Web search type.

On June 3, 2026, Google also announced Search Generative AI performance reports, showing impressions in AI features by page, country, device and date. Google said it was first rolling them out to a subset of websites, so your property may show them or not. The announcement lists impressions, not clicks, so you cannot work out an AI-feature click-through rate from that view.

QuestionWhere to look
Which assistants send visits?GA4, source and AI channel
Are my pages shown in Google's AI features?Search Console generative AI report, if available
Is organic traffic changing overall?Search Console Performance, Web search type
Do visits become leads or sales?GA4 key events and your CRM

AI crawlers are not AI visitors

Server logs may show OpenAI's bots even when no person clicks through. They have different jobs:

User agentWhat OpenAI says it does
OAI-SearchBotUsed for search in ChatGPT; its robots.txt setting is independent of GPTBot's
GPTBotControls whether content may be used to train OpenAI's foundation models
ChatGPT-UserVisits triggered by user actions; not automatic crawling, so robots.txt rules may not apply

OpenAI says robots.txt changes can take about 24 hours to affect search results. Blocking and allowing are business decisions, but check your file and firewall before concluding that assistants ignore your site. Log requests are not sessions, so do not add them to GA4 traffic.

Connect AI traffic to leads and revenue

  1. Mark real outcomes as key events: qualified form submissions, calls, bookings, trials and purchases.
  2. Pass source information into your CRM with the lead, so sales quality can be compared by source.
  3. Compare conversion rate and revenue per session with organic search over at least 90 days.
  4. State the sample size. Three leads from 60 visits is not a reliable 5% rate.

For setting meaningful goals across channels, see our performance marketing guide.

AI traffic value calculator

Use your own GA4 and CRM numbers for one period. The defaults are examples.

AI referral value calculator

Value per lead should reflect close rate and margin. Fewer than about 30 conversions in either group makes the comparison very unstable; that threshold is a practical caution, not a significance test.

How to measure and grow ChatGPT referral traffic

Once measurement is stable, use it to decide what to improve.

  • List the top landing pages from AI sources and keep them accurate and current.
  • Answer the main question clearly near the top, then add detail, evidence and tools.
  • Publish things an answer cannot fully replace: calculators, original data, comparisons and first-hand detail.
  • Give each of those pages an obvious next step.
  • Check that important pages are crawlable by the search bots you want.

No method guarantees that an assistant will cite or link to you. Our generative engine optimization guide covers the content side, and the ChatGPT ads guide covers paid placement, which you should tag and report separately from unpaid referrals.

How to read the AI landing page report

What you seePossible meaningNext step
AI visits go to outdated postsPeople are reaching information you no longer stand behindUpdate the page, or redirect it to the current version
Visits reach missing URLsA moved or wrong linkRedirect where a true replacement exists; otherwise keep a helpful 404
Engaged visits but no key eventsNo relevant next step, or early research intentAdd a fitting action and measure again
Product or pricing pages convert wellVisitors may arrive late in their researchKeep facts, prices and comparisons current

For missing URLs, see our guide to handling 404 errors.

A monthly AI traffic report

LineDefinition to keep fixed
Identified AI sessionsYour custom channel, with the regex version noted
Sessions by assistantGrouped from Session source
Top landing pagesTop ten by sessions and by key events
OutcomesKey events, qualified leads and revenue
Google AI visibilitySearch Console impressions, if the report is available
Self-reported discoveryLeads who say an assistant introduced them
ChangesRegex edits, site releases, tagging or consent changes

Troubleshooting AI traffic tracking in GA4

SymptomLikely check
Custom channel shows nothing and Referral still lists assistantsOrder: move your channel above Referral
Regex misses obvious sourcesCompare the exact source values and test them above
Unrelated sites appear as AIRemove short fragments such as "ai" or "gpt"
Default and custom totals differExpected if your list includes sources Google does not recognize, or history before May 2026
Spike in May 2026Check whether it is reclassification from Referral to AI Assistant
No key events from AITest your forms and tags, then consider whether the sample is simply small

AI traffic tracking checklist

  • AI Assistant row reviewed in the default channel group.
  • Source values for each assistant searched and recorded.
  • Custom channel created, ordered above Referral and tested.
  • Key events and CRM source capture working.
  • Search Console checked for Google's AI features.
  • Direct traffic left unassigned unless you have evidence.
  • Regex reviewed quarterly and changes logged.
Rahil Joshi, founder of Web Zodiac

More than ten years in digital marketing, starting in SEO and now running Google Ads, Meta ads and ChatGPT ads for clients in the US, UK, Australia and India. About Rahil · Upwork profile

Sources

  1. Google Analytics Help: What's new, AI Assistant traffic measurement (May 13, 2026). support.google.com
  2. Google Analytics Help: Default channel group. support.google.com
  3. Google Analytics Help: Custom channel groups. support.google.com
  4. Google Search Central: AI features and your website. developers.google.com
  5. Google Search Central Blog: Search Generative AI performance reports (June 2026). developers.google.com
  6. OpenAI: Overview of OpenAI crawlers. developers.openai.com
Questions

Frequently asked questions

How do I track ChatGPT traffic in GA4?

Open Traffic acquisition, switch the dimension to Session source / medium and search for chatgpt. Newer recognized visits can show the ai-assistant medium and appear in the AI Assistant channel.

Does GA4 track AI traffic automatically?

Yes for recognized AI assistants. Google assigns the ai-assistant medium and AI Assistant channel without setup. Visits that arrive without a recognizable referrer cannot be identified that way.

Can I track AI Overview traffic in GA4?

Not as a separate AI channel. Google says the AI Assistant channel excludes AI Overviews and AI Mode. Their visibility is included in Search Console, which also has generative AI performance reports that Google began rolling out in June 2026.

Can I attribute traffic from ChatGPT or Perplexity?

You can attribute clicks that arrive with an identifiable source. ChatGPT is named in GA4's channel definition. Check how Perplexity appears in your property and include it in a custom channel group.

Why does AI traffic show as direct?

When a visit arrives without referrer or campaign information, for example after a link is copied or opened from some apps, GA4 has nothing to identify the assistant and can report it as direct.

Will a custom channel group change past data?

Google says custom channel groups can be applied to reports retroactively. Changing one does not retroactively change audiences, and they are not available in the BigQuery export schema.

How do I know if ChatGPT is sending me traffic?

Search Session source for chatgpt in Traffic acquisition over the last 90 days, then check landing pages. Server logs showing OpenAI crawlers do not by themselves mean a person visited.

Can I see a competitor's ChatGPT traffic?

Not from your GA4. Third-party tools offer estimates based on their own data and models, so treat them as directional.

Free audit

Find out what your ad spend is really returning

A free review of your Google Ads, Meta ads and tracking. No obligation.

Get my free audit →
WhatsApp