How to see traffic from ChatGPT, Perplexity and other AI assistants
Updated
Measure two things. Visitors who click a link in an AI answer arrive with a referrer such as chatgpt.com or perplexity.ai (or utm_source=chatgpt.com); DataPocket groups them into an AI channel, with their revenue. The assistants' own page fetches don't run JavaScript, so a few lines of server code report them, split into AI answers, search indexing and model training.
How do you measure visitors sent by AI answers?
When someone clicks a link in an assistant's answer, their browser sends a referrer, and ChatGPT also adds utm_source=chatgpt.com to many links. DataPocket recognizes these and puts the visit in the AI channel, next to organic search, social and the rest:
- ChatGPT (chatgpt.com, chat.openai.com)
- Perplexity (perplexity.ai)
- Claude (claude.ai)
- Gemini (gemini.google.com)
- Copilot (copilot.microsoft.com)
- DeepSeek, Grok, Meta AI, Mistral, Kimi, Poe, Phind and You.com
In Google Analytics 4 these visits arrive as ordinary referrals or as Direct, with no AI channel of their own: DataPocket vs Google Analytics 4 covers the other differences.
No setup beyond the normal script tag. With payments connected, the AI channel shows the revenue those visitors bring, so you can see whether being recommended turns into customers.
Which pages do AI assistants read?
Before an assistant answers a question about you, it often fetches your pages. Those requests come from the assistant's servers, don't run JavaScript and never show up in a script-based analytics tool. Report them from your server with one call per bot request: snippets for Next.js, Express, Astro, Cloudflare Workers and plain HTTP are in AI crawler tracking.
The dashboard splits them into AI answers (fetched to answer someone right now), search and answer-engine indexing, and model training, with the pages each one read. Only the user agent, path and status code are stored.
How do you get recommended by AI assistants more often?
- Answer the question in the first two sentences of the page. That's the part assistants quote.
- Allow AI crawlers in robots.txt and publish an
/llms.txtsummary. - Write comparison and how-to pages for the questions your customers actually ask.
- Watch which pages the assistants fetch and which ones send visitors, then write more like them.
Questions
- Why doesn't my analytics show ChatGPT traffic?
- Some tools file it under Referral or Direct. Some AI apps also send no referrer at all, and those visits look like Direct in every analytics tool. DataPocket gives AI assistants their own channel, by referrer domain and by
utm_source. - Can I see answers that mention my site without a click?
- No analytics tool can. You can see the assistant fetching your pages (with the server snippet) and the visitors who click through.