Looking for a fully managed setup where Citable runs the Workers? See AI Traffic Proxy (Managed) — available to trusted partners; contact us to enable.
Overview
The integration uses a Cloudflare Worker on your Cloudflare account. For each request the Worker:- Forwards the request to your origin (fail-open)
- Extracts signals (user agent, referrer, path, bot score)
- Classifies traffic (crawler, AI referral, agent, human)
- POSTs high-signal events to
https://ingest.getcitable.com
Before you start — provision credentials in Connectors
You need a site ID and ingest auth token registered on Citable’s side before your Worker can send data. Self-serve this from the Citable app — no need to email us for credentials.Step 1 — Create credentials in Connectors
- Open Settings → Connectors in Citable.
- Find AI Traffic Proxy and click Connect.
- Choose Self-hosted Cloudflare Worker (not the managed CNAME proxy).
- Enter your site ID — the hostname your Worker will run on (e.g.
www.example.com). This becomes the partition key for your traffic in Agent Analytics. - Click Create credentials.
token:{your-token} → siteId in our infrastructure and shows you:
Looking for Citable to run the Workers for you? That is the managed proxy path for trusted partners — contact us to enable it.
Prerequisites
- A Cloudflare account with Workers enabled on the zone you want to instrument
- Node.js on your development machine
- Access to your domain’s Cloudflare DNS / Workers configuration
- A Citable ingest token from us (see above)
- A Citable account with Connectors access (to self-provision ingest credentials)
Implementation guide
Set up your development environment
Create a new Worker project:- Template: Hello World
- Language: TypeScript
- Deploy now: optional (you can deploy after configuring)
Configure your Worker
Editwrangler.toml (or wrangler.json). Replace the route pattern and zone with your site:
src/index.ts:
Deploy your Worker
Test your implementation
- Visit your site through the routed hostname (e.g.
https://www.example.com). - Optionally simulate a crawler:
curl -A "GPTBot/1.0" https://www.example.com/ - Open Agent Analytics (
/ai-traffic) → Edge Traffic. Allow a few minutes for data to appear.
200 OK.
Troubleshooting
Security considerations
- Store
CITABLE_INGEST_TOKENas a Wrangler secret, not a[vars]plain-text value - Rotate tokens from Connectors (disconnect + recreate, or Regenerate when available) — old KV entries are revoked
- Monitor Worker invocations for unusual volume or error rates
- The ingest endpoint is not a public API — treat the token like an API key
Need help?
- Credential setup: self-serve in Connectors — choose Self-hosted Cloudflare Worker
- Setup help or debugging: getcitable.com
- Managed alternative: AI Traffic Proxy — Citable runs the Workers for trusted partners
- Pipeline architecture: Ingest Pipeline