How to track ChatGPT, Gemini, and Perplexity traffic in GA4

Track ChatGPT traffic in GA4, add Gemini and Perplexity to a custom channel, and compare AI landing pages, engagement, and conversions.

A Kozak sorts AI visits into a channel in GA4
Article contents 0%
The AI Assistant channel in GA4: what it counts without setup How to track ChatGPT traffic in GA4 in five minutes How to create a custom channel group for AI traffic in GA4 Where Perplexity and Gemini traffic shows up in GA4 How to see landing pages from AI traffic in GA4 and measure conversions Why is ChatGPT traffic showing as direct in GA4? What GA4 will not show Common mistakes when setting up AI traffic Looker Studio and BigQuery: when the GA4 interface is not enough Frequently asked questions How we do this in VYDAI
Article contents

To track ChatGPT traffic in GA4, start with the AI Assistant channel in Reports → Acquisition → Traffic acquisition. Google added it to the default channel group on May 13, 2026. A custom channel group lets you track AI traffic in GA4 by platform, include Perplexity, or use your own source list. Clicks from AI Overviews and AI Mode stay in Organic Search. Visits without a referrer may appear as Direct, which does not identify the AI source on its own.

The AI Assistant channel in GA4: what it counts without setup

The AI Assistant channel in GA4 groups sessions from sources Google recognizes as AI assistants. Google announced the channel in its May 13, 2026, release notes. When GA4 recognizes a referrer, it assigns the session the ai-assistant medium, the (ai-assistant) campaign, and the AI Assistant channel. GA4 applies this classification automatically.

The announcement names ChatGPT, Gemini, and Claude as examples. Google’s Default channel group documentation also lists DeepSeek, Copilot, and Grok. These examples are not a complete list of domains, and GA4 may not recognize every visit from those apps. Perplexity is not named in the default channel definition, so check your property’s source data and add a custom rule if needed.

GA4 dimensionTypical value for a recognized AI visitWhere to use it
Session default channel groupAI AssistantAcquisition / Traffic acquisition
Session mediumai-assistantCheck the classification or use it in a custom group rule
Session campaign(ai-assistant)Compare traffic GA4 recognizes natively
Session sourceA source such as chatgpt.comSee visits by platform and check the domains

A custom group is useful when you need Perplexity, separate rows for each assistant, or sources Google did not classify as AI Assistant. A small site may need only the native channel and a report broken down by Session source. A custom channel gives you control over the classification rules, but it cannot recover source data GA4 never received.

How to track ChatGPT traffic in GA4 in five minutes

Start with the standard report. It shows sessions GA4 has assigned to AI Assistant and sessions recorded with a ChatGPT source.

  1. In GA4, open Reports → Acquisition → Traffic acquisition.
  2. Set the primary dimension to Session default channel group, then look for AI Assistant.
  3. To check a specific assistant, choose Session source / medium or Session source, then search for chatgpt above the table.
  4. Compare the results with another period or platform to see how traffic changes.
  5. Review Sessions, Engaged sessions, Engagement rate, and Key events. If e-commerce tracking is configured, also check Transactions and Total revenue.

The Session source / medium row may show chatgpt.com / ai-assistant, while another assistant may appear under the standard referral medium. The exact value depends on the data GA4 receives and how it classifies the visit. If a ChatGPT row isn’t showing in the report, check the native channel, actual source values, and your custom group. It may have been grouped under another source or channel, which is why a missing row does not prove nobody came from ChatGPT.

How to create a custom channel group for AI traffic in GA4

Here’s how to track AI traffic in GA4 by platform: create a custom channel group, then use Session source in your report to break out visits by assistant. The group gives AI visits their own row in reports and lets you include sources missing from the default category. Copy the default group first to keep its other channels available, then use the source domain or native medium in your rule. Google’s guide to custom channel groups explains how to set one up.

  1. Open Admin → Data display → Channel groups.
  2. Select Create new channel group. Copy the Default channel group and name the copy, for example AI traffic and default channels.
  3. Add a channel and name it AI assistants.
  4. Set the rule to match either of two conditions: Session source matches the regex in the next section, or Session medium exactly matches ai-assistant. The second condition includes sessions GA4 already classified natively, even if their source is not in your domain list.
  5. Move AI assistants above Referral and any other channel that could match the same sessions.
  6. Save the group. Select it as the primary or secondary dimension in Traffic acquisition.

Channel order in the group: the AI channel should sit above Referral
Channel order in the group: the AI channel should sit above Referral

As of October 2026, a standard GA4 property can have two additional custom channel groups, while an Analytics 360 property can have five. Each group can have up to 50 channels. You need the Editor role at the property level to create or edit a group. If you have Viewer access, ask an editor to create it. Depending on your permissions, you may still be able to view existing reports or explorations.

Changes to a custom channel group definition apply to historical data in reports and explorations that use it. Audience conditions work differently: a change affects eligibility going forward, not retroactively. A primary channel group also differs from a custom group. If you make a custom group primary, its criteria populate that dimension from that point onward.

A GA4 regex for ChatGPT, Perplexity, and Gemini

For the Session source condition, choose matches regex and include the domains you want to count. The expression below covers ChatGPT, Perplexity, Gemini, and several other widely used AI services:

^(www\.)?(chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|bard\.google\.com|copilot\.microsoft\.com|copilot\.com|edgeservices\.bing\.com|claude\.ai|deepseek\.com|chat\.deepseek\.com|grok\.com|grok\.x\.com|meta\.ai|chat\.mistral\.ai|mistral\.ai|you\.com|phind\.com|poe\.com|kagi\.com|search\.brave\.com)$
ServiceDomain in the regexNamed by Google as a default AI Assistant example?Note
ChatGPTchatgpt.com, chat.openai.comYesOpenAI says ChatGPT Search adds utm_source=chatgpt.com to referral URLs
Perplexityperplexity.aiNoCheck actual source values; Google includes it in an example of a custom AI assistant channel
Geminigemini.google.com, bard.google.comYesKeep Gemini assistant traffic separate from AI Overviews and AI Mode in Search
Microsoft Copilotcopilot.microsoft.com, copilot.com, edgeservices.bing.comYesAdd other domains only after checking your reports
Claudeclaude.aiYes in the release notes; the channel definition does not name itAdd it if you want it alongside the other sources
DeepSeek, Grokdeepseek.com, chat.deepseek.com, grok.com, grok.x.comBoth appear in Google’s default channel help pageDomains may differ across product surfaces
Other servicesmeta.ai, chat.mistral.ai, mistral.ai, you.com, phind.com, poe.com, kagi.com, search.brave.comNot all are named by GoogleKeep the sources you need and update the expression from your own GA4 data

Regex matching in GA4 uses RE2, a regex engine. By default, it matches the full source value and is case-sensitive. Use the complete domain, add a backslash before periods, and keep the ^ and $ boundaries. Google’s Analytics regex documentation explains these defaults. OpenAI also says that ChatGPT Search automatically adds utm_source=chatgpt.com to referral URLs in its Publishers and Developers FAQ. This tag can help identify those search referrals, but it may not appear in every browser or situation.

After creating the group, inspect the actual Session source values in your report and keep only the domains you need. Treat copilot.com, chat.deepseek.com, and other less common variants as domains to verify in your own data. Those domains may not appear as referrers on every visit.

Why channel order and regex precision matter

The first matching rule determines a session’s channel.

If Referral is above AI assistants, a session from an AI service with the referral medium is assigned to Referral before GA4 checks your rule. Put the AI channel first.

Google’s help page includes a broad example with fragments such as .*ai, .*gpt.*, and .*google.*. These patterns can match unrelated sources, including Google properties other than Gemini. The expression above matches a full domain, so a source such as blog.example-ai does not match just because its name contains ai.

Where Perplexity and Gemini traffic shows up in GA4

How to track Perplexity referrals in GA4

In Traffic acquisition, search Session source for perplexity.ai or the value shown in your property. Google does not name Perplexity in its default AI Assistant examples, so those sessions may stay under Referral. Add the source to a custom group to include it in your AI channel consistently.

How to track Gemini traffic in GA4

Check which Google surface sent the visit. If GA4 receives a referrer from the Gemini app, the source may be gemini.google.com. Google AI Overviews and AI Mode appear within Google Search. GA4 classifies clicks from Google organic results as Organic Search, not AI Assistant. Search Console includes those impressions and clicks in the Web search type, not in separate AI Overviews or AI Mode metrics. See Google Search Central’s guidance on AI features.

Surface or scenarioWhat GA4 typically recordsCan GA4 separate it?
ChatGPT with a recognized referrerAI Assistant, ai-assistant, or a source such as chatgpt.comYes, by channel or Session source
ChatGPT Search with utm_source=chatgpt.comThe source and campaign passed in the URLYes, check Session source and Session campaign
Gemini appGemini referrer, if sent and retainedYes, by source or custom group
Perplexityperplexity.ai as source, if sentYes, add it to a custom group if needed
Claude or CopilotRecognized AI Assistant or a specific Session sourceCheck both dimensions and your actual property values
Google AI Overviews and AI ModeGoogle organic searchNo, they do not have a separate AI Assistant channel
Visit without a referrer or UTMDirect or another value from the available dataNo, Direct alone cannot identify the AI service

How GA4 classifies visits from AI assistants, Google Search features, and links without referrer data
How GA4 classifies visits from AI assistants, Google Search features, and links without referrer data

Our guide to how to appear in Google AI Overviews and AI Mode covers visibility in Google Search. This article focuses on referrals from AI assistants.

How to see landing pages from AI traffic in GA4 and measure conversions

In Explore, create a Free form report. Add Landing page + query string to Rows, then filter by or create a session segment for Session default channel group, Session source, or your custom group. Add Sessions, Engaged sessions, Engagement rate, Key events, and Session key event rate as metrics. For an online store, you can also include Transactions and Total revenue.

Compare these landing pages with pages cited by AI systems. Our guide to which website pages ChatGPT cites shows how to find pages that AI answers cite as sources.

How to track AI conversions in GA4

For each landing page and date range, compare Session key event rate from AI traffic with Organic Search. This shows which channel has more sessions that trigger a key event, without mixing pages with different goals. See how ChatGPT selects products for ecommerce for details on how ChatGPT picks products and what a store can prepare.

Your measured AI share is the number of sessions in your AI channel divided by all sessions for the same period. This is the share classified by your report, not an estimate of everyone influenced by AI answers.

Explorations also have limits. GA4 retains detailed data for two months by default, and you can extend retention to 14 months in a standard property. Privacy thresholds may hide rows in reports and explorations. Queries with more than 10 million events may use sampled data. Data from the most recent 48 hours can change while processing finishes, so avoid conclusions from an incomplete day.

Why is ChatGPT traffic showing as direct in GA4?

A visit appears as Direct when GA4 cannot identify another source from the information it receives. This can happen when someone opens a saved link or types a URL, or when a referrer or campaign parameter is not preserved. A report does not show the exact cause of every Direct session.

If a browser or app sends no referrer, GA4 has no domain such as chatgpt.com, gemini.google.com, or perplexity.ai to match against your regex.

Do not count all Direct sessions as AI traffic.

If visits from ChatGPT appear under Direct while the AI Assistant channel stays flat, that pattern alone does not prove their source was ChatGPT. Use the native AI Assistant channel and a custom group to report identifiable referrals. Review citations and mentions separately. How to analyze the sources AI relies on can help you compare the links AI cites with the landing pages visitors reach.

Follow GA4’s tagging guidance to add UTM parameters to links you control, such as links in a profile or newsletter. This will not tag third-party links in ChatGPT, Gemini, or Perplexity answers.

What GA4 will not show

After a click, GA4 reports visits and on-site behavior, but it does not include the prompt someone entered in an AI assistant. A Google Analytics Community answer says standard analytics cannot show which prompts led to those visits and recommends reviewing traffic sources and site pages.

Session source and page referrer show where a visit came from or the previous URL, not what someone typed into a conversation. GA4 also cannot count brand mentions or citations that do not lead to a click. You need a separate way to monitor AI answers for that. Our guide to measuring AI visibility alongside SEO explains how mentions, citations, and visits differ.

AI Overviews and AI Mode do not appear as separate channels within organic search in GA4. Search Console includes their results in Web search performance data. Keep those clicks separate from Gemini app traffic. They come from different Google surfaces.

Common mistakes when setting up AI traffic

MistakeWhat you will seeHow to fix it
Use only a Session source regexSessions GA4 classified as AI Assistant may fall outside your source list and end up in another channelAdd an OR condition where Session medium exactly matches ai-assistant
Use chatgpt.com without escaping the periodIn regex, a period means any characterWrite chatgpt\.com and check the full expression against sample values
Assume chatgpt is a partial match by defaultGA4 regex matching is full-match and case-sensitive by default, so chatgpt alone will not match chatgpt.comUse the full domain or deliberately build a partial-match condition
Use broad strings such as .*google.* or .*gpt.*Unrelated sources containing that fragment can enter the channelMatch complete domains with ^ and $
Put the AI channel below ReferralThe session is assigned to the first matching rule, often ReferralMove the AI channel above Referral
Expect a new audience rule to apply to past sessionsNew audience conditions do not change historical eligibilityUse the custom group in reports for a retrospective view; audience rules apply going forward
Expect custom channel groups to appear in BigQuery ExportThe export schema has no ready-made custom channel group dimensionRecreate the classification rule in your SQL query
Treat Direct as hidden AI trafficThe report includes unverified visitsKeep Direct separate and count only sessions with a recognized source or medium

Looker Studio and BigQuery: when the GA4 interface is not enough

Looker Studio can put GA4 and Search Console data in the same dashboard. For example, you can show organic Google Search clicks from Search Console alongside sessions, engaged sessions, or conversions from GA4. Those totals will not match: Search Console counts clicks on Google results, while GA4 counts site sessions using its own measurement and attribution rules.

BigQuery is useful for SQL analysis or storing detailed data. Custom channel groups are not included in the GA4 BigQuery Export schema, so recreate the rules in your query using the available session sources and UTM parameters. Document the regex and update it when you change your source list so the query and GA4 reports stay aligned.

Frequently asked questions

What is the AI Assistant channel in GA4? It is GA4’s default channel for visits it recognizes as coming from AI assistants. As of October 2026, GA4 assigns those sessions the ai-assistant medium and (ai-assistant) campaign. Google lists ChatGPT, Gemini, DeepSeek, Copilot, and Grok as examples.

Can GA4 show ChatGPT prompts? No. GA4 can show the referral source, session, and landing page, but its standard dimensions do not include the prompt or conversation text.

Do AI Overviews and AI Mode appear in the AI Assistant channel? No. Google excludes them from AI Assistant. GA4 counts clicks from Google organic results as Organic Search. Search Console includes them in the Web search type.

Will creating a new channel group change historical reports? Yes. You can use a custom channel group to classify historical data in supported reports and explorations. Audience changes affect eligibility going forward only.

Can I track AI traffic in GA4 with Viewer access? Check an existing Traffic acquisition report or exploration that you have permission to view. Someone with the Editor role must create or change a custom channel group.

Why is Perplexity missing from the AI Assistant channel? Google’s default channel examples do not name Perplexity. Search your property’s Session source values. If perplexity.ai appears, add it to a custom group with a regex rule.

How we do this in VYDAI

VYDAI’s AI traffic report uses the GA4 property connected to a project. It shows sessions, engagement, key events, and revenue when available in GA4, broken down by source and landing page. The source table shows how each row was classified: by the native ai-assistant medium or a domain in the dictionary.

VYDAI AI traffic report: AI sessions, share of traffic, key events, and landing pages by day
VYDAI AI traffic report: AI sessions, share of traffic, key events, and landing pages by day

The report lets you compare sessions and landing pages by AI source with monitored mentions and citations. For example, you can check whether a page cited by an AI system also brings visitors to your site. GA4 may report Perplexity as a traffic source if it receives that domain as a referrer. VYDAI does not monitor brand mentions in Perplexity. Brand monitoring covers ChatGPT, Gemini, Claude, Google AI Overviews, and Google AI Mode.

You can view the report after connecting Google Analytics in a project’s settings. For a small site, GA4 and a custom channel group may be enough. VYDAI brings AI traffic together with data on brand mentions and sources cited in AI answers. See the VYDAI demo or create an account.

Next

What to read next

All articles
// Try it on your prompts

See how AI talks about your brand

Create an account, add your domain, and test real prompts. You’ll see which AI models mention your brand, which sources back it up, and which competitors show up next to it.

Create a VYDAI account