How do I track traffic from ChatGPT and other AI in GA4?

GA4 has no AI channel of its own, so AI visits land in Referral or Direct. Create a custom channel group with a channel such as “AI assistants” whose source matches chatgpt.com, perplexity.ai, claude.ai, gemini.google.com, copilot.microsoft.com and similar, and place it above Referral. Visits from AI apps that send no referrer still show as Direct.

Create a free accountFree for up to three sites. No card needed.

Updated 1 December 2026

Step by step

  1. Open Admin → Data display → Channel groups and create a new channel group (copy the default one).
  2. Add a channel called AI assistants with the condition Source matches regex, and paste this pattern: chatgpt\.com|openai|perplexity|claude\.ai|gemini\.google|copilot\.microsoft|you\.com|deepseek
  3. Move the channel above Referral, so it is checked first, and save.
  4. Use it in Traffic acquisition by switching the primary dimension to your new channel group. It also applies to past data.

What GA4 still misses

  • AI apps that open links without a referrer show as Direct.
  • In the EU, visitors who decline cookies are missing or modelled.
  • AI crawlers that read your pages don’t run JavaScript, so GA4 never sees them.

An easier way

Okidoki groups AI assistants as a source by itself, counts visitors who decline cookies too, and has a report of AI crawlers. See how to see traffic from AI assistants.

Does ChatGPT send traffic to websites?

Yes, when people click links in its answers. Its links often carry a utm_source tag, so they can be counted as a source.

Why do AI visits show as Direct in GA4?

Some AI apps open links without passing a referrer, so GA4 can’t tell where the visit came from.

Free tools for this

More guides

Ask your website. Get answers right away.

Free for 3 sites. No credit card, no cookies, no code to touch.

Or look around a live demo first, no account needed →