Experimentation Lab
Interactive implementation reference
Integration implementation

Optimizely Data Platform

Use a shared customer identity and behavioral event stream for activation and audiences.

Customer profile · event stream

Live decision runner

Simulation mode
No credential is stored in this repo. Simulation is deterministic and clearly labeled. Add an environment SDK key to send real decisions and events; it stays in this browser’s local storage.

Implementation

Official docs ↗
Configure ODP in the Optimizely project and initialize the SDK with ODP enabled
const user = client.createUserContext(visitorId, { plan: 'pro' });
user.trackEvent('demo_purchase', {
  $opt_event_properties: { value: 99, currency: 'EUR' },
});