Skip to main content
menu_icon.png

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

x
Optimizely Knowledge Base

Create events 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

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.

    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
    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.