Kameleoon has deprecated
kameleoon.js and replaced it with engine.js in all Kameleoon implementation snippets. Kameleoon will no longer support kameleoon.js after October 1, 2026. After this date, any campaigns on websites still referencing kameleoon.js will stop functioning. Update your implementation snippet accordingly.Setting up a worker in Cloudflare
Log in to your Cloudflare account and create a worker to point the original request back to your Kameleoon Web Experimentation snippet. You will need to configure the necessary Cloudflare route and script.Route
Add the following path:*<your_website_url_here>/kameleoonjs/script.js.
Script
You need a script that listens for requests from the/enginejs/ route and replaces that route with the one that leads to your Kameleoon snippet.
You can use the script below. Replace YOUR_SITECODE with your Kameleoon Project ID (follow the steps outlined in this article to retrieve it).
Add the Kameleoon snippet in your source code
Refer to this article to understand how to implement Kameleoon on your website.
<your_website_url_here>/kameleoonjs/script.js if you have chosen this route). For instance, if you are using the JavaScript File (Asynchronous Loading with Anti-Flicker) implementation method, the Kameleoon application file is by default hosted on //SITE_CODE.kameleoon.io/engine.js. You just need to change this URL in the installation tag, replacing it with your own URL.