Salesforce B2C Commerce 23.6 > B2C Commerce API > B2C Commerce Script > dw.campaign
dw.campaign
Class ABTestMgr
Object
dw.campaign.ABTestMgr
Manager class used to access AB-test information in the storefront.
Properties
assignedTestSegments  :  Collection  (Read Only)
Return the AB-test segments to which the current customer is assigned. AB-test segments deleted in the meantime will not be returned.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
static getAssignedTestSegments() : Collection
Return the AB-test segments to which the current customer is assigned.
static isParticipant(testID : String, segmentID : String) : boolean
Test whether the current customer is a member of the specified AB-test segment.
Methods inherited from class Object
Method Detail
getAssignedTestSegments
static getAssignedTestSegments() : Collection
Return the AB-test segments to which the current customer is assigned. AB-test segments deleted in the meantime will not be returned.
Returns:
unordered collection of ABTestSegment instances representing the AB-test segments to which the current customer is assigned.

isParticipant
static isParticipant(testID : String, segmentID : String) : boolean
Test whether the current customer is a member of the specified AB-test segment. This method can be used to customize the storefront experience in ways that are not supported using Business Manager configuration alone.
Parameters:
testID - The ID of the AB-test, must not be null.
segmentID - The ID of the segment within the AB-test, must not be null.
Returns:
true if the current customer is a member of the specified AB-test segment, false otherwise.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.