


Hi!
I have got a case that not allow me to use an AB Test to split audience with 50/50.
Exp A (control) > 50%
Group B > 50%
(containing)
Exp B (visitCount = 1)
Exp C (visitCount = 2)
Exp D (visitCount = 3)
To make it work, i have configured a XT activity using a profile script to split audience :
if (!user.get('twogroups')) {
var ran_number = Math.floor(Math.random() * 99);
if (ran_number <= 49) {
return 'ExpA';
} else {
return 'GroupB';
}
}
Could you tell me if this method works as efficiently as the native split of an AB Test activity ?
Views
Replies
Sign in to like this content
Total Likes
Hi @Tienzen,
Yes, that should split traffic into 2 groups as efficiently as the native splitter.
Extra tip: if you modify the profile script to simply return the random number between 1-100 you can then use the audience rule to split to groups of: 2, 4, 5, 10, etc. Your current profile script will only allow you to use 2 groups - so it's not potentially as useful to you in the long run that way.
Views
Replies
Sign in to like this content
Total Likes
Hi @Tienzen,
Yes, that should split traffic into 2 groups as efficiently as the native splitter.
Extra tip: if you modify the profile script to simply return the random number between 1-100 you can then use the audience rule to split to groups of: 2, 4, 5, 10, etc. Your current profile script will only allow you to use 2 groups - so it's not potentially as useful to you in the long run that way.
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes
[duplicate deleted]
Views
Replies
Sign in to like this content
Total Likes