Click or drag to resize
IABUserStateManagerTIdentifier Interface
Manages current user's A/B test state - can assign an A/B variant to him, save which conversions he has done, or read saved state. Internally uses a cookie for permanent state (see ABCookieValue) and session for session state(see SessionHelper).

Namespace: CMS.OnlineMarketing.Internal
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 12.0.0
Syntax
C#
public interface IABUserStateManager<TIdentifier>

Type Parameters

TIdentifier
Type of the A/B variant identifier.

The IABUserStateManagerTIdentifier type exposes the following members.

Properties
  NameDescription
Public propertyIsExcluded
Indicates whether is visitor included in A/B test or not.
Top
Methods
  NameDescription
Public methodAddConversion
Adds a conversion to session and permanent conversions if possible.
Public methodAssignVariant
Assigns an A/B variant to current user so that it can be used on next visit. From now on, permanent conversions can be also saved to user's state.
Public methodExclude
Excludes visitor from A/B test.
Public methodGetPermanentConversions
Gets permanent conversions that are done by current user.
Public methodGetSessionConversions
Gets session conversions that are done by current user.
Public methodGetVariantIdentifier
Gets name of the A/B variant assigned to the current user. Returns null, if the user hasn't got any variant assigned yet.
Public methodIsABTestCookieDefined
Returns true when A/B test cookie is defined.
Public methodIsABVisit
Returns true if user has visited A/B test page and has visit session.
Public methodSetVisit
Sets a A/B test visit for current user so that from now on, conversions can be logged also as A/B test session conversions.
Public methodSetVisitToSession
Sets current A/B test visit to the session store.
Top
See Also