This repository contains the source code for the Optimizely audiences selector custom element for Kentico Kontent.
- Deploy the code to a secure public host
- See deploying section for a really quick option
- Follow the instructions in the Kentico Kontent documentation to add the element to a content model.
- The
Hosted code URL
is where you deployed to in step 1 - No JSON parameters are necessary
- The
Our documentation provides instructions for getting the values needed below.
{
"projectId": "<OPTIMIZELY PROJECT ID>",
"apiToken": "<OPTIMIZELY API TOKEN>"
}
Netlify has made this easy. If you click the deploy button below, it will guide you through the process of deploying it to Netlify and leave you with a copy of the repository in your GitHub account as well.
This is built as a React SPA. As such, the normal React development processes apply.
After cloning the repo locally, you can get started with:
yarn install
yarn run start
When you're ready to deploy, run the yarn build
command and deploy the contents of the build
folder.
Originally contributed by @kenticomartinh