Setup and Implementation Guide
This guide walks you through the process of implementing AI Traffic Analytics on your website.
Prerequisites
- An active Writesonic account
- Admin access to your Cloudflare account
- Your website must be using Cloudflare (if you're not, see alternative options below)
Cloudflare Integration (Recommended)
Phase 1: Start in Writesonic
-
Head over to the AI Traffic Analytics page on Writesonic
-
Click on "Set Up Cloudflare Integration"
-
You'll see a modal like this appear on the screen. Now, you need to head over to your Cloudflare account and set up an API key.
Phase 2: Ensure Proper Cloudflare Proxy Settings
In your Cloudflare DNS settings, ensure the orange cloud icon is turned ON for your domain records (indicating "Proxied" status).
For AI Traffic Analytics to work properly, the orange cloud proxy toggle must be enabled as shown in the image below. This allows Cloudflare to properly intercept and record AI crawler traffic.

Phase 3: Create API Token in Cloudflare
-
Go to the API Tokens page on your Cloudflare dashboard.
-
Click on
Create Token
-
Click the
Use Template
button next to "Edit Clouldflare Workers".
Phase 4: Configure Token Permissions
-
On the next screen, scroll down to "Permissions".
Click on the cross buttons to remove all permissions apart from "Worker Routes" and "Worker Scripts".
It should look like this: -
Scroll down and select your Cloudflare account under the "Account Resources" dropdown.
-
Additionally, choose the domain that you would like to install the analytics on from the "Zone Resources" dropdown.
Phase 5: Create and Copy Token
-
Click on "Continue to Summary".
-
And then click on "Create Token".
-
Next, click on the "Copy" button to copy your API token.
Phase 6: Complete Setup in Writesonic
- Now, go back to Writesonic. Enter your copied API token and click on "Continue".

-
On the next screen, some of the values should be prefilled.
Make sure that:
-
the correct account is showing under Cloudflare Account.
-
Correct domain is selected under Cloudflare Zone.
-
Route Path should be
(subdomain).example.com/*
if your Cloudflare Zone isexample.com
.NOTE:
The wildcard character is not allowed in the subdomain. Adding a subdomain is optional.
-
-
Click on the Finish button and your Analytics should be deployed in a couple of seconds.

Verify Installation
To test if the Analytics has been set up properly, go to ChatGPT and with GPT-4o model selected with "Search" enabled, try running a query like:
Research and tell me about yourwebsite.com.
where yourwebsite.com
should be replaced with your website domain.
Now, go back to Writesonic and you should start seeing the requests on your Analytics.
Alternative Implementation Methods (Coming soon)
We are coming up with various other integrations like WordPress, Webflow, Python, Javascript, etc.
Troubleshooting
If you encounter any issues during setup:
- Ensure your Cloudflare account has the correct permissions
- Check that your selected domain is active in Cloudflare
- Verify that no conflicting Workers are running
- For assistance, contact [email protected]
For more detailed debugging, please check out the Toubleshooting and FAQs page.
Updated 3 days ago