Connect Your Cloudflare Website to Agent & LLM Analytics (Using Logpush)
Overview
This integration uses Cloudflare Logpush to send analytics events to Dark Visitors. Logpush is only available to Cloudflare accounts with an Enterprise plan. If you don't have a Cloudflare Enterprise plan, please contact us for an alternative option.
Are You on a Free or Pro Cloudflare Plan?
If so, use the Cloudflare Worker integration to connect your website.
Step 1: Copy Your Access Token
- Navigate to the Projects page
- Select your project
- Click Settings
- Copy your access token
Step 2: Create a Logpush Job
- Select your domain in your Cloudflare dashboard
- In the sidebar, click Logpush under Analytics & Logs
- Select HTTP destination
- Paste this in:
https://api.darkvisitors.com/logs/cloudflare?header_Authorization=Bearer%20YOUR_ACCESS_TOKEN
- In that endpoint, paste 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 3: 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.