Skip to main content

Everything you need to switch from Optimizely Classic to X in one place: See the Optimizely X Web Transition Guide.

Optimizely Knowledge Base

Create events in SDK projects

There are two versions of Optimizely
What version do you have?
Optimizely Classic
This is what the Optimizely Classic user interface looks like.
Optimizely X
This is what the Optimizely X user interface looks like.
. If you're using Optimizely Classic Mobile, check this article out instead.

Skip Ahead

relevant products:
  • Optimizely X Full Stack
  • Optimizely X Mobile
  • Optimizey X OTT

  • Create events that you want to track
  • Use events to measure the impact of your variations

Use events to track key user behaviors in your application, or anywhere else in your technology stack, like clicks, pageviews, form submissions, and purchases. Events can be aggregated over time to produce metrics for your experiments. Create one or more metrics for your experiment to measure the impact.

You can learn more about event tracking in our developer documentation. Or, read on to learn how to register events in the Optimizely interface.

If you're familiar with Optimizely X Web custom events, events in SDK projects behave similarly.

See additional resources
Here are all our articles about the Optimizely dashboard, which you'll use to create projects, add collaborators, manage privacy settings, and more: 

Here's our developer documentation, where you'll find code samples, full references for our SDKs, and getting started guides.

Create an event

Create events to track user actions.

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

  2. Define an event key, a unique identifier that you'll reference in your code when you call track ().
    Screen Shot 2016-09-16 at 4.07.22 PM.png
    Event keys can contain spaces (unlike experiment keys) to conform to industry event-naming standards. Also, event keys must be unique for the project.

    You can track events server-side using one of the Full Stack SDKs, client-side using the JavaScript SDK, or at any other point in your technology stack.

  3. Click Save.