← Back
Connect Your Cloudflare Website to Agent & LLM Analytics (Using Logpush)
Are You on a Free or Pro Cloudflare Plan?
If so, use the Cloudflare Worker integration to connect your website.
Overview
This integration uses Cloudflare Logpush to send analytics events to Dark Visitors. Logpush is only available to Cloudflare accounts with an Enterprise plan. Please contact us if you need help.
Step 1: Create a Logpush Job
- Select your domain in your Cloudflare dashboard
- In the sidebar, click Logpush under Analytics & Logs
- Select HTTP destination
- Paste in this endpoint:
https://api.darkvisitors.com/logs/cloudflare?header_Authorization=Bearer%20YOUR_ACCESS_TOKEN
- Navigate back to the Dark Visitors Projects page and open your project
- Copy the access token from the Settings page
- Back in Cloudflare, swap in your access token where it says
YOUR_ACCESS_TOKEN
(don't delete the "%20") - Click Continue
- Select the HTTP requests dataset
- Make sure these fields are selected:
ClientIP
ClientRequestHost
ClientRequestMethod
ClientRequestReferer
ClientRequestURI
ClientRequestUserAgent
- Click Submit
Step 2: Test Your Integration
- Navigate to the Projects page
- Select your project
- Click Settings
- Click Send a Test Visit
- Click Realtime
If your website is correctly connected, you should see visits from the Dark Visitor agent in the realtime timeline within a few seconds.