Skip to main content
Many crawlers do not run JavaScript. Install capture on the server or hosting edge; static sites need an edge function. Use one response-aware capture integration per request.

Before you start

Get the public tracking ID from Settings → Analytics → Tracking. Deploy to the configured domain or a subdomain. No UI changes are required. Merge the code with existing handlers. Status is required for new integrations: report the FINAL HTTP status, or explicitly send 0 when unavailable. Missing and invalid status are stored as unknown, never as success. Next middleware/proxy cannot observe the response generated later by a page. A streamed not-found page can return HTTP 200; not_found semantics are separate.

Next.js

For full status coverage, capture at your hosting edge AFTER the origin response, or use the Express finish hook around a custom Next server. The fallback below preserves requests with unknown status; after() schedules work but does not discover a Server Component’s final response status. Route Handlers that own a Response can report that Response’s status with after(). Requires Next.js 15.1+ for stable after(); Next.js 16 uses proxy.ts/export proxy. Keep the existing not-found UI.

Cloudflare Pages

The cf-connecting-ip header is trustworthy only on requests received directly through Cloudflare, where the provider overwrites it. Use trusted platform metadata, never a visitor-supplied forwarded-IP header. A generic verifiedBot signal alone does not identify a vendor.

Express

Configure trust proxy to specific trusted hops. Use an always-running Node 20+ process or a hosting-supported background task. res.statusCode inside finish is final. Do not use a status captured before routing.

Identity and delivery

UA and Signature-Agent names are claimed, not proof of a vendor request or a validated HTTP signature. Optional X-Aiola-Server-Key authenticates server capture. Keep the key server-side and forward requester_ip from the original trusted connection. Only then may vendor CIDR matches or a provider-attested exact bot identity become verified. A mismatch with a current published list is failed; unavailable lists stay claimed. Meta has no public machine-readable crawler CIDR list supported here, so its requests stay claimed unless the authenticated server supplies the exact provider-verified identity. Broad cloud/ASN ranges are not bot identity proof. Keys are stored as hashes in a service-only Supabase table. Issuance/rotation through an existing settings action is proposed; no key issuance control is added in this change. Existing integrations work without a key and stay claimed. Create request_id once per incoming request. Reuse it for retries, middleware/response updates and semantic not-found updates. Storage is append-only: query-time dedupe must be installed before counts can be called deduplicated. Browser event_id can be forwarded as the shared ID; otherwise choose server capture and set bot_capture_mode:server on collector bot pageviews. Without a common ID, independent browser and server telemetry cannot be reliably merged. PDFs and JSON are content, as are robots.txt, llms.txt and sitemap XML. Record HEAD, prefetch and RSC with http_method/request_purpose; they are requests rather than full page reads. Scanner/probe paths retain the claimed bot name but have kind scanner, category other and is_ai=0. Unknown bot tokens are retained as Unknown bot (token). Ingestion waits for Tinybird’s row acknowledgement. Delivery errors are logged and return 502; retry with the SAME ID. Hourly Supabase health counters record accepted, written, dropped and failed per site/source, independently of Tinybird. A written counter is a write acknowledgement, not a unique-request total.

Check it works

Forward the header as is_test:true (all snippets do). This is a simulated claimed identity, not a verified vendor request. Test rows are excluded from totals by the reporting contract; inspect capture logs, the ingest response, raw rows with is_test=1 and health counters instead. Test an existing page, redirect, blocked URL and missing page, and verify the final HTTP codes. Do not expect tests in totals cards. Deploy reporting filters before exercising tests.

Reporting and history

Legacy capture_version=0 rows with default status 200 count as fetched for AI coverage and distinct breadth, with status not reported. They never count as reported successes or prove an absence of errors. Explicit legacy non-200 error codes remain errors. New v1 success requires status_known=1 and a 2xx status; unknown v1 responses remain fetched requests with status not reported and receive no success credit. Crawler lists return 50 rows initially, reveal ten at a time on scroll, and fetch the long tail once using the same 10,000-row deep-query mechanism as human lists. There is no top-N presentation cutoff; this is a bounded fetch, not a promise of unlimited results. Ranking and shares use the full matching population. MCP full:true requests up to 10,000 rows and discloses listCap/capReached. Coverage joins all retained human host/path pairs directly, without a capped or comma-separated candidate list. Failed sections are unavailable, never zero, “no errors”, or “every page crawled”; partial results are not cached. All time starts at the earliest retained human event or non-test crawl within five years; long ranges use week/month buckets.

AI referrals

AI referrals attribute each measured session using its first pageview in the selected window, before page/dimension segmentation. Views count pageviews in attributed sessions; visitors are distinct visitor keys. Use the summary for the unique visitor total: do not sum assistant rows. Sessions beginning before the window cannot recover earlier entry attribution. Missing referrers or tags do not prove no AI visits or no citation. Hosts are normalized (case, trailing dots and URL syntax) and match the exact host or DNS subdomains: chatgpt.com, chat.openai.com, perplexity.ai, claude.ai, gemini.google.com, bard.google.com, copilot.microsoft.com, copilot.cloud.microsoft, copilot.com, grok.com, grok.x.ai, meta.ai, chat.deepseek.com, chat.mistral.ai, you.com, poe.com, phind.com, doubao.com, notebooklm.google.com, notebook.google.com, chat.qwen.ai, tongyi.aliyun.com, chat.baidu.com, yiyan.baidu.com, wenxin.baidu.com, kimi.com, kimi.moonshot.cn, duck.ai, yuanbao.tencent.com, chatglm.cn, genspark.ai, felo.ai, monica.im and t3.chat. huggingface.co requires /chat or /chat/; kagi.com requires /assistant or /assistant/. Generic corporate hosts openai.com, x.ai, deepseek.com and mistral.ai do not qualify. Only exact normalized utm_source tokens chatgpt.com and perplexity are accepted. Attribution tags are signals, not authenticated identity.

Endpoint contract

POST https://aiola.app/api/bot-crawl-ingest with JSON: tracking_id, url_path, url_host, ua, status, request_id, http_method, request_purpose, is_test; optional signature_agent, country, requester_ip, not_found and authenticated cf_verified_bot/cf_verified_bot_name. Cloudflare sites in Aiola’s zone use the direct Supabase URL in the snippet. A 204 confirms a write for recognized bots; non-bot UAs are ignored. A 502 is a delivery failure. Unauthenticated beacons are accepted as claimed for backward compatibility. See crawler identities and API.