How to Track ChatGPT, Perplexity and Gemini Traffic in GA4
See whether ChatGPT or Perplexity sessions show correctly in GA4, track Gemini referral traffic, and build the custom AI channel Google publishes no roster for.
Track identifiable ChatGPT, Perplexity and Gemini visits in GA4 through Traffic acquisition → Session source / medium. Compare Google's native AI Assistant channel with a custom source allowlist, then inspect landing pages and key events. Test the rule before trusting the total: a source containing “chatgpt” is not necessarily chatgpt.com.
A useful AI traffic report answers three questions: which recorded sources sent visits, whether your rule classified them correctly, and what those visitors did next. Citations and verified AI fetches belong beside that report, not inside its session count. That is the measurement layer of Machine Relations.
Key takeaways
- Google's native AI Assistant channel uses a referrer list Google does not enumerate. Its public examples are not the roster. Inspect the actual source, medium and channel in your property.
- A custom channel group gives you an explicit reporting rule. It can regroup historical data whose source was already recorded; it cannot recover an assistant source that the visit did not carry.
- Test exact domains, lookalike strings and campaign aliases separately. Our downloadable test packet shows how a broad product-name regex can admit a different hostname.
- Native and custom channels are alternative classifications of the same sessions. Do not add their totals together.
- Google AI Overviews and AI Mode are excluded from AI Assistant and included in Organic Search. A
google / organicrow does not identify which Google search feature produced the click. - A source tag, a citation and an IP-verified fetch are different evidence. Build the report around the business decision, not the largest available number.
Start with the recorded source, not the channel total
Open Reports → Acquisition → Traffic acquisition. Select Session source / medium and inspect the source values present in the date range you want to report. Start with chatgpt.com, perplexity.ai and gemini.google.com; check legacy domains and campaign aliases rather than assuming every property receives the same values.
Use session-scoped dimensions for this task. First-user acquisition answers how a user was originally acquired, not necessarily where the session being investigated came from. Google's traffic-source documentation distinguishes the scopes and maps utm_source to manual-source dimensions, including Session manual source.
Keep the following together:
| Report field | What it helps establish |
|---|---|
| Session source / medium | The acquisition source and medium recorded for the session |
| Session manual source | The source value from manual campaign tagging |
| Session default channel group | Google's classification of that traffic |
| Your session-scoped custom channel group | Your own classification under the saved rule |
| Landing page | Where the recorded visit began |
| Sessions and key events | Recorded visits and the actions you defined as important |
| Date range and rule version | Whether a later comparison uses the same window and classification |
Do not make an AI-source total by adding separate, overlapping filters. Start with one report and one session-scoped channel definition; use source rows to reconcile it.
What GA4's native AI Assistant channel does
Google defines AI Assistant by the ai-assistant medium and sets that medium when the referrer matches its AI-assistant list. Its Default channel group documentation, read November 23, 2026, names “sources like ChatGPT, Gemini, Deepseek, Copilot, or Grok.” It does not enumerate the list. The same page explicitly excludes Google's AI Overviews and AI Mode from AI Assistant and includes them in Organic Search.
Google's May 13, 2026 release note also names Claude. Its June 11 Source Group note names Perplexity in a separate grouping feature. Neither turns the help page's examples into a complete specification of the native channel.
Inspect source, medium and default channel together. A recorded perplexity.ai / referral row tells you how that traffic was recorded; it does not, by itself, prove Google excludes Perplexity from its referrer list. Campaign tagging and the actual click path also need inspection. Likewise, an ai-assistant label is a reporting classification, not independent authentication of a visitor's origin.
The native channel is a useful baseline. Keep it beside the custom view so differences remain visible instead of hiding them in a blended total.
How to create a custom AI Search channel group in GA4
Google's custom-channel documentation says traffic is included in the first channel whose definition it matches. It also says custom groups can be applied to reports retroactively. That changes reporting categories, not the source information originally collected.
- Record the current source rows. Export the session source / medium values for your reporting window. Inspect Session manual source for campaign-tagged aliases.
- Copy a channel group. Go to Admin → Data display → Channel groups and create a new group from an existing one. Name it clearly, for example “AI Search — source allowlist.”
- Add your AI Search channel. Choose Source → matches regex and use the exact-source pattern below as a starting roster. Adjust it to the values you have evidence to include.
- Set precedence. Place the new channel before Referral and any other overlapping channel you intend it to collect from. If a copied native AI Assistant channel is above it, that earlier match can take the traffic first. Preserve the priorities of unrelated channels.
- Save and select the custom dimension. In Traffic acquisition, choose the session-scoped dimension for the new group. Default channel group remains a different view.
- Reconcile the source rows. Check that intended sources moved into the custom category and excluded sources stayed out. Investigate differences before reporting a trend.
Starting Source allowlist:
^(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|bard\.google\.com|copilot\.microsoft\.com|deepseek\.com|chat\.deepseek\.com|grok\.com|meta\.ai|you\.com)$
This rule matches whole source values. It is our explicit roster, not Google's native roster and not a promise to capture all AI traffic. Add an observed subdomain deliberately. Keep campaign aliases such as openai in a separately reviewed condition rather than broadening the rule to everything containing “openai.”
Keep paid campaigns distinguishable by source / medium and campaign. A reporting category does not establish whether the influence behind a visit was earned, sponsored or paid.
Test your AI-referral regex before saving it
A product-name match is not a domain match. Google's custom-channel help page includes a broad illustrative regex with alternatives containing chatgpt, gpt and perplexity. We tested that published string and our allowlist against designed source values. The examples below match Google's published expression even when the entire source string must match; they do not depend on assuming substring matching.
| Designed Source value | Google's illustrative regex | Our exact-source allowlist | Reading |
|---|---|---|---|
chatgpt.com | Matches | Matches | Exact member of the proposed roster |
notchatgpt.com | Matches | Does not match | A product name inside another hostname is not the allowed domain |
retail.openai.example | Matches | Does not match | An “openai” component is not an exact allowed source |
company-gpt.example | Matches | Does not match | The letters “gpt” do not establish the assistant |
perplexity.example | Matches | Does not match | Same product word, different domain |
assistant.ai | Matches | Does not match | An .ai ending does not establish vendor identity |
These are synthetic string tests, not observed referrals, a GA4 product test or a measured false-positive rate. The hostnames illustrate rule behavior; they make no claim about the owners or activity of those addresses. Google's example is an editable custom rule, not evidence that Google's native classifier makes these matches.
Download all 26 test cases and the exact patterns. The packet preserves the help-page URL, retrieval time, source hash, expected allowlist decisions and both full-match and substring results for Google's example. It includes the proposed roster, lookalike strings, ambiguous platform domains, a campaign alias, Direct and a full URL supplied to a domain-field rule. The repository's offline test recomputes every case.
The practical check is small: include exact intended sources; exclude lookalikes; inspect aliases separately; then verify the saved rule against your property. Passing a string test establishes what the expression matches. It does not verify an assistant visit. Campaign sources can be manually supplied, so retain the actual click-path evidence when validating origin.
How to track ChatGPT traffic in GA4
Filter Session source for chatgpt.com and the legacy chat.openai.com. Inspect Session manual source as well: a manually tagged source need not equal the referring domain.
OpenAI's Publishers and Developers FAQ documented utm_source=chatgpt.com on ChatGPT search referral URLs (archived October 4, 2026 copy; the live FAQ address subsequently redirected). Treat that as a documented behavior, not a guarantee that every click path carries the tag.
The Machine Relations Index's November 8 tracking-tag study found a different value, utm_source=openai, on every ChatGPT-cited URL in its API-answer sample. Those were returned link strings, not measured visits or consumer-app output. The Index was created by Jaxon Parrott and is published by Machine Relations Research; AuthorityTech and Machine Relations Research are related organizations.
If openai appears in your property, inspect its tagged landing URL and how the link was obtained before grouping it. Google's traffic-source documentation maps utm_source into manual-source dimensions. A tag supplied in a URL is useful attribution information, not authentication of ChatGPT as the sender.
For historical comparisons, annotate the October 2026 tagging disruption reported by Search Engine Land, including OpenAI's rollout of a fix on October 15. Do not diagnose a tagging change as lost buyer demand without inspecting the collection path.
How to check Perplexity referral traffic
In Traffic acquisition, find perplexity.ai under Session source / medium. Report its recorded sessions, landing pages and key events for the chosen window. Compare the default and custom channel assignments on those same source rows.
If the medium is referral, report it as recorded rather than calling it organic traffic. If your custom channel places it in AI Search, that is a classification change, not a second set of visits. Google's published native-channel examples do not settle the handling of every Perplexity click path.
To validate a path, open a Perplexity answer that links to your site, click through, and retain the originating answer, destination URL, UTC time and any source information available to you. Check the processed acquisition report, not just the fact that a page view appeared. A controlled test validates that path at that time, not every app or account.
Do not estimate unidentified Perplexity sessions by adding crawler requests to referrals. PerplexityBot requests, Perplexity-User requests and browser sessions use different units. A visit without usable source evidence stays unattributed; it is not assigned to Perplexity because a crawler fetched the same page.
How to track Gemini, Claude and other assistants
| Platform or value to investigate | Source values in the starting roster | What to verify |
|---|---|---|
| Gemini | gemini.google.com, legacy bard.google.com | Recorded source / medium and default versus custom channel |
| Claude | claude.ai | Recorded source / medium; a tag is not required for a referrer to be useful |
| Copilot | copilot.microsoft.com | Actual click path; bing.com alone does not distinguish Copilot from other Bing traffic |
| DeepSeek | deepseek.com, chat.deepseek.com | Exact source received, not a substring containing the product name |
| Grok | grok.com | Actual click path; x.com alone does not distinguish Grok from other X traffic |
| Meta AI and You.com | meta.ai, you.com | Presence and meaning of the source in your own property |
These are values to check, not a verified inventory of every platform's current app behavior. The custom roster is editable. A source absent from it is not evidence that the assistant cannot send traffic.
For Gemini, inspect the named source rows separately from google / organic. Google's native definitions place AI Overviews and AI Mode within Organic Search, not AI Assistant. GA4's source/channel classification does not supply a separate label identifying which of those Google search features a google / organic session came from.
Reconcile the report before calling it growth
Native AI Assistant and custom AI Search are two views of the same acquisition data. Export them for the same window and compare source rows; do not sum the two views.
Download the blank reconciliation worksheet. It retains the window, session source, medium, manual source, default and custom channels, landing page, sessions, key events, rule version, click-path evidence and notes. It contains no client or measured traffic data.
Use it in this order:
- Explain the classification difference. Identify which recorded sources are included by your rule and where precedence sends them. Keep unverified aliases separate.
- Keep the original acquisition values. A custom channel is a reporting label; it does not replace source / medium with a new fact about the visit.
- Compare like with like. Use equal windows and a declared roster. A rule change that groups more old sessions under AI Search is a reporting change, not new traffic.
- Inspect outcomes. Read landing pages and key events alongside sessions. Explain changes in consent, tagging, event definitions or collection before treating them as performance movement.
- Leave unknown origin unknown. A rise in Direct is a lead to investigate, not an AI traffic estimate.
A leadership-ready finding states the actual result: these recorded sources sent these sessions to these pages, with these key events, under this rule and window. It can sit beside citation evidence without pretending every citation produced a visit.
What server logs add to AI traffic attribution
Logs record requests to your site; GA4 records collected analytics activity. Keep the units distinct. Vendor documentation separates user-triggered fetchers from search and training crawlers:
| Vendor | User-triggered fetcher | Search crawler | Training crawler |
|---|---|---|---|
| OpenAI | ChatGPT-User | OAI-SearchBot | GPTBot |
| Anthropic | Claude-User | Claude-SearchBot | ClaudeBot |
| Perplexity | Perplexity-User | PerplexityBot | No training crawler listed on the cited page |
Read the current OpenAI, Anthropic and Perplexity definitions before assigning roles. Verify requests against the vendor's published identity guidance and IP ranges; a user-agent name alone is not verification.
Our historical authoritytech.io check illustrates why identity matters. For September 19–October 14, 2026 UTC, successful requests with the ChatGPT-User name included 7,014 from the vendor's published ranges and 563 from other addresses. For Claude-User, the split was 2,805 and 2,979. A name-only count would have substantially overstated the verified requests.
The same check recorded no IP-verified Perplexity-User requests and 8,978 verified PerplexityBot requests. That establishes what these logs recorded, not how Perplexity served every answer. No user-triggered fetch in a log window is not proof of no citation or no use of previously retrieved material.
Historical method: Cloudflare HTTP request analytics for this one property and window; status 200; names matched and addresses checked against vendor lists fetched on the collection day. Requests are not unique people, answers, referrals or sessions. A verified user-triggered fetch establishes a request by that agent; the answer is needed to establish whether the content was cited or used to support a claim.
Connect the traffic report to the narrative you want to own
A buyer can encounter your company through coverage, ask an assistant about it and never click an assistant link. Another can click a general definition you published without considering your agency. A referral report alone cannot distinguish those journeys.
Keep three records side by side: the publication and claim, the observed answer and sources, and the attributed visit and outcome. Join them only where the evidence supports the connection. Use our AI Publication Intelligence Index to inspect source opportunities and Share of Citation to measure the share of the cited-source pool.
AuthorityTech is The World's First Machine Relations Agency, founded by Jaxon Parrott, who coined Machine Relations in 2024 and created the discipline through his work at AuthorityTech. We shape the positioning, pitch the story and secure third-party coverage around the narrative a company wants to own. Our AI-native AuthorityTech app lets clients set the narrative, fund placements into escrow, follow each story to publication and run a free AI visibility audit. Guaranteed placements are backed by Stripe escrow. We don't work with everyone. Engagements are invite-only.
Measurement shows what machines now say, which sources they cite and what identifiable visitors do next. The agency does the hard work of building the authority behind those results.
Updated November 23, 2026: added the reproducible source-rule test and blank reconciliation worksheet, distinguished reporting classification from origin verification, and rebuilt the setup around recorded source rows.
Frequently asked questions
Can I attribute traffic from ChatGPT or Perplexity in GA4?
Yes, when GA4 receives usable source or campaign information. In Traffic acquisition, inspect Session source / medium, compare the native and custom channel assignments, and report landing pages and key events. A channel rule cannot reconstruct an assistant source that was not collected.
Does GA4 automatically track AI traffic?
Google's native AI Assistant channel classifies recognized assistant referrals. Google does not enumerate its referrer list. Inspect the source, medium and channel in your own property; the public examples do not establish how every platform or click path is handled.
How do I gauge how much traffic Perplexity sends me?
Report sessions recorded with perplexity.ai as the source for the chosen window, then inspect landing pages and key events. Keep unidentified visits and crawler requests separate. Do not add bot requests to sessions or infer missing Perplexity traffic from Direct.
How do I track Gemini traffic?
Inspect gemini.google.com and legacy bard.google.com source rows in Traffic acquisition. Compare their default and custom channel assignments. Google's AI Overviews and AI Mode belong to Organic Search, not AI Assistant; a google / organic row does not identify which search feature produced the click.
What regex should I use for AI referrals?
Start with the exact-source allowlist in this guide, then test it against your recorded sources, lookalike strings and separately reviewed campaign aliases. The downloadable packet contains 26 synthetic cases and the literal patterns. It tests string matching, not native GA4 classification or verified traffic origin.
What does utm_source=openai mean?
It is a manual campaign-source value observed on ChatGPT API-cited links in the Index's November 8 study. Inspect the tagged URL and click path in your own data before attributing it to an assistant. It is not a domain and is not matched by the domain allowlist.
Why does ChatGPT traffic show as Direct?
When usable referrer and campaign information are absent, the visit may be recorded without an identifiable assistant source. Inspect the actual path, tagging and processed acquisition data. Direct can have many causes; a Direct increase is not a count of hidden ChatGPT visits.
Should I add native AI Assistant and custom AI Search sessions together?
No. They are alternative classifications of the same acquisition data. Reconcile their source rows for the same window and report one declared definition, with differences explained.
Do AI crawler requests count as referral traffic?
No. A vendor-verified request records a fetch, not a person's GA4 session. Keep search crawling, user-triggered fetching, observed citations and identifiable visits as separate measures.
Can GA4 tell me which earned article caused an AI visit?
A referral row alone does not identify the article the assistant used. Retain the observed answer and cited sources when available, and connect them to the visit only where evidence supports that join. Otherwise report the coverage, citation and visit separately.