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:
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
A/B testing quickstart guide
A/B testing is simple, yet powerful! Start experimentation in 2 easy steps: make changes, define your goal
Aug 29, 2024
📁 A/B testing
How it works
Server-side A/B testing for seamless performance and accurate, reliable results without JavaScript delays.
Aug 29, 2023
📁 A/B testing
📁 Client-side testing
📁 Server-side testing
📁 Installation
Integrate A/B testing results into Google Analytics 4
How to integrate A/B test results into Google Analytics 4 for enhanced experiment tracking.
Feb 8, 2024
📁 A/B testing
📁 Google Analytics 4
📁 Installation