Optimizely will be sunsetting Full Stack Experimentation on July 29, 2024. See the recommended Feature Experimentation migration timeline and documentation.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Define attributes

This topic describes how to create attributes to build the audiences that see your experiments in Optimizely Full Stack.

Use attributes to build the audiences that see your experiments, and use the Attributes tab to manage all your user attributes. In Full Stack, you can have up to 100 unarchived attributes per project. Attribute values are not explicitly typed in the Optimizely app. However, when you create audiences, you can choose different match criteria (comparison operations like 'greater than" or "equal to") depending on the format of the attribute value you pass. For more information, see Target audiences.

To create a new attribute:

  1. Navigate to Audiences > Attributes.
  2. Click New Custom Attribute.
  3. Enter a key for the attribute. For example, an attribute for visitors located in the United States might be called "US_VISITOR". You can pass attributes to the Full Stack SDK in your code, so always update your code with any changes to your keys.
  4. Click Save.



Attribute keys must be unique:

  • within your project
  • across multiple projects, if you use the same user IDs across projects. (using identical attribute keys in multiple projects can cause incorrect attribution of events in the attribute-based segments on the Results page).

Value format requirements

For number and boolean audience types, the required types will vary by SDK. For Version match types, the required attribute value is a string representation of at least a Major and Minor version, with Patch version and additional release labels optional.