- Optimizely X Full Stack
THIS ARTICLE WILL HELP YOU:
- Determine which users can be included in an experiment based on certain qualities about them (attributes)
- Create new audiences for experiments in Optimizely X Full Stack projects
- Create new attributes and use them to define your audiences
You can use audiences to define a group of users based on conditions that you specify, then target your experiments to one or more audiences. For example, you might want target your experiment to users with a certain language setting. Or, you might show an experiment to users on certain devices only.
In Optimizely X Full Stack, audiences are reusable across multiple experiments but are limited to each Full Stack project.
- Optimizely X Full Stack Resources
- Optimizely X iOS and Android Resources
- Optimizely X tvOS and Android TV Resources
Here's our developer documentation, where you'll find code samples, full references for our SDKs, and getting started guides.
Audiences are composed of one or more user attributes. In Full Stack, you can create attributes and use them to define new audiences. Use the Audiences dashboard to create and manage attributes and audiences.
Unlike Optimizely X Web projects, experiments in Full Stack projects don’t include out-of-the-box attributes such as browser, device, or location. Full Stack SDKs are platform-agnostic, so we make no assumptions about what attributes are available in your application or their format. This requires some setup, but gives you full flexibility to customize attributes for targeting and segmentation.
In Full Stack, you can have up to 100 attributes.
If you want to use attributes, you need to pass them in the SDK. Check out user attributes in our developer documentation for details.
You do not need to pass audiences through the SDK. Optimizely infers audiences based on the attributes passed in the SDK.
Read on to create attributes and audiences for experiments in Full Stack projects.
Create an attribute
Use attributes to build the audiences that see your experiments. Here's how to create a new attribute, with step-by-step instructions below:
In the Audiences dashboard, navigate to the Attributes tab.
Click New Custom Attribute.
Name the attribute key.
Attribute keys must be unique within your project. For example, an attribute for new visitors might be called NEW_VISITOR. You can pass attributes to the Full Stack SDK in your code, so always make sure to update your code with any changes made to your keys.
Congratulations, you've created a new custom attribute! Use the Attributes tab to manage all your user attributes.
Create an audience
After you've created a few attributes, you can start building audiences.
Navigate to the Saved tab of the Audiences dashboard and click Create New Audience.
Drag and drop the desired attributes into the Audience Conditions field.
For example, to create an audience of visitors who are located in the US, based on specific location values, add the LOCATION attribute.
Define the attributes.
Add other attributes to help create your audience. They can be can be added as "and" or "or" conditions. Currently, only string attributes are available, and the audience builder includes only exact matching.
Click Save Audience.
Now you can use these audiences when building experiments, and reuse them as needed!
Attributes are used for segmentation on the Results page. If you define attributes and pass them in the SDK, they'll be available as segmentation options from the drop-down menu at the top of the Results page.