---
title: Configure ODP in Web Experimentation
slug: web-experimentation/docs/odp-web
createdAt: 2026-08-05T20:54:48.955Z
---

If you use Optimizely Data Platform (ODP) to monitor your project's traffic, you can view the results of your Optimizely Web Experimentation experiments with the rest of the data that ODP collects.

:::hint{type="info"}
### Note

Optimizely does not support this method for Optimizely Performance Edge.
:::

## Add the script in Web Experimentation

1. Go to **Settings > Integrations**.

![Create Analytics Integration Using JSON](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/zYe3ge-sTwNukJ7cvyuNz-20261109-163627.png)

2. Expand the **Create New Analytics Integration** drop-down list and select **Using JSON**.
3. Copy the following code and paste it into the JSON Code field:

```json
{
  "plugin_type": "analytics_integration",
  "name": "ODP integration",
  "form_schema": [],
  "description": "",
  "options": {
    "track_layer_decision": "var state = window['optimizely'].get('state');\nvar campaignObject = state.getDecisionObject({ 'campaignId': campaignId });\n\n//This checks to make sure the decision isn't empty because they might have not matched audiences or traffic allocation\nif (campaignObject !== null) {\n  //This is a function that waits for the zaius.eventto be a function. Probably want to do something similar for Zaius, to make sure its there before it sends it, else it waits for it\n  var utils = window['optimizely'].get('utils');\n  utils.waitUntil(function() {\n    return typeof(zaius.event) === 'function';\n  }).then(function() {\n    zaius.event('optimizely_exp', {\n      action: 'decision',\n      optimizely_experiment: campaignObject.experiment,\n      optimizely_variant: campaignObject.variation\n      //optimizely_experiment and optimizely_variant need to be created as fields on event table in ODP\n    });\n });\n}"
  }
}
```

1. Click **Create Template**.

## Install ODP on your website

Install the ODP SDK directly on your website. See [Implement the ODP JavaScript tag](docId\:XIk4SqG8AEP3aCy05gIEB).

Your Web Experimentation data immediately starts syncing to ODP.
