Allows you to set up several events that roll up into a single metric.
- Copy the
projectjs.min.js
content and add it to your Project Javascript - Copy the
extension.json
content and create a new Custom Analytics Extension - Create a new Custom Event which will serve as the composite metric, e.g.
performed_all_actions
. When a visitor converts on the other events making up the composite event, a custom event using thisapi_name
will be sent to Optimizely.
- Visit Integrations tab on an experiment
- Check the "Tracked" checkbox to enable
- Input settings as described in the section below.
Composite Metric API Name
- Indicate theapi_name
of the Custom Event that you created in the third step during installation.Event List
- A comma-separate list ofapi_names
that all need to be converted on to result in a conversion of the composite metric.
Turn on logging by setting a localStorage flag localStorage.setItem('__optCompositeTrackerDebug', 1)