This article will help you:
  • Enable the Krux integration in Optimizely
  • Create new audiences using the Krux integration

Krux is a Data Management Platform (DMP). This integration allows you to create targeted audiences in Optimizely based on visitor segments in Krux. From there, you can run targeted tests and personalization campaigns.

The Krux integration currently only works for customers using the 'legacy Krux console'. To determine which console your Krux account is on, please contact your Krux representative.

If your Krux account uses the new Console, you can contact a Krux representative to help with determining how to target a Krux audience using a custom JavaScript condition

Enabling Krux in Optimizely

To enable Krux for a project, go to the Integrations tab on the Home page and toggle the button to On in the right sidebar.


Enter your Krux username, password and required API key, which can be provided by your Krux Customer Success Manager and click Save. This will connect your project with Krux, so Optimizely can read the segments defined in your Krux account.


The Krux integration uses the Krux segments defined on a your website. Each audience in Krux has a corresponding unique ID available in a website cookie which Optimizely reads to match a user on each page-view.

Creating a Krux Audience

After enabling the Krux integration, you can create Optimizely Audiences (or add Krux conditions to current Audiences) based on visitor segments in Krux. To do this, go to the Overview > Audiences tab and click New Audience.

In the Audience builder, go to the Third Party tab.


Click on the Krux drop-down and drag the Audience Segment condition into the Audience Conditions. Complete the open fields by selecting one of the values auto-populated into the drop-down.

In this example, we created an audience with the following conditions:


Meanwhile, in Krux, for each segment you want to make into Optimizely, you'll need to check this box:

Here are the segments setup in this Krux account:

Note the Optimizely specific category.

The dropdown shows only the segments in your Krux account that have a Sub Category of "Optimizely."

 To expose a Krux segment to Optimizely, you'll first need to edit the Sub Category field to "Optimizely," as shown in the screenshot above.

Once you have set your audience conditions, click Save Audience. You should now be able to see your Krux segments in Optimizely.