Advice and answers from the Scalenut Team

How to Integrate AI Visibility with Cloudflare for AI Traffic Monitoring

Shivam Tiwari
Written by Shivam Tiwari

To enable the AI Traffic Monitor in the AI Visibility module, you’ll need to securely connect your website to your Cloudflare account. This integration allows the tool to detect and analyze visits from popular AI bots—including ChatGPT, Perplexity, Claude, Gemini, and others—so you can understand how Large Language Models (LLMs) interact with your content.

Important: Connecting with Cloudflare is required to activate the AI Traffic Monitor feature.

What you’ll need before you start

  • An active Cloudflare account.

  • Your website is added and active on Cloudflare.

  • Admin or Owner access to approve integrations.

Step 1: Access AI Traffic Monitor

  1. Log in to your Scalenut account.

  2. Open AI Traffic Monitor from the left navigation panel.

  3. Click on the Cloudflare button to start the integration process.

  4. A popup will appear prompting the next step. At this point, keep your Scalenut tab open and head over to your Cloudflare account.

Step 2: Sign In to Cloudflare

  1. A secure Cloudflare login window will open.

  2. Enter your credentials and complete any 2FA verification if enabled.

Step 3: Ensure Your Domain Is Proxied

  1. In your Cloudflare dashboard, open the DNS settings for the domain you're integrating.

  2. Locate your A, CNAME, or similar records.

  3. Ensure the cloud icon next to each record is Orange (indicating it is "Proxied"). If it is grey ("DNS only"), click it to toggle it to orange.

  • This ensures AI bot traffic passes through Cloudflare’s servers so the AI Traffic Monitor can log the data.

Step 4: Create an API Token in Cloudflare

  • Go to the API Tokens page in your Cloudflare dashboard.

  • Click Create Token.

  • Select the "Use template" option for "Edit Cloudflare Workers".

Step 5: Configure Token Permissions

  • After clicking Use Template, you'll be taken to the token configuration screen.
    Look for the Permissions section.

  • Remove all default permissions by clicking the X buttons, except for:

  1. Worker Routes

  2. Worker Scripts

It should look like this:

  • Scroll down to the Account Resources section and select your Cloudflare account from the dropdown.

  • Under Zone Resources, choose the domain where you want to install AI Traffic Monitor.

  • Scroll down and click on “Continue to Summary

Step 6: Create and Copy Token

After reviewing the permissions, click on Continue to Summary — this will take you to the final screen to generate your token.

  • Click on Create Token to finalize the setup.

  • On the next screen, click the Copy button to copy your API token.

Important: This is the only time the token will be visible, so make sure to save it securely.

Step 7: Complete Setup in AI Visibility

  • Return to the AI Traffic Monitor module in your Scalenut dashboard.

  • Paste your copied API token into the field provided and click Continue.

  • Select your Cloudflare account and zone from the dropdown menus. The Route Path will be auto-filled.

  • Click Continue.

Your analytics setup will be deployed! Within a few seconds, the AI Traffic Monitor will begin tracking how bots and humans interact with your brand via AI interfaces.