Skip to main content
menu_icon.png

Hey, Optimizely X users! Don't waste time looking for resources about Optimizely X Web Experimentation. We've got them for you here

x
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

THIS ARTICLE WILL HELP YOU:
  • Create events that you want to track
  • Use events to measure the impact of your variations

Events are the "verbs" of a campaign; they track the actions that people take, such as clicks to a search result. In Optimizely X Full Stack, 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 a campaign 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.

    events.png

  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.