A/B Testing Attributes
Defines A/B test attributes for alby elements, enabling accurate tracking and controlled testing.
Alby Web Elements support three optional attributes to facilitate A/B testing and data tracking:
- test-id
- test-version
- test-description
Details
Attribute | Description |
---|---|
test-id | A unique identifier for the test set. Enables accurate tracking and reporting of data specific to each test version. Example: test-id="TEST-1" |
test-version | Specifies the A/B test condition the page is assigned to. Possible values: alby - The user is assigned to the test segment and can interact with the tested feature.control - The user is assigned to the control segment where the tested feature is not available. Users in this segment will not see or interact with any alby related functionality.Example: test-version="control" |
test-description | Provides a description of the A/B test. Helps document test objectives and variations for tracking purposes. Example: test-description="Testing new user engagement feature" |
Example
<alby-generative-qa
product-id="2cw3sd8"
test-id="TEST-1"
test-version="control"
test-description="Testing new user engagement feature"
></alby-generative-qa>
A/B Test Behavior
Important
If
test-version="control"
, alby will be completely disabled. Users in this segment will not see or interact with any alby related functionality. Ensure this setting is applied correctly to maintain the integrity of the A/B test.
By incorporating these attributes, structured A/B testing can be implemented across various alby HTML tags, ensuring precise tracking, performance evaluation, and data-driven decision-making.
Updated about 2 months ago