Integration implementation
Event API
Direct HTTP event ingestion for systems where installing an SDK is not possible.
HTTP · offline / batchThis runtime cannot execute inside a Next.js browser process. The page shows the native, official SDK shape; use the JavaScript, React, or Next.js pages for a live decision and event round trip with the same project, flag, event, and visitor ID.
Implementation
Official docs ↗POST https://logx.optimizely.com/v1/events
fetch('https://logx.optimizely.com/v1/events', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify(optimizelyEventPayload),
});