Optimizely Event API
Overview of the Optimizely Event API, which you use to send event data to Optimizely Experimentation.
Optimizely Experimentation uses the Event API to send event data to backend servers. Both Optimizely Web Experimentation and Feature Experimentation implement this API to send event data.
Use the Event API
To send data to Optimizely Experimentation, use one of the following methods. You can do this through one of the Optimizely Experimentation products, or by using the Event API directly.
You can send data to Optimizely Experimentation using the following:
- Optimizely Web Experimentation – After implementing the one-line snippet on your web page and creating events to track user behavior, the snippet automatically sends event data to the backend.
- Optimizely Feature Experimentation – After you implement one of the Feature Experimentation SDKs (or Optimizely Agent) and instrument your events in code, the Optimizely client sends event data to the backend.
- The Event API – To send event data directly, make a
POSTrequest to the Optimizely events endpoint:<https://logx.optimizely.com/v1/events>. This approach is useful for events that are difficult to track through native products — such as tracking offline conversions.
Updated 7 days ago
