Skip to main content
Winning Variant considers a subject anything that is assigned a variant within an experiment. Think of a subject as a patient in a drug trial. Traditionally, a subject is a user (known or anonymous), but can be any other thing that seems one thing over another, such as a mobile or IoT device. Subjects can have various ways of being identified (such as a known customer ID or an anonymous cookie ID). We call these Subject Types and are completely customizable within the platform. Here are some examples of typical Subject Types:
  • Anonymous User ID: such as a random UUID stored in a cookie in a user’s browser
  • User/Customer ID: a persistent ID that tells you exactly who someone is. Values used here are sometimes the CRM ID (such as Salesforce ID) or primary key in your own database.
  • MAC Address: when experiment assignments are done at the device level.
  • Customer Group: if you wish for all users within a particular customer group/segment to experiment the same experiment variation, you can use this level of grouping.
All possible Subject Types can exist at once within the platform and are used only for the experiments that depend on them.

YAML

Metadata

The possible statuses for subject types are: active or archived. parentKind and parentId should be excluded.
When defining a resource in YAML, each must have a metadata section. The following properties within metadata are shared across all resource types:

ResourceStatus

Possible statuses include:

Spec

The spec for a Subject Type includes the following:

MatchType

Built-in Subject Type match types include:

Examples