Create events
How to create and add an event in Optimizely Feature Experimentation.
Events track the success of your experiment by recording specific user actions, such as clicks, pageviews, form submissions, purchases, and scroll depth. To integrate events into your application code using the SDK, see Track events.
Create event
In the UI
See the Create event section in the Manage events in Feature Experimentation user documentation for a step-by-step guide to create events using the Feature Experimentation UI.
With the REST API
See Create a custom event in the Optimizely REST API reference documentation for information on creating an event using the REST API.
Add events to your experiments
In the UI
See the Add events to your experiment section in the Manage events in Feature Experimentation user documentation for a step-by-step guide.
With the REST API
Use the Update the Ruleset for a Flag in an Environment endpoint to update your experiment with your event.
Track events in your application code
See the track event documentation in your SDK to implement event tracking in your code.
- Android
- C#
- Flutter
- Go
- Java
- JavaScript – SDK versions 6.0.0 and later.
- JavaScript (Browser) – SDK versions 5.3.5 and earlier.
- JavaScript (Node) – SDK versions 5.3.5 and earlier.
- PHP
- Ruby
- Python
- Swift
Create metrics
Metrics measure the success of your experiment by telling you whether an experiment is winning, losing, or inconclusive. Metrics are derived from events, which directly track actions like clicks, pageviews, form submissions, purchases, and scroll depth.
Optimizely Feature Experimentation uses a natural-language metrics builder in the UI that lets you define and add metrics to your experiments and campaigns. See Create a metric in Optimizely using the metric builder for instructions on creating metrics in Feature Experimentation.
Updated 7 days ago