Use Custom Events as Goals and Metrics
Use a custom event in Elevate A/B Testing as the goal that decides the winner, or as a custom metric reported for every variation.
You can add any custom event to an experiment in two ways: as the experiment goal, which decides the winner, or as a custom metric, which is reported for every variation without affecting the winner. Events you have already created are listed in both places. You can also create a new event from either place, and it is saved to Custom Events for reuse.
Experiment goal
Yes
Experiments where engagement with one element is the whole question
Custom metric
No
Explaining why revenue or conversion moved
For most experiments, keep revenue per visitor as the goal and track the event as a custom metric.
How do I use a custom event as the experiment goal?
In the experiment's General Info & Goal step, under What do you want to measure?, select Browse all metrics.
In Choose what to measure, search for your event by name, or select Add Custom Metric to create a new one.
Select the event as your goal.
Select Continue.
The goal is set when you create the experiment and cannot be changed after launch.
What is the risk of a custom event goal?
A custom event goal answers a narrower question than revenue does. That is the point, and it is also the risk. A variation can lift the event and cost you money.
Making a subscription toggle impossible to miss raises subscription clicks, and it can also add friction for the one-time buyer who now has a decision to make before adding to cart. More size guide clicks can mean the guide is easier to find, or that the product images stopped answering the question.
Treat a custom event goal as a diagnostic, not a verdict. Watch revenue per visitor alongside it, and implement a winner on the money, not the micro conversion.
How do I track custom events as additional metrics?
Custom metrics are reported for every variation, but they do not decide the winner. Only the experiment goal determines statistical significance.
In the experiment's Optional Settings step, turn on Custom Metrics.
Under Custom events, select the events to track. The counter shows how many you have selected.
To track an event you have not created yet, select Add new custom event, create it, and select it.
Select Continue.
You can also add custom metrics to an experiment that is already running. Product page, collection page, and URL visit events then count from the start of the experiment. Click, element viewed, scroll depth, and Custom JavaScript events count from when the event started firing.
Use custom metrics to explain a result. If revenue per visitor rose, the custom metrics show which part of the change visitors actually used.
What should I check before launching?
The event fires
24 Hours Count in Custom Events increased after you performed the action, or Validate passed for a Custom JavaScript event
Fires on every variation
The tracked page, element, or snippet exists on the control and every variation
Fires once per action
One action produces one event, not several
Name is readable
Someone reading the results in three months knows what it measures
Revenue is watched too
Revenue per visitor is your goal, or you review it alongside a custom event goal
The second check is the common failure on page and theme experiments. Variation templates and alternative themes do not automatically carry elements or code added elsewhere. If the tracked element or snippet exists only on the control, the variation records nothing and loses by default.
Next steps
Create a Custom Event to set up a new no-code event
Manage Custom Events to confirm an event fires
Use Custom Events as Triggers to enroll only visitors who perform an action
Reports Overview for how the goal decides a winner
Metrics for the built-in metric definitions
Last updated