Skip to main content

Everything you need to learn Optimizely X in one place: See our resource pages for Web Experimentation and Personalization.

Optimizely Knowledge Base

Create an event for experiments in SDK projects

Skip Ahead

This article is about Optimizely X. If you're using Optimizely Classic, check this article out instead.
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

Events help you track key user behaviors on your application, or anywhere else in your technology stack. When you create an experiment or campaign, you'll use events to measure the impact.

Events that are added to an experiment are called metrics.

If you're familiar with Optimizely X Web custom events, events in SDK projects behave very similarly. Our development team is working to share events across projects so you can track custom Optimizely X Web events that you’ve already set up without repeating the instrumentation.

In the meantime, you'll copy each of the events from Optimizely X Web projects to your SDK project and track them separately. Contact your Solutions Architect for help.

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
    You can track events server-side using one of the Full Stack SDKs, client-side using the JavaScript SDK or Mobile SDKs, or at any other point in your technology stack. Read more about event tracking in our developer documentation.

  3. Click Save.