The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Dev guideRecipesAPI Reference
Dev guideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev guide

Define attributes

How to create attributes to build the audiences that see your experiments in Optimizely Feature Experimentation.

Use attributes to build the audiences that see your experiments, and use the Attributes tab to manage your user attributes.

📘

Note

In Optimizely Feature Experimentation, you can have up to 100 unarchived attributes per project.

To create a new attribute key:

  1. Navigate to Audiences > Attributes.

  2. Click Create New Attribute.

    create new audience attribute
  3. Enter a key for the attribute.
    Attribute keys must be unique within your project. For example, an attribute for visitors in the United States might be called US_VISITOR. You can pass attributes to the Optimizely Feature Experimentation SDK in your code, so always update your code with any changes to your keys.

  4. Click Save.

📘

Note

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 segmentation on the Results page.

Attribute value formatting

You define attribute values in the Audiences tab, not the Attributes tab.

Attribute values are not explicitly typed in the Optimizely app. However, based on the format of the value you pass, you can choose different audience match criteria (comparison operations like greater than or equal to). For more information, see Target audiences.