Cloudflare.
Enhance your website's AI SEO with our Cloudflare Agent integration. Monitor AI interactions and optimize your content for better visibility in AI search results.
Overview
Our Cloudflare Agent integration provides a seamless way to track AI interactions with your website. Deploy through Cloudflare Workers for efficient, edge-based tracking of how AI systems interact with your content. This solution works with any website hosted on Cloudflare and requires minimal configuration. The edge-based approach ensures fast performance and comprehensive tracking across all pages.
What you get
Requirements
- Cloudflare account
- Website hosted on Cloudflare or using Cloudflare DNS
- API key from xseek
- Website ID from your xseek dashboard
Setup process
- 01
Ensure AI bots are allowed through Cloudflare's WAF and security settings
- 02
Create a Cloudflare Worker in your Cloudflare dashboard
- 03
Add our AI bot detection code to the worker
- 04
Set up environment variables with your API key and website ID
- 05
Configure a route pattern to direct traffic through the worker
- 06
Deploy the worker to start tracking AI visits
Integration setup
XSEEK_API_KEY=your_api_keyXSEEK_WEBSITE_ID=your_website_idYour API key can be found in your account settings. Make sure it has the ai_visits:push privilege.
1Create a Cloudflare Worker
Log in to your Cloudflare dashboard, go to Workers, and create a new worker with this code:
2Deploy your Worker
After saving your worker, set up a route to direct traffic through it. Go to the "Triggers" tab and add a route pattern:
yourdomain.com/*This will process all requests through your worker, enabling AI bot detection across your entire site.
All set!
Your Cloudflare-powered website is now tracking AI crawler visits. Data will appear in the xseek dashboard soon.
We can walk you through the setup or review your configuration.
