Skip to Content
Cloudflare

Cloudflare

If your site is behind Cloudflare, you already have AI bot analytics. You do not need log files or code changes. Cloudflare AI Crawl Control identifies crawlers such as GPTBot, ClaudeBot and PerplexityBot, and shows which bots visit which pages.

You can use this data in two ways:

  1. Read it in the Cloudflare dashboard. This works well for a weekly look.
  2. Connect Cloudflare to Sitefire with an API token. Sitefire then pulls the data automatically and shows it next to your AI visibility.

Cloudflare sees traffic only for hostnames that it proxies. In your DNS settings, each record has an orange cloud (proxied through Cloudflare) or a grey cloud (DNS only, so traffic goes around Cloudflare). Only orange-cloud hostnames give bot analytics.

Your site, docs or blog (www.example.com, docs.example.com) can have a grey cloud or be hosted somewhere else, for example on Vercel, Netlify or S3. Then Cloudflare cannot see AI crawlers on those pages, and your dashboards show almost no data. Before you look for other causes, make sure that the right records have an orange cloud.


Read AI traffic in Cloudflare

Log in to the Cloudflare dashboard  and select your domain. In the left sidebar, open AI Crawl Control.

The two metrics to watch

MetricWhat it tells youWhere to find it
Allowed Requests by OperatorHow often AI bots crawl your site, grouped by operator (OpenAI, Anthropic, Google, Perplexity and others). It is an early signal: a bot must crawl your content before an AI answer can cite it.Overview tab > “Crawlers grouped by operators”. For trends: Metrics tab > “Allowed requests”, grouped by Operator.
Referrals by OperatorHow often people click from an AI platform to your site. It is the closest thing to a conversion metric for AI visibility. Cloudflare records it on the server, not in the browser like GA4.Metrics tab > “Referrals over time”, grouped by Operator.

Referral data needs a paid Cloudflare plan (Pro or higher). On the free plan, use GA4 for referrals.

Free plan query limit: on the free plan, the Cloudflare Analytics API returns one day per query. The daily sync of Sitefire asks for one day at a time, so your dashboards still show your full history. Paid plans allow longer windows and a faster first import.

Export: on the Metrics tab, click Download CSV or Download image.


Connect Cloudflare to Sitefire

To track AI bots automatically, give Sitefire read-only access to your Cloudflare analytics with an API token. Sitefire reads the same data as the dashboard. It shows the data next to your visibility and your actions.

You do this yourself in the Sitefire app. You do not need your Zone ID, and you do not send the token to anyone. Sitefire gets the list of sites from the token and stores the token encrypted.

Time needed: about 2 minutes, in three steps.

Open the Cloudflare connector

In Sitefire, go to Bot Analytics > Connect CDN > Cloudflare. You can also open it from Settings > Integrations.

Create the API token

Click Create token on Cloudflare. The token page of Cloudflare opens with all settings filled in:

SettingValue
Token nameSitefire Analytics
PermissionsZone > Analytics > Read
PermissionsZone > Zone > Read
Zone ResourcesInclude > All zones

Click Continue to summary, then Create Token. Copy the token now. Cloudflare shows it only once.

Why “All zones”? The token must list your sites, so that Sitefire can show you a list to pick from. “All zones” covers every Cloudflare account that you are a member of. Both permissions are read-only. In the next step, you pick the one site that Sitefire reads.

Do not use your Global API Key. It gives full access to all zones and resources. Sitefire supports only API tokens, because you can limit and revoke them.

Pick your site

Paste the token into Sitefire and click Continue. Sitefire lists the sites that the token can see. Select your domain and click Connect & Import. The first sync imports the last 7 days.

If no sites appear

What you seeWhat it means
”This token can’t see any sites”You created the token in a Cloudflare account that does not own your domain. This can happen when you are a member of several accounts. Create the token again with the link in the app. The link sets Zone Resources to All zones.
”none are active on Cloudflare yet”The site is in Cloudflare, but its nameservers do not point to Cloudflare yet. Finish the setup in Cloudflare first.
Your site is in the list, but the data stays near zeroThe hostname probably has a grey cloud. Read the proxy note at the top of this page.
Last updated on