Skip to main content
Kameleoon randomly allocates a variation to a visitor by default. The statistical paper explains the assignment algorithm logic in the “Kameleoon’s assignation algorithm” section. The default function follows:
Overwrite the default function to change how Kameleoon selects and displays variations. Secure websites can use this to show consistent variations to connected users across platforms and devices:
Add the custom code on your project’s Scripts tab:
  1. Log in to the Kameleoon account.
  2. Click Admin > Projects.
  3. Click Edit on your project’s row.
  4. Click the Scripts tab. Next to Variation selection script, click Edit, then paste the variation selection function from this tutorial.
The Scripts tab with the Global custom script and Variation selection script editors