Parameter | Type | Description |
experimentName | String | The name of the experiment activated. |
userId | String | A unique identifier for the user. |
userAttributes | HashMap<String, String> | A map of user attributes used for audience targeting and segmentation. |
import java.util.HashMap;
// Create the User Attributes object
HashMap<String, String> userAttributes = new HashMap<>();
// Add the User Attribute values
userAttributes.put("Browser", "Chrome");
userAttributes.put("Device", "Desktop");
userAttributes.put("OS", "Windows 10");
// Activate the FullStack A/B Test Experiment
String variationName = pageSenseClient.getVariationName(experimentName, userId, userAttributes);
// Define the Code Changes for each of the Variations of the FullStack A/B Test Experiment
Parameter | Type | Description |
experimentName | String | The name of the experiment activated. |
userId | String | A unique identifier for the user. |