XT split all visitors audience 50/50 | Community
Skip to main content
September 25, 2023
Question

XT split all visitors audience 50/50

  • September 25, 2023
  • 1 reply
  • 658 views

Hello, I need help to setup an Experience Targeting for All visitors, splitting the audience Experience A 50% / Experience B 50%, any recommendations on how to setup the audience? I need to use XT and not A/B option.

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Rajneesh_Gautam_
Community Advisor
Community Advisor
September 26, 2023

hi @aidaguerra  - while there's no out-of-box way, you can use a "bucketing" profile script  -  that assigns a visitor to one of the two buckets using random number. 

 

if (!user.get('AB_Test_Groups')) { var random_number=Math.floor(Math.random()*99); if(random_number <= 49){ return 'GroupA'; } else{ return 'GroupB'; } }

 

September 28, 2023

Thank you @rajneesh_gautam_ 

Do I have to create an audience with the profile script for each of the experiences?
Or can one audience be placed in both experiences? See screenshot for reference.

Best,

Aida