
Mar 6, 2024
How to manually install OptimalUX worker in your Cloudflare account.
Prerequisites
You need access to the Cloudflare Dashboard at “Cloudflare Workers Admin” or “Administrator” level.
Download OptimalUX Cloudflare Agent.
Installation
Open Cloudflare dashboard and click on “Workers & Pages” in the left menu. This should take you to an overview page. Click “Create application” button.

Click “Create Worker” button, enter the name of your worker and click “Deploy”. You will be able to update the code in the following steps.

To upload worker code click “Edit code”. Copy the worker code into “worker.js” tab and click “Save and deploy”

Configuration
Open Cloudflare dashboard and click on “Workers & Pages” in the left menu. This should load a list of workers. Choose Optimal UX’s worker in the list and go “Variables” in “Settings” tab:

Set 2 environment variables that will allow the worker to authenticate in OptimalUX:
OPTIMALUX_SITE_ID
OPTIMALUX_SECRET
Values for those variables can be found on https://app.optimalux.com/ in site details.
The next important step is to make sure worker is invoked on incoming requests. Click “View” in Routes section:

Click “Add route” and enter desired route. To enable OptimalUX for all requests enter *example.com/*. Here are few alternative examples:
For any page on a top level domain only: example.com/* or www.example.com/*
For any page on subdomains only: *.example.com/*
(Please replace example.com with your domain name)
Note, that /* is required at the end of the route name.
Choose your domain in “Zone” dropdown and click “Add route”.

Testing
You should be able to check if the worker is installed and configured by using https://example.com/_optux/ping/[site_id].
The endpoint requires “Authorization” header with site’s secret key for authentication.
curl https://example.com/_optux/ping/site123 -H "Authorization: mypassword@123"
Read more:
Conversion Tracking: A Complete Guide to Experiment Goals
Conversion tracking forms the backbone of successful A/B testing, and Optux.ai provides a comprehensive goal system that measures what matters most to your business. From simple button clicks and form submissions to complex custom JavaScript events and scheduling integrations with HubSpot and Calendly, the platform offers seven distinct goal types that capture every meaningful user interaction. By automatically tracking these conversions and applying statistical analysis to determine winning variants, Optux.ai transforms raw user behavior data into actionable insights that drive website optimization decisions, all while maintaining flicker-free performance and accurate attribution that's immune to ad blockers and privacy settings.

Aug 31, 2025
📁 A/B testing
📁 Split testing
📁 Targeting
Optimizing Cloudflare Worker Usage
Cloudflare Workers charges per invocation, and costs can quickly spiral when workers process every request including static assets. This comprehensive guide explains how to optimize your worker usage and dramatically reduce costs through strategic route exclusion.

Aug 19, 2025
📁 Cloudflare
📁 Installation
Content Security Policy (CSP) Header
Our Smart Agent automatically updates Content Security Policy (CSP) headers to enable smooth A/B testing without compromising browser security. Our cybersecurity-vetted solution eliminates manual CSP configuration, ensuring experiments run smoothly while maintaining strict security standards.

Aug 15, 2025
📁 A/B testing
📁 Installation
📁 Cloudflare
Whitelisting Outgoing IP Address
OPTUX uses a single static IP address for all outbound connections. Learn how to whitelist this IP in your system

Aug 17, 2025
📁 Installation
📁 Cloudflare