A/B testing
Testing different nudges on the same page
Last updated
Was this helpful?
Testing different nudges on the same page
Last updated
Was this helpful?
You can test multiple version of a nudge on the same page by levering the ab
variable. This variable is automatically set for visitors to a random number between 0 and 100.
By using the ab
variable in an expression you can have the A or the B version being shown persistently for this visitor. For instance to do a A/B test with two versions you can add the following to the end of the nudge expression. && ab >= 50
for version A and && ab < 50
for version B. You can also split the versions differently by adjusting the numbers.
In the Analytics section you can see how the different nudges perform