Before you start
- A custom domain on a paid Webflow site plan.
- A Cloudflare account.
- The Cloudflare Workers Paid plan ($5 a month). See Before you start on the Cloudflare page.
- Access to your domain registrar to change nameservers.
Step 1: Move your DNS to Cloudflare
- In the Cloudflare dashboard, add your root domain (for example
example.com) and follow the setup steps. - At your registrar, replace the nameservers with the two Cloudflare gives you.
- Wait until the change has propagated.
Step 2: Point the domain at Webflow through O2O
In your zone’s DNS settings, create a proxied (orange cloud)CNAME record for each hostname your site uses:
Add one for any other subdomain Webflow serves. The records must be proxied; on “DNS only” the Worker never runs.
Then, in Webflow’s site settings, add and verify your custom domain and publish the site.
Step 3: Add the ChatFeatured Worker
Follow the Cloudflare integration setup on this zone. In short:- In ChatFeatured, open Integrations > Cloudflare and click New API Key, or reuse an existing Agent Analytics key.
- Create a Worker with the ChatFeatured code.
- Add
ANALYTICS_ENDPOINT(https://ingest.chatfeatured.com/v1/logs) andANALYTICS_KEY(your key, as a Secret) under Variables and Secrets. - Add a route such as
example.com/*, pluswww.example.com/*if you usewww, pointing at the Worker.
Check that it works
- Open your site in a browser and confirm it still loads.
-
Request a page with a crawler user agent (browser visits aren’t recorded):
- Within a few minutes the visit appears in Website > Agent Analytics as a GPTBot request.
robots.txt, llms.txt and sitemap.xml don’t appear. See What the Worker skips.
Troubleshooting
525 SSL handshake error
525 SSL handshake error
The records are proxied but O2O isn’t finished. Check that the
CNAME records target cdn.webflow.com and that the domain is connected and verified in Webflow. Don’t fix it by switching the records to DNS only, because the Worker then stops running.Webflow can't verify the domain
Webflow can't verify the domain
If the domain was set up on another platform that also runs on Cloudflare (Shopify, WP Engine and others), remove it there first, then verify again in Webflow.
The site works but no visits show up
The site works but no visits show up
Check that the DNS records are Proxied, a Worker route covers the hostname you tested (including
www), ANALYTICS_ENDPOINT and ANALYTICS_KEY are set and the Worker was redeployed, and you tested with a crawler user agent.Related
- Cloudflare integration: the Worker code and full setup
- Agent Analytics: reading the data
- Webflow: publishing articles to your Webflow CMS