Check 41.17 · Tracking and analytics setup

Identify ChatGPT, Perplexity, Gemini, Copilot and Claude referrers

Spot the referring domains of ChatGPT, Perplexity, Gemini, Copilot and Claude in GA4, Matomo, BigQuery or server logs, and keep an up-to-date log of AI sources.

Priority
Critical
Difficulty
Intermediate
Estimated time
1 to 2 h, then 15 min per quarter
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

When a visitor clicks a link in an answer from ChatGPT, Perplexity, Gemini, Copilot or Claude, their browser usually passes the assistant's domain as the referrer, sometimes along with a utm_source parameter. This task consists of spotting these domains in your data, checking their exact form and recording them in a register. Once it is done, you have a reliable, dated list that feeds the AI channel and the reports.

Why it matters

Analytics tools classify traffic based on two pieces of information: the UTM parameters of the landing URL, and the Referer header sent by the browser. With the browsers' default policy (strict-origin-when-cross-origin), an external site only passes its origin: you see https://chatgpt.com/, never the conversation.

Each assistant has its domain, and these domains change. ChatGPT moved from chat.openai.com to chatgpt.com, Gemini from bard.google.com to gemini.google.com. Copilot exists in several interfaces. New assistants appear. A list written once and never reviewed misses part of the traffic without anyone noticing.

There are also visits you will not be able to identify: those that arrive without a referrer (some mobile apps, a copied-and-pasted link) fall into direct traffic. Knowing about them avoids over-interpreting the figures.

What it improves

  • Accuracy of the AI channel The channel rule is based on the domains actually observed, not on a list copied from elsewhere.
  • Breakdown by assistant You know which one sends visits, and to which pages.
  • Detection of new assistants An unknown domain shows up in the register before it weighs on the figures.
  • Consistency across tools GA4, Matomo, Looker Studio and BigQuery use the same list.
  • Rankings and citations No effect. This is measurement work; no practice guarantees a citation in an AI answer.

How to check

In Google Analytics 4 (GA4), Reports > Acquisition > Traffic acquisition, dimension “Session source / medium”, 90-day period. In the table's search box, type in turn gpt, perplexity, gemini, copilot, claude, mistral, deepseek.

Expected result: each source found appears in your register and in your AI channel rule, with the medium ai-assistant (assigned by GA4 when it recognizes the assistant) or referral. A source such as chatgpt.com / (not set) classified as “Unassigned” points to a visit that arrived with a utm_source but no utm_medium: your channel rule must cover it.

How to implement

Step 1 — Know the expected referrers

Starting point, to compare against your own data:

Assistant Usual referring domain Former domains or variants Particulars
ChatGPT (OpenAI) chatgpt.com chat.openai.com Links in answers often carry utm_source=chatgpt.com
Perplexity perplexity.ai, www.perplexity.ai
Gemini (Google) gemini.google.com bard.google.com Separate from AI Overviews and AI Mode, which arrive as google / organic
Microsoft Copilot copilot.microsoft.com bing.com for Copilot built into Bing results Versions built into Windows, Edge or Microsoft 365 can arrive under other domains or without a referrer
Claude (Anthropic) claude.ai
Le Chat (Mistral AI) chat.mistral.ai
DeepSeek chat.deepseek.com
Grok (xAI) grok.com x.com for Grok built into X A visit from x.com cannot be told apart from a click on a post
Meta AI meta.ai

This table reflects the domains known at the end of 2026; only your own observations are authoritative. Visits whose referrer is bing.com or x.com remain classified as search or social: do not try to attribute them to the assistant.

Step 2 — Collect the sources in GA4

Standard report. Reports > Acquisition > Traffic acquisition, dimension “Session source / medium”. Add a filter on “Session source” that matches the regular expression:

.*(gpt|openai|perplexity|gemini|bard|copilot|claude|anthropic|mistral|deepseek|grok|meta\.ai|you\.com|phind).*

This deliberately broad expression is for discovery, not classification: it also brings up unrelated sites, which you remove by hand. Export the result.

Exploration. To also see the landing page, create a free-form exploration with the dimensions “Session source / medium”, “Landing page + query string” and the value “Sessions”.

With Matomo

From Matomo 5.5, the Acquisition > AI Assistants report lists the recognized assistants. To find those that are not listed, open Acquisition > Websites and search for the same words as above in the report's search box. Visits coming from a domain recognized as an assistant no longer appear under websites.

With BigQuery

If GA4 exports to BigQuery, this query lists the referring domains of session starts over one month, with any utm_source:

SELECT
  NET.HOST((SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_referrer')) AS domaine_referent,
  collected_traffic_source.manual_source AS utm_source,
  COUNT(*) AS sessions
FROM `mon-projet.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20261001' AND '20261031'
  AND event_name = 'session_start'
GROUP BY domaine_referent, utm_source
HAVING REGEXP_CONTAINS(IFNULL(domaine_referent, '') || ' ' || IFNULL(utm_source, ''), r'gpt|openai|perplexity|gemini|copilot|claude|mistral|deepseek|grok|meta\.ai')
ORDER BY sessions DESC;

Replace the project, the dataset and the dates. Event parameters depend on the implementation: check that page_referrer exists in your export.

With server logs

Access logs depend neither on consent nor on blockers. In the Apache and Nginx combined format, the referrer is the fourth field in quotes. To list the referring domains that look like assistants:

awk -F'"' '{print $4}' /var/log/nginx/access.log \
  | grep -i -E "gpt|openai|perplexity|gemini|copilot|claude|mistral|deepseek|grok|meta\.ai" \
  | sed -E 's#^https?://([^/]+).*#\1#' \
  | sort | uniq -c | sort -rn

Replace the path with /var/log/apache2/access.log or your host's path. Do not confuse referrers with crawler user agents (ChatGPT-User, PerplexityBot, Claude-User): these crawlers read pages, they are not visitors. Their analysis is described in analyze AI crawler logs (opens in a new tab).

Step 3 — Confirm with a real test

For each assistant that matters to you:

  1. Ask the assistant a question that one of your pages answers, with web search enabled, until you get a link to your site.
  2. Open the browser's developer tools before clicking, Network tab, with the “Preserve log” box ticked.
  3. Click the link. Note the landing URL (any UTM parameters) and, in the console, the value of document.referrer.
  4. In the Network tab, filter on collect: the request sent to GA4 contains the dr parameter (document referrer). For Matomo, filter on matomo.php and read the urlref parameter.

Also test from the assistant's mobile app when there is one: that is where the referrer is most often missing. A single test is not a measurement, but it shows the exact form of the data.

Step 4 — Keep the register of AI referrers

A tab in your measurement documentation, one row per domain:

Domain Assistant First seen Form received In the channel rule Sessions, 90 days Note
chatgpt.com ChatGPT 2024-06 Referrer + utm_source=chatgpt.com Yes 1,180
perplexity.ai Perplexity 2024-03 Referrer Yes 310
gemini.google.com Gemini 2024-02 Referrer Yes 95
copilot.microsoft.com Copilot 2024-05 Referrer Yes 60
claude.ai Claude 2025-04 Referrer Yes 42
chat.mistral.ai Le Chat 2026-09 Referrer To add 7 Low volume, to monitor

Fictional values. Every quarter: repeat step 2, add the new domains, update the channel rule and record the review date. The rule itself is described in create a dedicated channel for AI traffic (opens in a new tab).

Good to know: GA4 keeps its own list of assistants for the “AI Assistant” channel and assigns the medium ai-assistant to these visits. Your register does not replace it: it serves to spot what that list does not yet cover, and to document the rule you apply in the other tools.

Common mistakes

  • Copying a list found online without checking it against your own data: some domains send you nothing, others are missing.
  • Confusing referrers and crawlers: ChatGPT-User in the logs is a crawler reading the page, not a human visitor.
  • Attributing bing.com or google to AI traffic: these sources mix classic search and generated answers, with no way to tell them apart.
  • Forgetting variants (www.perplexity.ai, the former chat.openai.com domain) in a strict equality rule.
  • Ignoring “Unassigned”: chatgpt.com / (not set) visits end up there when the rule only looks at the medium.
  • Never reviewing the register: a domain change makes the AI channel drop without real traffic having fallen.

Frequently asked questions

What is the referrer for traffic coming from ChatGPT?

Traffic from ChatGPT usually arrives with the referrer chatgpt.com, the former chat.openai.com domain now only appearing in historical data. Links in answers often carry the utm_source=chatgpt.com parameter, which remains visible even when the referrer is missing. In GA4, these visits appear with the source chatgpt.com and are placed in the AI Assistant channel when Google recognizes the source.

Why does some AI traffic show up as direct traffic?

Some AI traffic shows up as direct because the browser did not pass any referrer: a click from certain mobile apps, a link copied and then pasted, or opening in another browser. Without a referrer or UTM parameter, no analytics tool can know where the visit came from. Measured AI traffic is therefore a minimum, useful for following a trend rather than an exact volume.

How do you tell Copilot apart from Bing search in the statistics?

Visits from the Copilot app usually arrive with the referrer copilot.microsoft.com, which is classified unambiguously. However, clicks from Copilot answers shown in Bing results often arrive with the referrer bing.com, like a click on a classic result. Those cannot be told apart in GA4 or Matomo; the AI Performance report in Bing Webmaster Tools gives a complementary measure of citations.

Should ChatGPT-User be counted as AI traffic?

No. ChatGPT-User is the user agent of an OpenAI crawler that reads a page when a ChatGPT user asks it to. It appears in server logs, not as a human visit in GA4 or Matomo. Its visits show that a page is being consulted to build an answer, which is tracked separately, in the analysis of AI crawler logs, and is not added to visits.

Updated on

Topic checklist (PDF)

And now?

In the “Tracking and analytics setup” topic

  1. Set up Google Search Console
  2. Verify the domain property via DNS
  3. Set up Bing Webmaster Tools
  4. Set up GA4, Matomo or an equivalent
  5. Set up Google Tag Manager if needed
  6. Check data collection
  7. Handle applicable consent requirements
  8. Track conversions, forms and quote requests
  9. Track phone and email clicks
  10. Track downloads and sign-ups
  11. Track purchases
  12. Set up cross-domain tracking if needed
  13. Fix duplicate conversions
  14. Exclude internal traffic if relevant
  15. Identify organic and AI landing pages
  16. Create a dedicated channel for AI traffic
  17. Identify ChatGPT, Perplexity, Gemini, Copilot and Claude referrers
  18. Use available UTM parameters
  19. Connect analytics to the CRM if relevant
  20. Measure lead quality and revenue
  21. Document the limits of attribution
  22. Set up Consent Mode v2 if you use Google tags