Managing Metrics

You create a metric once and reuse it across as many experiments as you need. Each metric lives in one of two places: scoped to a single project, or shared org-wide across every project in your organization. This page covers how to create a metric, choose where it lives, edit and archive it, delete it, and reuse it across experiments and projects.

The Metrics page lists every metric usable in the project: both metrics homed here and org-wide metrics shared from the organization.
  1. Click New metric to create a metric from scratch.
  2. Each row shows a metric's type, its definition, and how many experiments and flag rules use it.
  3. The kind chips narrow the list. They add up, so you can show clicks and purchases together. Pick All kinds to clear them and see everything again.
Purchase metrics appear here too

When order tracking is on, your project also has a Purchase metric. It is created for you, it carries a Purchase badge and its own filter chip in the list, and it has no fields of its own to fill in: the orders you already send are its definition. You can rename it, describe it, change its direction and share it org-wide, exactly like any other metric.

Creating a metric

1

Navigate to the Metrics page

Open your project and click Metrics in the left sidebar. This page lists all metrics that have been created for the current project.

2

Click New Metric

Click the New metric button in the top-right corner of the page. The metric creation panel opens.

3

Choose the metric type

Select from Click, Pageview, or Custom. Each type has different configuration fields. See the individual metric type pages for detailed instructions.

4

Fill in the details

Enter a name. Then fill in the field this type needs: a CSS selector for a click metric, a URL pattern and match type for a pageview metric, or nothing more for a custom event.

5

Set the direction

Choose Higher is better or Lower is better. Most metrics are higher-is-better, like sales or sign-ups. Some are the opposite: bounce rate, page load time, and refunds are all wins when they go down. This is the metric's default. Every experiment that uses it starts here.

6

Choose a scope

Leave the scope, meaning which projects can use this metric, on This project to home it here. Or switch it to Org-wide to make it usable in every project. Org-wide is admin-only. If you are not an organization admin, the choice is fixed to this project. In an organization with a single project the choice is tucked behind Advanced, since there's nothing to share it with.

7

Save

Click Save. The metric is immediately available to use in experiments.

Choosing how a metric is analysed (the measure). Click, Pageview, and Custom describe what is being tracked. How it's analysed, as a conversion rate, a per-visitor value, a percentile, a rate, or a composite, is picked separately, in the experiment builder's Metrics step. The same metric can be analysed with a different measure in each experiment, with no re-instrumenting needed.

Editing an existing metric

To edit a metric, find it in the Metrics list and click on it, or click the edit icon. The same panel opens with the current values filled in. Make your changes and click Save.

Edits affect all experiments using this metric

Metrics are shared across experiments. Change the CSS selector on a click metric used in three running experiments, and all three switch to the new selector immediately. Be careful editing a metric attached to an active experiment: get it wrong, and that experiment stops recording conversions.

Renaming a metric renames it everywhere, including in experiments that already use it, so one metric reads as one name across the whole app. The new name reaches your site with the next datafile publish, which happens automatically as part of the save.

Attaching the same metric and measure to an experiment again reuses the tracking you already have, even if you give it a different name at the time, so the same event is never counted twice under two names.

Direction: which way is a win

Some metrics are better when they go down. If A vs B says "bounce rate: -20%", is that good news or bad? Direction is how you tell it.

You set direction in two places, and they work together:

  • On the metric itself (Metrics page → the metric → Direction). This is the metric's default: the way it's normally read. Bounce rate is lower-is-better wherever it's used, so set it once here and every experiment inherits it.
  • On an experiment (experiment builder → Metrics step → configure a measure → Direction for this experiment). This overrides the default for that one experiment. It starts from the metric's own setting, so you only touch it when this particular test reads the metric differently from usual.

Once direction is set, results always read the same way: a positive number is always good. A bounce rate falling 20% shows as a +20% improvement, coloured green, on the results page and in the experiments list. It never shows as a red "-20%" that looks like a loss.

Changing direction does not change the data

Direction only changes how a result is read, never what was measured. Flipping it re-reads the existing numbers: it does not re-run or invalidate an experiment.

Changing scope: promote and demote

The same edit panel is where you change a metric's scope.

  • Promote to org-wide: switch the scope from This project to Org-wide. The metric becomes usable in every project in the organization.
  • Demote to a project: switch an org-wide metric back to a single project. This is blocked while experiments or flag rules in other projects still use the metric. A vs B lists exactly which ones so you can detach them first, then demote.
Scope changes are admin-only

Creating, editing, archiving, deleting, promoting, or demoting an org-wide metric requires the Admin role. Anyone who can create experiments can still manage metrics homed in their own project.

Archiving and deleting a metric

Both archiving and deleting detach the metric immediately, everywhere

Outside the four blocked cases below, confirming either one instantly detaches the metric from every experiment and flag rule that uses it, running, paused, or completed, and re-publishes the datafile so the snippet stops tracking it. The confirmation dialog naming who uses the metric is part of the safety check, so read it before you confirm.

Four references block an archive or delete outright, and there is no override:

  • An active primary. An experiment that is running, paused, or scheduled and uses this metric as its primary metric. Give it a different primary metric first, or stop it. The dialog shows the block before you confirm when it can, and the error names the experiments when it cannot.
  • A sealed analysis plan. If any experiment's sealed plan references the metric (as primary, secondary, guardrail, or through a ratio or composite), the action is refused and the error names the blocking experiments. Amend each plan first through its experiment's plan card. This block exists because unarchiving would not re-attach the detached usage, so the pre-registered plan would be silently gutted.
  • A bandit reward metric. If the metric is the reward metric for one or more bandits, the action is refused and the error names the bandit keys. Point those bandits at a different reward metric first.
  • A composite parent (bindings only). A metric binding that is still a component of a composite metric cannot be deleted until the composite stops referencing it.

To archive or delete a metric, open it from the Metrics list, or use its ⋯ menu, and choose Archive or Delete. If the metric is in use, a confirmation dialog lists how many experiments and flag rules reference it, plus which other projects use it if it's org-wide. Read that list. Continuing detaches the metric from every experiment and flag rule named there.

When any of those experiments is running right now, the dialog asks you to type the metric's name before it lets you continue. That applies to archiving as well as deleting, because unarchiving does not re-attach what the archive detached.

Archiving is the safer choice when a metric is retired. The metric record itself is kept, so you can find it again and unarchive it later. Its detached experiments are not automatically re-attached when you do: you'd need to re-add the metric to any experiment that should keep using it.

Deleting removes the metric record entirely, and cannot be undone. Because deleting also detaches the metric from every experiment first, a completed experiment's results page stops showing that metric too: the attachment that displayed it there is gone along with the metric.

If you want a metric to stop being used going forward, but keep every past experiment's results exactly as they are today, don't delete or archive it. Just stop attaching it to new experiments.

For an org-wide metric, the confirmation dialog counts references across every project and names the other projects that use it, so you see the full effect before you confirm, not just the usage in the project you happen to be looking at.

Deleting a whole project promotes its shared metrics

If you delete a project, any metric homed there that other projects were still using is automatically promoted to org-wide rather than deleted: the reference from the other project keeps working. Metrics that only that project used are removed with it. The delete confirmation tells you how many were promoted.

Reusing metrics across experiments and projects

Reuse is the whole point. You create a "Purchase Completed" metric once, and every experiment can use it, with the same CSS selector, the same URL pattern, the same custom event key, everywhere. A project-scoped metric is reused across experiments in its home project. An org-wide metric is reused across experiments in every project.

When you create or edit an experiment in the experiment builder, the Metrics step shows a searchable list of every metric usable in that project: both metrics homed there and any org-wide metrics. Org-wide entries carry a small Org-wide badge so you can tell them apart.

Attach a metric to an experiment with one of three roles:

  • Primary: the one metric the experiment is actually judged on. Every experiment has exactly one.
  • Secondary: tracked for context alongside the primary metric, but never the deciding factor.
  • Guardrail: a safety check that must not get meaningfully worse. A guardrail breach blocks a Ship verdict, even when the primary metric looks good.

Keeping metrics organized

As your project grows, the metrics list can become long. A few conventions that help keep things tidy:

  • Use descriptive names: include the element type and context: Pricing Page CTA Click, Signup Form Submit, Checkout Confirmation Pageview.
  • Avoid duplicates: before creating a new metric, search the list to see if one already exists for the same action. Two metrics tracking the same button with slightly different selectors leads to inconsistent data across experiments.
  • Delete stale metrics: metrics that are no longer attached to any experiment and have not been used in months can be safely deleted to keep the list clean.
Tip

Custom event metrics are fired by their event key, which your JavaScript passes to avsb.track.event(). If you delete a custom event metric and recreate it with the same key, your existing code keeps working. Change the key and you have to change the code too, so keep keys stable once they are live.

Was this helpful?