####Problem
In its current state, xLab doesn’t allow experiment owners to sample test subjects based on their login status. Users are thus not able to configure experiments that collect metrics from anonymous users.
####Suggested solution
To enable experiment owners to benefit from the new anonymous testing capabilities, we’ll provide them with the ability to select the enrollment authority that will define their sample from xLab’s UI.
In order to align xLab with Growthbook’s terminology, and support experiment owner’s transition to the latter third party experimentation tool, we’ll base our design off of the “Identifier types” field available in that external platform:
{F60349190}
Quick overview of requirements:
| Placement | Default state & Validation | The field is not modifiable after activation
| {F60349249} {F59547278} | {F60349265} | {F59547123} {F60349299}
| The “User identifier type” field is the first field included in the “Traffic and variations” section (fka “Sampling”). It replaces the “Sample unit” field in the experiment form and read-only view: | No option in this field is selected by default. If users try to submit without having made a selection, validation should be triggered | Users won't be able to edit their selected user identifier type once their experiment has been activated: (1) We'll mention this in the activation confirmation dialog (replacing “sampling configuration” by “traffic configuration”). (2) The User identifier type options will display a disabled state when users try to edit an active experiment.
Please find detailed specs in this [[ https://www.figma.com/design/Tcc2kiPAcsXVK2t6qC1QrV/Experiment-Platform---XLab?node-id=4373-43889&t=M4xkBgfVHF8wSilU-1 | Figma file ]].
####Open questions
- The User identifier type field replaces the Sample unit field in the experiment form: Should this task depend on a separate task to remove the Sample unit field from the experiment form, or should that effort be part of this task?
####Acceptance criteria
[] xLab users can employ the required and non-modifiable ‘User identifier type’ field to define the composition of their sample