The Optimizely extension lets you serve personalized content by allowing you to select the audience for each entry. This extension fetches and displays your Optimizely audiences into a field in your content type. Subsequently, while creating entries, content managers can select audience(s) for each entry. Based on the selection, the entry will be visible only to the targetted audience when published.
We have created a step-by-step guide on how to create an Optimizely extension for your content types. You can refer the Optimizely extension guide on our documentation site for more info.
To modify the extension, first clone this repo and install the dependencies. Then, edit the HTML, CSS and JS files from the source folder, and create a build using gulp task.
To install dependencies, run the following command in the root folder
npm install gulp-cli -g
npm install
To create new build for the extension, run the following command (index.html):
gulp build
To run source watch, run the following command:
gulp watch