Learn More: How to Create Events

In Optimizely, events help you measure success in an experiment. You can think of events as the “verbs” of Optimizely X. They track the actions that people take on your site, such as clicks, pageviews, form submissions, and purchases.

With events, you can track three kinds of visitor behavior:

  • Click events capture visitor clicks on elements like buttons or offers
  • Pageview events capture visitor pageviews and are tracked automatically for each page that you set up
  • Custom events capture additional information about other kinds of visitor behaviors

Click events capture visitor clicks on elements like buttons or offers. You create them on a page, and they inherit the URL targeting from that page. Here's how to set up a click event:

  1. Navigate to Implementation > Pages and select the page where you want to add the event. You can also create a new page instead.
  2. In the left panel, in the Events section, select Create and then Click.
  3. Click the element to which you want to attach a click event.
  4. In the Selector field, the Editor automatically populates the selector for the element you chose. You can type or paste the element’s selector into the Selector field if you prefer.
  5. In the Name field, enter a name for your event.
  6. Click Save.