Skip to content
Optimizely audiences selector for Kentico Kontent
CSS JavaScript TypeScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
public
src
.env
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
config.json
netlify.toml
package.json
selector.tsx
tsconfig.json
yarn.lock

README.md

Optimizely audiences selector for Kentico Kontent

Stack Overflow

This repository contains the source code for the Optimizely audiences selector custom element for Kentico Kontent.

Setup

  1. Deploy the code to a secure public host
  2. 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

JSON Parameters

Our documentation provides instructions for getting the values needed below.

{
  "projectId": "<OPTIMIZELY PROJECT ID>",
  "apiToken": "<OPTIMIZELY API TOKEN>"
}

Deploying

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.

Deploy to Netlify

Developing

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.

Contributors

Originally contributed by @kenticomartinh

Analytics

You can’t perform that action at this time.