Sign inGet started
Tracking

AI traffic analytics

View as MarkdownOpen in ChatGPTOpen in Claude
Connect your agent
Add to CursorAdd to VS Code

See visits from ChatGPT, Claude, Perplexity, Gemini and other AI assistants, the pages they read first, AI crawlers, and what the visits lead to.

Updated

AI traffic analytics answers three questions: how many people come to your site from AI assistants, what those assistants read before sending them, and what the visits lead to. nextanalytica answers all three for ChatGPT, Claude, Perplexity, Gemini, Copilot, DeepSeek, Grok, Meta AI and Mistral: each is its own source in an AI assistants channel, AI crawlers are counted from your server, and each visit is joined to the page the assistant fetched in the 30 minutes before it, with the conversions and orders after.

How are AI assistant visits counted?

A visit lands in the AI assistants channel when its referrer or its UTM source names an assistant:

AssistantKnown by
ChatGPTchatgpt.com, chat.openai.com
Claudeclaude.ai
Perplexityperplexity.ai
Geminigemini.google.com
Copilotcopilot.microsoft.com
DeepSeek, Grok, Meta AI, MistralTheir own chat addresses

Ads are apart: a click on a ChatGPT ad counts as Paid search, named ChatGPT. Visits whose link lost its referrer and carries no UTM tag land in Direct, so every referrer-based count, ours included, misses some AI traffic.

How do Perplexity, Claude and Gemini differ?

AssistantVisitsFetch before the visit
ChatGPTCounted by referrer or UTMJoined through ChatGPT-User
ClaudeCounted by referrer or UTMJoined through Claude-User
PerplexityCounted by referrer or UTMJoined through Perplexity-User
Meta AI, MistralCounted by referrer or UTMJoined through Meta's and Mistral's fetchers
Gemini, CopilotCounted by referrer or UTMNever: they read pages through Googlebot and Bingbot, which also crawl for search (Google-Extended)

So for Gemini and Copilot you see the visits and what they led to, but not which page the assistant read first. See Traffic from ChatGPT for the details of the fetch-to-visit join.

What can your agent answer?

  • "How much traffic came from AI assistants this month, by assistant?"
  • "Which pages do people land on from Perplexity, and do they sign up?"
  • "Which pages did Claude read because someone asked about us?"
  • "Is AI traffic growing faster than search?"
  • "Which AI crawlers read our pricing page this week?"

What about people who never click?

Many people read an assistant's answer and come later by typing your address. Ask "How did you hear about us?" and send the answer as heard_from; nextanalytica recognizes assistants in people's own words and counts those people and their orders next to the channel. See Custom events.

How does it compare with GA4?

GA4 has an AI Assistant channel for visits whose referrer is on Google's list of assistants. It can't see the assistants' bots, which never run the Google tag, so it can't tell which page an assistant read before the visit, or which AI crawlers read your site. nextanalytica counts both from your server and joins them to the visits.

How do you set it up?

  1. Add the tag. See Add the tag.
  2. Add a sender for AI crawlers on Cloudflare, Next.js or WordPress. See AI crawlers.
  3. Connect your agent and ask "How much traffic came from AI assistants this month?"
claude mcp add --transport http nextanalytica https://mcp.nextanalytica.app/mcp

Next steps

Related
  • What the tag collects: Page views, clicks, forms, scroll, errors and page speed, counted without code. What never leaves the page.
  • Add the tag: Put one script line in the head of every page. Where it goes in plain HTML, site builders and each framework.
  • Next.js analytics: Add analytics to Next.js with @nextanalytica/tag: install, events, consent and AI crawlers, counted without cookies until a yes and read by your agent.
  • Next.js custom events: Send custom events from a Next.js app with @nextanalytica/tag: sign-ups, demo requests and conversions your agent reads by channel.
  • Next.js cookie consent: Wire a cookie banner in Next.js to analytics: count without cookies until the answer, and pass the saved answer on every page.
  • Next.js revenue tracking: Record orders in a Next.js app, from the browser or from your server, so revenue ties to the visit, channel and campaign it came from.
Still have questions?
Was this page useful?