Cloudflare Setup
Connect your Cloudflare zone to detect AI crawlers using analytics data.
- Create a Cloudflare API token with the right permissions
- Connect your zone to Trakkr
- Start receiving AI crawler visit data
If your site is behind Cloudflare, this is the easiest way to track AI crawler visits. Cloudflare already sees every request to your site - we just need read access to that data.
Before you start
You'll need:
- A Cloudflare account with at least one active zone (domain)
- Access to create API tokens in your Cloudflare dashboard
- Your site must be proxied through Cloudflare (orange cloud icon in DNS settings)
Step 1: Create an API token
Cloudflare uses scoped API tokens to control access. You need a token with two specific permissions.
- 1Go to dash.cloudflare.com/profile/api-tokens
- 2Click Create Token
- 3Choose Create Custom Token (not one of the templates)
- 4Set these permissions:
| Permission | Access |
|---|---|
| Zone > Analytics > Read | Lets Trakkr read your traffic analytics |
| Zone > Zone > Read | Lets Trakkr list your zones so you can pick one |
- 1Under Zone Resources, choose either All Zones or select specific zones you want to track
- 2Click Continue to summary, then Create Token
- 3Copy the token immediately - Cloudflare only shows it once
Step 2: Connect in Trakkr
- 1Navigate to the Crawler Tracking page in Trakkr
- 2Click Connect on the Cloudflare card
- 3Paste your API token and click Verify Token
- 4Select the zone (domain) you want to track
- 5Click Connect Zone
That's it. Trakkr will start pulling AI crawler visit data from your Cloudflare analytics within a few minutes.
What Trakkr reads
With these permissions, Trakkr can only:
- List your zones (domain names and their plans)
- Read analytics (traffic data, including bot visits)
Trakkr cannot modify your DNS, firewall rules, caching settings, or anything else. The token is read-only.
Troubleshooting
"Failed to verify token"
- Double-check you copied the full token (no trailing spaces)
- Confirm the token has Zone > Analytics > Read and Zone > Zone > Read
- Make sure the token hasn't expired (check token settings in Cloudflare)
- If you restricted zone access, ensure the target zone is included
No zones appear after verification
- Your token may not have Zone > Zone > Read permission
- The token may be restricted to zones you don't have active
No crawler data after connecting
- Crawler data can take a few hours to appear
- Verify your site is proxied through Cloudflare (orange cloud in DNS)
- Check that you haven't blocked AI crawlers in Cloudflare's WAF or bot management rules
Revoking access
To disconnect at any time:
- 1Remove the connection in Trakkr (Crawler Tracking page)
- 2Optionally, revoke the API token in Cloudflare API Tokens
Neither action affects your website or its traffic.
Next steps
WordPress Setup
Connect WordPress for crawler tracking.
JavaScript Rendering
Ensure AI crawlers see your content.
Was this helpful?
