Metrics module

  • Updated
  • Optimizely Web Experimentation
  • Optimizely Performance Edge
  • Optimizely Feature Experimentation

The metrics module is in beta. Optimizely is not accepting additional customers into this beta program.

Optimizely is rolling back this beta and customers currently in the beta need will need to Create a metric in Optimizely with the metric builder instead when they are rolled back.

The metrics module in Optimizely Experimentation is designed to help create and manage metrics. Previously, metrics were created individually for each experiment. With the metrics module, you can create and manage reusable metrics across multiple projects and experiments.

Existing metrics continue functioning with ongoing experiments during the transition to the metrics module.

For new experiments, you must create a metric in the metrics module before adding it to the experiment.

Key features

  • Centralized metrics management with reusable metrics – Create metrics once and use them across different experiments, eliminating the need for repetitive configuration. You can create metrics using the user interface (UI) or the API. The following are available metric types:
    • Cross-project metrics – Available across all projects within an account. These metrics are shared across Web Experimentation and Feature Experimentation.
    • Project-level metrics – Specific to a single project.
    • One-time metrics – Created for a single use within an experiment, not reusable.
  • Roles and permissions – The metrics module introduces granular roles and permissions to control metric creation, editing, and usage. See the permission and roles sections for Feature Experimentation or Web Experimentation, Performance Edge, and Personalization for details.
  • Integration with experiments – You can use metrics across different experiments and projects. You can update them once, and the changes propagate wherever the metrics are used.

Metric creation requirement

Metrics must be unique within their respective scope.

  • Cross-project metrics – Metrics shared across multiple projects must be unique. Cross-project metrics cannot have identical event and calculation logic, even if they have different names.
  • Project-level metrics – Metrics specific to an individual project must be unique within that project. However, the same metric can exist in different projects because project-level metrics are not visible across other projects.

Optimizely Experimentation enforces these uniqueness requirements to encourage efficient metric reuse and maintain clarity within the metrics module.

Permissions and roles

Permissions for creating, editing, and using cross-project metrics are documented in the following sections.

Feature Experimentation

Action Administrator Project owner Publisher Editor Viewer
Create a one-time metric in an experiment Yes Yes Yes Yes No
Edit a one-time metric Yes Yes Yes Yes No
Delete a one-time metric Yes Yes Yes Yes No
Create project metric Yes Yes Yes Yes No
Edit project metric Yes Yes Yes Yes No
Archive project metric Yes Yes Yes Yes No
Add a project metric to an experiment Yes Yes Yes Yes No
Delete project metric Yes Yes Yes Yes No
Create a cross-project metric Yes No No No No
Edit a cross-project metric Yes No No No No
Archive a cross-project metric Yes No No No No
Add a cross-project metric to an experiment Yes Yes Yes Yes No
Delete a cross-project metric Yes No No No No

Optimizely Web Experimentation, Optimizely Performance Edge, and Optimizely Personalization

Action Administrator Project owner Publisher Restricted publisher Editor Restricted editor Viewer
Create one-time metric in an experiment  Yes Yes Yes Yes Yes Yes No
Edit one-time metric  Yes Yes Yes Yes Yes Yes No
Delete one-time metric Yes Yes Yes Yes Yes Yes No
Create project metric  Yes Yes Yes Yes Yes Yes No
Edit project metric  Yes Yes Yes Yes Yes Yes No
Archive project metric Yes Yes Yes Yes Yes Yes No
Add project metric to an experiment  Yes Yes Yes Yes Yes Yes No
Delete project metric  Yes Yes Yes Yes Yes Yes No
Create cross-project metric  Yes No No No No No No
Edit cross-project metric  Yes No No No No No No
Archive cross-project metric Yes No No No No No No
Add cross-project metric to an experiment Yes Yes Yes Yes Yes Yes No
Delete cross-project metric  Yes No No Yes Yes Yes No

The cross-project metric option only displays if you have the proper permissions.

Create metrics

  1. Go to Metrics.
  2. Click Create New Metric.

    Click create metric.

  3. Enter the metric parameters, including the Name, Description, Event, and measurement criteria.
  4. Select Cross-project metric to create a cross-project metric.

    Create a metric and select cross-project event

  5. Click Save.

See Create a metric in Optimizely using the metric builder for information on creating different types of metrics. 

Manage metrics in the UI

You can configure and manage metrics using the Optimizely Experimentation UI. Web Experimentation and Feature Experimentation handle metrics the same.

Edit a metric

When you edit a metric, existing experiments using this metric are affected. If you do not want to affect existing experiments, you can duplicate the metric instead, so these instructions work for either product.

  1. Go to Metrics.
  2. Click the metric you want to edit.

    Select a metric from the Metrics Hub.

  3. Make your changes on the Edit Metric page.
  4. Click Save.
  5. Click Save Metric on the Save Edit confirmation page.

Archive a metric

Archive metrics to prevent their use in new experiments while maintaining them in ongoing experiments.

  1. Go to Metrics.
  2. Click More options (...) for the metric you want to archive.
  3. Click Archive.

    Click More options then archive.

  4. Click Archive Metric on the Archive Metric confirmation page.

Unarchive a metric

You can unarchive metrics to use them in new experiments.

  1. Go to Metrics.
  2. Click Status and select Archived.

    Change status to Archived.

  3. Click More options (...) for the metric you want to unarchive.
  4. Click Unarchive.

    Click unarchive.

Delete a metric

Deleting a metric impacts any existing experiments using this metric and cannot be undone. You can only delete Archived metrics. See the Archive a metric section.

  1. Go to Metrics.
  2. Click Status and select Archived.
  3. Click More options (...) for the metric you want to delete.
  4. Click Delete.

    Click More options. Then Delete.

  5. Click Delete Metric on the Delete Metric confirmation page.

Manage metrics with the REST API

You can configure and manage metrics using the REST API. See the Feature Experimentation REST API documentation for available endpoints and parameters.

Best practices

Use these guidelines to streamline your metric management, reduce errors, and enhance collaboration across projects.

  • Consistent names – Use clear and descriptive metric names for easy identification across projects.
  • Governance – Implement roles and permissions to ensure only authorized users can modify critical metrics.
  • Documentation – Maintain documentation for each metric, outlining its purpose and usage.