Dev guideAPI Reference
Dev guideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In

Create events

How to create and add an event key to your experiment in the Optimizely application for Optimizely Feature Experimentation.

For more information on how to integrate events into your application code with the SDK, see Track events.

Create an event key in the Optimizely Feature Experimentation app

To create an event that tracks user actions in the Optimizely Feature Experimentation app:

  1. Navigate to the Events dashboard and click New Event.
1201

Create an event

  1. Define an event key, a unique identifier you will reference in your code when you call Track Event.

Event keys can contain spaces (unlike experiment keys) to conform to industry event-naming standards. Event keys must be unique for the project.

  1. Click Save Event.

Add events to your experiments

To add an event to your experiment in the Optimizely Feature Experimentation app:

  1. Navigate to Flags and select your flag.
  2. Click the A/B test for which you want to add an event.
  3. In the Metrics field, add your event.
1150

Click to enlarge the image

Track events in your application code

For more information, see the Track Event documentation in your preferred SDK: