Step 1: Go to custom JS templates
Step 2: Install the “Random Percentage Rule” template
Step 3: Add a “less than” JS Variable to conditions:
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.
So this box only shows to a random 50% of site visitors.
Tips for Analysis
A good way to analyze this is to create a Segment in GA that includes sessions with the event:
Category = Digioh
Action = Display
Label = Your box name
And also the inverse, a Segment that excludes session with that event.
Then you can run reports in GA for anything you want (e.g. bounce rate, purchase conversion rate, etc) for visitor sessions that did and did not see the box.
Questions? Comments? Let us know at email@example.com