How to manually set up user experience segments with box conditions

If you are planning to split site visitors into different experiences without setting up an Experiment, or if you want to test a box vs “no box”, follow these simple steps.

Step 1: Go to custom JS templates

Custom JS template

Step 2: Install the “Random Percentage Rule” template

Step 3: Add a “less than” JS Variable to conditions:

DIGIOH_API.rand100sticky

And then add the percentage of visitors for which you want this box to fire.

The test is controlled by conditions that use an app feature “rand100sticky”. Each new visitor gets a random number 0-99 that is sticky in their browser. So it buckets them into 1 of potentially up to 100 test groups.

Example:

Example

So this box only shows to a random 50% of site visitors.