> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crispstats.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> CrispStats is a hosted, privacy-first web analytics product. It has no self-hosted edition, no session replay, no heatmaps, no A/B testing, no mobile SDKs and no data import except a site's history from a Plausible export (Settings, Import and export).
> The script global is crispstats(...), site keys start with cs_pk_ and secret API keys start with cs_sk_. The script is served from https://in.crispstats.com/d.js and the REST API lives at https://crispstats.com/api/v1.
> There is no npm package to install. Integrations copy the script tag, the queue stub, crispstats.d.ts and proxy code from these docs or from Settings, Tracking code in the dashboard. A first-party proxy forwards one path of the site to https://in.crispstats.com/p/ and forwards only content-type, user-agent, accept-language, referer, origin, if-none-match and x-forwarded-for, never cookies.

# See traffic from AI assistants

> How CrispStats spots visitors sent by ChatGPT, Perplexity, Claude, Gemini and other AI assistants, and how to read the AI traffic screen to act on it.

CrispStats counts people who arrive from an AI assistant, such as ChatGPT, Perplexity, Claude, Gemini or Copilot, as their own channel: **AI assistants**. You need no extra setup: the tracking script you already installed captures the referrer and the landing URL, and the collector classifies the visit. Open **AI traffic** in the dashboard sidebar to see how many visitors assistants send, what they are worth and where they land.

This page explains how a visit is classified as AI traffic, what each part of the AI traffic screen shows, and what you can do with it. AI crawlers, which read your pages but never run the script, are covered in [report AI crawler hits](https://docs.crispstats.com/ai/ai-crawlers.md).

## How a visit is classified as AI traffic

The collector classifies each visit once, from the first event of the visit, using its referrer and landing URL. A visit counts as AI traffic when either of these is true:

* **The referrer is an AI assistant.** The referrer hostname, without `www.`, equals a hostname in the list below or is a subdomain of one. For example, `chatgpt.com` and any `*.chatgpt.com` both match ChatGPT.
* **The campaign source names an AI assistant.** The landing URL has a `utm_source` value that is one of the hostnames below (or a subdomain of one), or becomes one when `.com` is added. For example, `?utm_source=chatgpt.com` and `?utm_source=chatgpt` both match ChatGPT. `?utm_source=perplexity` does not match, because `perplexity.com` is not in the list: use `perplexity.ai`. When `utm_source` is missing, the collector reads `ref`, then `source`, then `via` instead.

Some rules take priority over the AI check:

* A `utm_medium` that marks paid, email, affiliate or display traffic (for example `cpc`, `newsletter`, `affiliate` or `banner`), or an ad click id such as `gclid` or `fbclid` on the landing URL, puts the visit in that channel instead.
* A referrer from your own domain or one of its subdomains counts as no referrer.

The visit's **source** is the assistant's display name, so all ChatGPT hostnames roll up into one row named ChatGPT.

### Recognized assistants

| Assistant | Referrer hostnames |
| - | - |
| ChatGPT | `chatgpt.com`, `chat.openai.com`, `openai.com` |
| Perplexity | `perplexity.ai` |
| Claude | `claude.ai` |
| Gemini | `gemini.google.com`, `bard.google.com` |
| Copilot | `copilot.microsoft.com`, `copilot.com` |
| You.com | `you.com` |
| Phind | `phind.com` |
| Poe | `poe.com` |
| Meta AI | `meta.ai` |
| Grok | `grok.com`, `x.ai` |
| Le Chat | `chat.mistral.ai` |
| DeepSeek | `chat.deepseek.com` |
| Kagi Assistant | `kagi.com` |
| Duck.ai | `duck.ai` |
| T3 Chat | `t3.chat` |

> [!NOTE]
>
> A visit from an assistant that sends no referrer counts as **Direct**, unless the landing URL carries a `utm_source` that names the assistant, such as `utm_source=chatgpt.com`.

To tag a link that you expect people to open from an assistant, add `utm_source` with the assistant's hostname:

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
https://example.com/pricing?utm_source=perplexity.ai
```

## Read the AI traffic screen

Open a site, then select **AI traffic** under **AI** in the sidebar, or press `g` then `a`. The date range, comparison and filters at the top of the dashboard apply to the visitor and revenue numbers on this screen. With a comparison on, the four summary numbers and the **Assistants** and **AI crawlers** tables show the change against the earlier period. See [filters and comparison](https://docs.crispstats.com/dashboard/filters-and-comparison.md).

From top to bottom, the screen shows the summary, two charts, the **Assistants** table, **Landing pages from AI** next to **What you can do with this**, and the **AI crawlers** table.

### Summary

| Number | What it counts |
| - | - |
| **Visitors from AI** | Unique visitors whose visit was classified as AI traffic in the period. |
| **Share of traffic** | Visitors from AI divided by all visitors in the period. |
| **Revenue from AI** | Payments in the period from customers whose first visit came from an AI assistant. Refunds are left out of the sum, not subtracted. Needs [revenue attribution](https://docs.crispstats.com/revenue/overview.md). |
| **Conversion rate** | Conversions (first payments) from those customers divided by visitors from AI, capped at 100%. |

### Charts

Two charts sit side by side: **Visitors from AI assistants** over time, and **AI crawler hits** over time. They have separate scales because crawler hits usually run far above referred visitors. Until your site reports crawler hits, the second chart says **Not set up**.

### Assistants

One row per assistant that sent visitors in the period, with its visitors, its share of all AI visitors, its revenue and its conversion rate. With a comparison on, a **Change** column joins the table. On a narrow screen only the visitors and share columns are shown.

Select a row to filter the whole dashboard to **AI assistant is** that assistant. Every other screen, such as pages, countries, funnels and revenue, then shows only those visitors. Select the row again to remove the filter. You can also add the filter from the filter menu under **Source**, **AI assistant**.

### Landing pages from AI

The ten pages where AI visitors arrive most often, with the assistant that sends the most visitors to each. Select a page to filter the dashboard to **Entry page is** that path.

### AI crawlers

Bots that read your pages for AI training, AI search or an assistant answering a question. They run no JavaScript, so this section stays empty until you report them from your server or edge. When nothing has been reported yet, the section shows the setup code with your public key filled in. Follow [report AI crawler hits](https://docs.crispstats.com/ai/ai-crawlers.md) to set it up.

Once hits arrive, each crawler has a row with its operator, its purpose (**Training**, **Search** or **User-triggered**), its hits and when it was last seen. With a comparison on, a **Change** column joins the table. Select a row to see its five most requested paths. Crawler hits follow the date range but not the dashboard filters, because a crawler hit has no visit to filter on.

## What you can do with it

Next to the landing pages, **What you can do with this** lists three suggestions and links to this guide:

1. **Keep the pages assistants cite up to date.** The landing pages list shows what assistants link to. Outdated prices or steps on those pages are repeated in their answers.
2. **Choose which crawlers may read your site.** Your `robots.txt` decides it per bot. Allow the search and user-triggered crawlers you want to be cited by, and block training crawlers if you prefer.
3. **Add an `llms.txt`.** A short Markdown file at `/llms.txt` that points assistants to the pages that explain your product best.

## Get the same numbers elsewhere

* **REST API:** `GET https://crispstats.com/api/v1/sites/{siteId}/ai-traffic` returns the same report. See the [API introduction](https://docs.crispstats.com/api-reference/introduction.md).
* **MCP server:** the `get_ai_traffic` tool answers questions like "how much traffic comes from AI?" from Claude or another MCP client. See [connect AI assistants](https://docs.crispstats.com/ai/connect-ai-assistants.md).
* **Ask AI:** ask "How much traffic comes from AI assistants?" on the **Ask AI** screen. See [Ask AI](https://docs.crispstats.com/ai/ask-ai.md).

## Learn more on crispstats.com

* Feature: [AI traffic](https://crispstats.com/features/ai-traffic), with the demo's AI report.
* Glossary: [AI referral](https://crispstats.com/glossary/ai-referral) and [traffic channel](https://crispstats.com/glossary/traffic-channel). Article: [how to track visitors from ChatGPT, Perplexity and other AI assistants](https://crispstats.com/blog/track-ai-traffic-chatgpt-perplexity).
* Free tool: the [traffic source classifier](https://crispstats.com/tools/traffic-source-classifier) shows whether a referrer counts as an AI assistant.

## Next steps

> [card] [Report AI crawler hits](https://docs.crispstats.com/ai/ai-crawlers.md)
>
> Count GPTBot, ClaudeBot, PerplexityBot and other crawlers from your server or edge.

> [card] [Connect revenue](https://docs.crispstats.com/revenue/overview.md)
>
> See how much revenue AI assistants bring, not only visits.

> [card] [Filter and compare](https://docs.crispstats.com/dashboard/filters-and-comparison.md)
>
> Combine the AI assistant filter with periods and other dimensions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.