Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Dev guideRecipesAPI ReferenceChangelog
Dev guideAPI ReferenceRecipesChangelogUser GuideGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev guide

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.

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.