Click or drag to resize
ABTestManager Class
Class provides management methods for retrieving and creating A/B test variants. Methods of this class do not save any changes made to pages, they have to be saved explicitly.
Inheritance Hierarchy
SystemObject
  CMS.OnlineMarketingABTestManager

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 12.0.0
Syntax
C#
public class ABTestManager : IABTestManager

The ABTestManager type exposes the following members.

Constructors
  NameDescription
Public methodABTestManager
Initializes a new instance of ABTestManager.
Top
Fields
  NameDescription
Public fieldStatic memberMAXIMUM_VARIANT_NAME_LENGTH
Maximum length of a variant name.
Top
Methods
  NameDescription
Public methodAddVariant
Adds a new A/B test variant into page based on an existing source variant.
Public methodCreateABTest
Creates a new A/B test for page with included traffic set to 100 and stores it to the database. If the page has any A/B test variants defined, they are cleared.
Public methodGetABTestWithoutWinner
Gets A/B test without a winner for a given page. Returns null if no A/B test is associated with the page or associated A/B test has a winner.
Public methodGetRunningABTest
Gets A/B test for page which is still running. Returns null if no running A/B is available for the page.
Public methodGetVariants
Returns all A/B test variants existing for given page.
Public methodPromoteVariant
Promotes a variant identified by variantGuid as the winner variant. Winning variant is stored in the database within the A/B test.
Public methodRemoveVariant
Removes an A/B test variant identified by variantGuid from page.
Public methodRenameVariant
Renames an A/B test variant in page identified by variant GUID with given name.
Public methodUpdateVariant
Updates an A/B test variant in page identified by variant GUID with given Page builder widgets configuration.
Top
See Also