
Mar 6, 2024
Manual Cloudflare Worker Installation
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:
A/B Test Segmentation
Learn how to target specific audiences using location, language, browser, and UTM parameters for more effective website optimization experiments.

Feb 20, 2024
📁 A/B testing
📁 Split testing
📁 Targeting
Locating Elements on Your Page: A Guide to CSS Selectors
A comprehensive guide to locating and selecting webpage elements using CSS selectors in OptimalUX. Learn how to target specific content, styles, and structure for your A/B tests using supported selectors, including pseudo-selectors and attribute matching. Perfect for marketers and product teams running website experiments.

Dec 13, 2024
📁 A/B testing
📁 SEO
📁 Server-side testing
Understanding Modifications
Create experiments by changing text, styles, attributes, or layout using our intuitive interface. Whether you need to update content, tweak designs, or completely restructure elements, Optimal UX provides precise controls through its modification system. Perfect for marketing teams, product managers, and optimization specialists who want to run A/B tests without developer dependency.

Dec 13, 2024
📁 A/B testing
📁 SEO
Maximizing Conversion Rates: 7 Key Strategies for Effective Call-to-Action Design
Discover 7 key strategies for effective call-to-action design to maximize your conversion rates. Learn how to enhance visibility, craft compelling copy, and implement data-driven CTA strategies.

Oct 25, 2024
📁 A/B testing
📁 A/B testing
📁 A/B testing
📁 A/B testing