Skip to content
MakerRadar

Free tool

Track AI traffic in GA4

Copy one pattern and follow three steps to see how many visitors AI assistants send you.

It opens on an example. Replace it with yours: nothing you type leaves this browser.

Host names, separated by commas. Leave empty for the standard list.

One pattern for 12 AI sources

Paste it wherever Google Analytics asks for a regular expression on the session source.

Pattern

(^|\.)(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|meta\.ai|grok\.com|chat\.mistral\.ai|chat\.deepseek\.com|you\.com|phind\.com)$
One pattern for 12 AI sources
AssistantSource it shows as
ChatGPTchatgpt.com
ChatGPT (old address)chat.openai.com
Perplexityperplexity.ai
Claudeclaude.ai
Geminigemini.google.com
Microsoft Copilotcopilot.microsoft.com
Meta AImeta.ai
Grokgrok.com
Le Chat (Mistral)chat.mistral.ai
DeepSeekchat.deepseek.com
You.comyou.com
Phindphind.com
  • In GA4: Admin › Data display › Channel groups › create a group, add a channel named “AI assistants”, set Source matches regex to the pattern, and move it above Referral.

  • To look without setting anything up: Reports › Acquisition › Traffic acquisition, switch the table to Session source, and filter with the pattern.

  • ChatGPT adds utm_source=chatgpt.com to the links it shows, so those visits are counted even when the browser sends no referrer.

  • This undercounts. Visits from AI apps often arrive with no referrer at all and land in Direct.

How do I track ChatGPT traffic in Google Analytics?

In GA4, filter the session source with a regular expression that matches the AI assistants' sites (chatgpt.com, perplexity.ai, claude.ai, gemini.google.com and others), or add a custom channel group that uses it.

What it checks

  • One pattern matching every major AI assistant's site

  • Each assistant and the source it shows up as

  • The steps to add an “AI assistants” channel in GA4

  • What the numbers miss: visits with no referrer

Use it from your AI assistant

Claude, ChatGPT, Cursor and any other MCP client can run this for you. Add the server below, then ask for it in your own words: the tool is get_ai_traffic_setup. No sign-up and no key.

https://api.makerradar.io/mcp

Or call the REST API, which answers the same report as JSON:

curl -X POST https://api.makerradar.io/v1/tools/ga4-ai-traffic \
  -H "content-type: application/json" -d '{}'

MCP server guide · API reference

Get a page that passes, free

Every product on MakerRadar gets a permanent page with a clean title and description, structured data, an FAQ, a Markdown version for AI assistants and a place in our llms.txt — and a backlink you can earn.

Related tools

  • AI crawler log analyzer

    Paste lines from your access log and see which AI crawlers came, what they read and where they were turned away.

    Runs in your browser

  • AI visibility checker

    Find out whether AI assistants and answer engines are allowed to read your site — and can understand it when they do.

    Reads the page

  • UTM link builder

    Tag a link with where it's shared, so your analytics can tell a newsletter click from a launch-day click.

    Runs in your browser

More: ai & agents

Frequently asked questions

Why is my AI traffic so low?

Many visits from AI apps carry no referrer and are filed under Direct. The pattern counts only the visits that say where they came from.

Does ChatGPT send a referrer?

ChatGPT adds utm_source=chatgpt.com to links it shows, so those visits are attributed even when the browser sends no referrer.

Is this the same as AI crawlers?

No. Crawlers read your pages to build answers and never appear in Analytics. This counts people who clicked a link in an answer. For crawlers, read your server log.

Is what I type stored?

No. It runs in your browser: nothing you type or paste is sent to us or kept.