Optimizely
The Optimizely app adds a field type that lists the audiences of a connected Optimizely project. Store an audience ID on a block to build A/B tests and show content to one segment of your audience.
Features
Section titled “Features”- Select an Optimizely audience from within Storyblok.
- Build A/B tests around the stored audience IDs.
- Show a block only to the audience it targets.
- In Optimizely, create a user with read-only access and generate an OAuth token in the account settings.
- Install the Optimizely app from the app directory.
- In the Block Library, add a field to a block, set its field type to Plugin, and select
optimizely-v2as the custom type. - Enter the Optimizely OAuth token and project ID in the field options.
Content structure
Section titled “Content structure”To show user-specific content, create an AbTest block with a segment field of the Optimizely plugin type and a body field of type Blocks. When your frontend iterates over the content blocks, it decides which block to render based on the selected audience.
The recommended content structure:
- Block:
Page- Field:
Body(Blocks)- Block:
AbTest- Field:
Segment(Optimizely plugin) - Field:
Body(Blocks)
- Field:
- Block:
AbTest- Field:
Segment(Optimizely plugin) - Field:
Body(Blocks)
- Field:
- Block:
- Field:
Further resources
Section titled “Further resources”Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community