How to track ChatGPT referral traffic in GA4 and logs
See which visits came from ChatGPT, Perplexity, Claude or Gemini: GA4's AI channel and regex, utm_source=chatgpt.com, direct traffic and AI bots in logs.
On this page
- 01How do I know if a visitor came from ChatGPT or Perplexity?
- 02How do I track ChatGPT traffic in GA4?
- 03What is utm_source=chatgpt.com?
- 04Why does ChatGPT traffic show as direct?
- 05How do I find AI assistants in my server logs?
- 06Does Bing or Google show AI citations?
- 07What do ChatGPT Business Hub insights show?
- 08Which AI assistant recommended my business?
- 09Should I ask "How did you hear about us?"
- 10How do I track which assistant uses my ChatGPT app or Claude connector?
- 11How Transica helps
- 12Common questions
- 13Sources
To see visits from ChatGPT, Perplexity, Claude or Gemini, open Acquisition > Traffic acquisition in Google Analytics 4, find the AI Assistant channel, and switch the table to Session source to see each assistant by name. ChatGPT also adds utm_source=chatgpt.com to the links it cites, so those visits keep their source. Many visits that start in an assistant still show up as direct, because app taps, copied links and later searches for your name carry no source. Your server logs fill part of the gap: ChatGPT-User, Perplexity-User and Claude-User requests show when an assistant opened your page to answer someone's question.
How do I know if a visitor came from ChatGPT or Perplexity?
Your analytics tool learns where a visit came from in two ways. The first is the referrer: the address of the page the visitor was on before, which the browser passes along. The second is a tag added to the link, such as utm_source. Either one can name the assistant's website as the source.
| Assistant | Source in your analytics |
|---|---|
| ChatGPT | chatgpt.com |
| Perplexity | perplexity.ai or www.perplexity.ai |
| Claude | claude.ai |
| Gemini | gemini.google.com |
| Microsoft Copilot | copilot.microsoft.com |
| DeepSeek | chat.deepseek.com |
| Grok | grok.com |
Google's AI Overviews and AI Mode aren't on this list. Google Analytics counts visits from them as Organic Search (Google).
How do I track ChatGPT traffic in GA4?
GA4 has a built-in channel called AI Assistant. Google's channel definitions say it covers sources like ChatGPT, Gemini, DeepSeek, Copilot and Grok. To see it:
- In Reports, open Acquisition > Traffic acquisition.
- Find the AI Assistant row.
- Change the table's dimension to Session source to see each assistant.
Google doesn't publish the full list of assistants in that channel. Search Engine Journal found Perplexity visits landing in Referral, and chatgpt.com visits split across AI Assistant, Referral and Unassigned. Unassigned is where GA4 puts a visit that matches no channel rule.
To count these assistants in one place, build your own channel group with this pattern. It matches the domains in the table above.
^(.*\.)?(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|chat\.deepseek\.com|grok\.com)$You need the Editor role or above.
- Go to Admin > Data display > Channel groups.
- Select Create new channel group. It starts as a copy of the default group. Give it a name.
- Select Add new channel and name it "AI assistants".
- Select Add condition group. Choose Source, then matches regex, and paste the pattern.
- Select Save channel.
- Select Reorder, drag "AI assistants" to the top, and select Apply. GA4 gives each visit to the first channel it matches.
- Select Save group.
Back in Traffic acquisition, pick your new group as the table's dimension. Google says custom channel groups also apply to past data (Google). When a new assistant starts sending you visits, add its domain to the pattern.
What is utm_source=chatgpt.com?
It's a tag ChatGPT adds to the links in its answers. OpenAI's publisher FAQ says ChatGPT includes utm_source=chatgpt.com in referral URLs, so you can track visits from ChatGPT search. A link to your pricing page looks like this:
https://example.com/pricing?utm_source=chatgpt.comBecause the tag is part of the address, it still names ChatGPT when the browser sends no referrer.
These links come from ChatGPT search. OpenAI says sites that block OAI-SearchBot aren't shown in ChatGPT search answers (OpenAI). If your robots.txt blocks it, see which crawlers to allow.
Why does ChatGPT traffic show as direct?
GA4 calls a visit direct when it arrives with no referrer and no tag. Google's help page lists typed addresses, links in PDFs and Word files, redirects and URL shorteners that strip tags, and ad blockers. Visits that start in an assistant fall into the same gaps:
- App taps. A link opened from the ChatGPT or Claude app on a phone or computer has no web page behind it, so there's often no referrer. It works like a link in a PDF. If the link carries ChatGPT's tag, the tag still names ChatGPT.
- Copied links. Someone copies your address out of the answer and pastes it into a new tab. A pasted address has no referrer.
- Your name, searched later. The assistant names you, sometimes from memory with no link at all. The person then searches for you on Google or types your address. That visit counts as search or direct, not as ChatGPT.
- Redirects. A redirect that drops the part of the address after the
?removes theutm_sourcetag before your analytics sees it.
Founders on Reddit describe the same blind spot. In one r/microsaas thread, a developer described a new customer who bought a monthly plan and switched to yearly 13 minutes later. PostHog couldn't tie the signup to any channel, and the buyer used Apple's Hide My Email. ChatGPT stayed a best guess. In an r/mcp thread, another developer said that without tagged links, all you see is "a pile of direct visits".
How do I find AI assistants in my server logs?
Your web server keeps an access log: one line for each request, with the time, the page, the result and the user agent. A user agent is the name the visiting software sends with every request. AI companies publish the names their bots use.
| User agent | Company | What a request means |
|---|---|---|
| ChatGPT-User | OpenAI | A ChatGPT user did something, such as ask a question, and ChatGPT opened your page |
| Perplexity-User | Perplexity | A Perplexity user asked a question, and Perplexity visited your page to help answer it |
| Claude-User | Anthropic | Someone asked Claude a question, and Claude fetched your page |
| OAI-SearchBot | OpenAI | Crawls pages for ChatGPT search results |
| PerplexityBot | Perplexity | Crawls pages to show and link in Perplexity search |
| Claude-SearchBot | Anthropic | Crawls pages to improve Claude's search results |
| GPTBot | OpenAI | Collects content that may train OpenAI's models |
| ClaudeBot | Anthropic | Collects content that may train Anthropic's models |
Sources: OpenAI, Perplexity, Anthropic.
The first three matter most here. Each request means a real person's request led an assistant to your page at that moment. That person may read the answer inside the chat and never visit your site. The crawlers further down collect pages ahead of time, with no one waiting.
You won't find these requests in Google Analytics. GA4 counts a visit when its script runs in a browser. Vercel and MERJ found in December 2024 that ChatGPT-User, OAI-SearchBot, GPTBot, ClaudeBot and PerplexityBot didn't run JavaScript.
To count each one in a standard nginx or Apache access log:
grep -oE "ChatGPT-User|Perplexity-User|Claude-User|OAI-SearchBot|PerplexityBot|Claude-SearchBot|GPTBot|ClaudeBot" access.log | sort | uniq -cAnyone can send a fake user agent. To check that a request is real, compare its IP address with the list the company publishes. OpenAI has one for ChatGPT-User, OAI-SearchBot and GPTBot. Perplexity has one for PerplexityBot and Perplexity-User. Anthropic keeps one list for its bots.
An assistant can also answer from its search index, or from what it already knows, without opening your page. So these counts show part of the interest, not all of it.
Does Bing or Google show AI citations?
Both show how often your pages appear in AI answers. Neither shows visits.
- Bing Webmaster Tools has an AI Performance report, in public preview since 10 February 2026. It counts how often Microsoft Copilot, Bing's AI summaries and some partner services cite your pages. You see total citations, the average number of your pages cited each day, citations for each page, and a sample of grounding queries: the phrases the AI used to look up content.
- Google Search Console has a generative AI performance report. It shows impressions: how often your pages appeared in AI Overviews, AI Mode and Discover's AI features, by page, country, device and date.
What do ChatGPT Business Hub insights show?
If you claim your business in ChatGPT and pass the Persona ID check, Business Hub shows three things for the past 28 days (OpenAI):
| Insight | What it counts |
|---|---|
| Mentions | For an online business, answers where ChatGPT references your website. Your name alone doesn't count |
| Website clicks | How often people click through to your site |
| Discovery topics | Common themes in answers that mentioned or cited you |
The numbers are totals. You don't see the prompts people typed, and a blank number can mean activity is below OpenAI's reporting threshold, not zero. Early users on Reddit noted that the numbers show a change but not which questions caused it.
Which AI assistant recommended my business?
You can often learn which assistant sent a visit, read your page or called your app. You can't see what someone asked it.
| What you want to know | Where to look |
|---|---|
| Which assistant sent a visit | GA4 session source, or utm_source=chatgpt.com |
| Which assistant read a page for someone | ChatGPT-User, Perplexity-User or Claude-User in your server logs |
| Which assistant called your app's tools | Your MCP server's logs |
| How often ChatGPT cited you | Business Hub insights |
| How often Copilot cited you | Bing's AI Performance report |
| How often Google's AI features showed you | Search Console's generative AI report |
| What the person asked | Only the person can tell you |
Should I ask "How did you hear about us?"
Yes. It's the only way to learn about visits that left no trace. Add an optional question to your signup or checkout form, with choices such as ChatGPT, Perplexity, Claude, Gemini, Google search, a friend and Other. In the r/microsaas thread above, another founder said an optional dropdown like this cleared up most of their unexplained signups.
Sign in with Apple can hide a customer's email. With Hide My Email, you only get a random relay address, so you can't match that customer to anything else you know. The relay still forwards your messages to their own inbox (Apple). A short thank-you email that asks how they found you still reaches them.
How do I track which assistant uses my ChatGPT app or Claude connector?
An app in ChatGPT or a connector in Claude runs on an MCP server. When an AI app connects, its first message includes its own name and version, in a field called clientInfo (MCP specification). Log that field with each tool call, and you know which assistant called which tool, and when.
This is a different kind of visit. The assistant does the job inside the chat, and the customer may never open your website. Developers in the r/mcp thread above made the same point: logs of tool calls told them more about real use than page views did. One suggested counting connections, first successful use and repeat use separately from website visits.
How Transica helps
Transica builds and hosts ChatGPT apps and Claude connectors and keeps them working.
- Agent traffic. Once your website is verified, Agent traffic shows which AI assistants, AI search crawlers and training crawlers reach it, the pages they open, and how often they hit errors or blocks. Each named agent is marked Verified when the company's published lists confirm its requests. You upload an nginx or Apache access log, or connect Cloudflare with a small Worker. The Worker sends the time, path, status, user agent and IP address of requests from agents, crawlers and scripts, never people's browsing, cookies or page content. Alerts flag a new agent, more blocks, traffic spikes and drops, and rising errors.
- Tool calls by AI app. For a connector Transica hosts, every tool call is recorded with the AI app that made it (Claude, ChatGPT, Cursor, Codex or other), the tool, the outcome and how long it took. Once a connector is hosted, AI assistant visits per day before hosting sit next to connector calls per day after it went live.
Like any log, neither one shows what a person asked their assistant.
Common questions
How do I see ChatGPT traffic in Google Analytics?
Open Acquisition > Traffic acquisition and look at the AI Assistant channel, or at the session source chatgpt.com. For a fuller count, add a custom channel that matches chatgpt.com and the other assistants' domains.
Why does ChatGPT traffic show as direct in GA4?
Taps in the ChatGPT app, copied links and redirects that drop the utm_source tag can leave a visit with no referrer and no tag. GA4 counts those visits as direct.
What does utm_source=chatgpt.com mean?
It's a tag ChatGPT adds to links it cites in its answers. It tells your analytics the visit came from ChatGPT, even when there's no referrer.
Does GA4 track Perplexity traffic?
Perplexity visits show the source perplexity.ai when the browser passes a referrer. They may land in Referral rather than AI Assistant, so add perplexity.ai to a custom channel group.
Is ChatGPT-User a real visitor?
It's ChatGPT fetching your page because a user asked for something. The person reads the answer in ChatGPT and may never visit. These requests show up in server logs, not in GA4.
Can I see what people asked ChatGPT about my business?
No. Business Hub insights show discovery topics, which are themes, not prompts. Asking customers how they found you is the closest you'll get.
How do I track traffic from Google AI Overviews?
GA4 counts it as Organic Search, so you can't separate it there. Search Console's generative AI report shows how often your pages appeared in AI Overviews and AI Mode.
Is ChatGPT referral data complete?
No. Visits with no referrer or tag show up as direct, and answers that name you without a link send people to search for you instead. Read the numbers as a minimum.
Sources
Read on 20 November 2026, and on 11 November 2026 for the Business Hub help page.
- Google Analytics Help: Default channel group, Custom channel groups, Understand (direct) / (none) traffic, Traffic acquisition
- Google Search Central: Generative AI performance reports
- OpenAI: Overview of OpenAI crawlers, Publishers and developers FAQ, Setting up your business on ChatGPT
- Perplexity: Perplexity crawlers
- Anthropic: Does Anthropic crawl data from the web?
- Microsoft: AI Performance in Bing Webmaster Tools
- Apple: How to use Hide My Email with Sign in with Apple
- Model Context Protocol: Lifecycle
- Studies and reporting: Vercel and MERJ, The rise of the AI crawler, Search Engine Journal, GA4's AI Assistant channel undercounts your AI traffic