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 to the account’s advanced options:
  1. Log in to the Kameleoon account.
  2. Click Admin > Projects.
  3. Click Configuration on the website card.
  1. Add the script above in the Variation selection script field.