Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySumbit a ticketLog In
GitHubNuGetDev CommunitySumbit a ticket
These docs are for v2.0. Click to read the latest docs for v3.0.

Create events

Use events to track key user behaviors in your Full Stack application or elsewhere in your technology stack. 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.

Events can be aggregated over time to produce metrics for your experiments. Create one or more metrics for your experiments to measure the impact.

Create an event

To create an event that tracks user actions:

  1. Navigate to the Events dashboard and click New Event.
1317
  1. Define an event key, a unique identifier that you will reference in your code when you call Track.

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

In Event Tracking Code, Optimizely automatically populates example code for a Track call with your event key and a user_id.

  1. Click Save Event.
713