Advanced features
Track AI and search crawlers
AI assistants and search engines don't run JavaScript. Report their requests from your server to see when ChatGPT, Claude, Google and others read your pages.
AI assistants and search engines read your pages without running JavaScript, so the script never sees them. Your server can report them instead, and the dashboard's crawler card shows who reads what.
| Category | What it is | Examples |
|---|---|---|
| AI answers | Fetched live because someone asked an assistant | ChatGPT-User, Claude-User, Perplexity-User, MistralAI-User |
| Indexing | Search engines, including AI search | Googlebot, bingbot, OAI-SearchBot, PerplexityBot, Claude-SearchBot, Applebot |
| Training | Collecting text to train models | GPTBot, ClaudeBot, Google-Extended, CCBot, Bytespider, Amazonbot |
Report crawler hits
Send the user agent and path of each request to /api/v1/crawl with a website API key. Unknown user agents and static files are ignored, so you can send every request.
// proxy.ts (middleware.ts before Next.js 16)
import { NextResponse, type NextFetchEvent, type NextRequest } from "next/server";
const BOTS = /bot|crawler|spider|gpt|claude|perplexity|bytespider|ccbot|google-extended/i;
export function proxy(request: NextRequest, event: NextFetchEvent) {
const ua = request.headers.get("user-agent") || "";
if (BOTS.test(ua)) {
// Report it without making the page wait.
event.waitUntil(
fetch("https://supranalytics.app/api/v1/crawl", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.SUPRANALYTICS_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ user_agent: ua, path: request.nextUrl.pathname }),
}).catch(() => {}),
);
}
return NextResponse.next();
}
export const config = { matcher: "/((?!_next|favicon.ico).*)" };const BOTS = /bot|crawler|spider|gpt|claude|perplexity|bytespider|ccbot|google-extended/i;
app.use((req, res, next) => {
const ua = req.get("user-agent") || "";
if (BOTS.test(ua)) {
fetch("https://supranalytics.app/api/v1/crawl", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.SUPRANALYTICS_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ user_agent: ua, path: req.path }),
}).catch(() => {});
}
next();
});curl -X POST https://supranalytics.app/api/v1/crawl \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_agent": "Mozilla/5.0 (compatible; GPTBot/1.2)", "path": "/pricing"}'The crawler card's setup icon on the dashboard has the same snippets. Hide the card in Settings → General. Full reference: Crawler hits API.
AI agent or LLM? Read this page as Markdown