Create a metric
Create custom metrics, from simple counts to calculated rates, and manage the metrics in your container.
Default metrics cover the essentials, but your business questions are your own. Create a custom metric to track exactly what you need, then use it in any dashboard widget in your container.
Before you begin
You need edit rights to create, edit, or remove metrics.
Metrics belong to a container. A metric you create is available to every dashboard in that container.
Check whether a default metric already covers what you need. See Default metrics.
Name and format your metric
Under General, set:
Name - The name you'll pick from when adding the metric to a widget. Describe what it measures, for example "Sessions with Finder completion."
Format - How values are displayed: Number, Currency (uses your container's currency), or Percentage.
Decimals - How many decimal places to show. The default is 2.
Build a Simple metric
Metric Value sets what you're measuring. The most common values are Actions, Pageviews, Products, Promotions, Sessions, Transactions, Revenue, Revenue (cross session), Transactions (cross session), and Visitors. Other reporting fields are also available.
Aggregation Function sets how values are combined:
Default
Uses the function that makes the most sense for the value, usually Distinct.
Average
Calculates the mean of the values.
Sum
Adds up all values.
Distinct
Counts unique values.
Min
Returns the smallest value.
Max
Returns the largest value.
Count
Counts every value, including repeats.
Leave it on Default unless you need a specific calculation.
Filters narrow down what's counted. Click Condition to add a single rule, or Condition Group to group several rules together.
Conditions can use fields from Action, Chat, Date, Visitor, Message, Page, Product, Product Engagement, Product Finder, Promotion, Referrer, Region, Session, and User Agent. Property fields let you choose the property key.
When you add a second item, choose AND or OR from the dropdown next to it. That choice applies to every item at the same level. Inside a group, the header shows whether all or any of the conditions must be true.
Groups can be nested up to two levels deep.
To exclude values, use a negative operator: not equal to, not contains, not between, or is empty.
Build a Calculated metric
A Calculated metric combines operands, which can be Simple metrics or other Calculated metrics.
Choose an operator: Plus, Minus, Divided by, or Multiplied by. The operator applies to every operand in the block.
Configure each operand, and add more with the add button.
To control the order of operations, set an operand's Type to Calculated. It works like a pair of brackets.
For example, to calculate the share of carted products that weren't bought, (Product Carts − Product Boughts) ÷ Product Carts:
Set the outer block to Divided by.
Make the first operand a Calculated block set to Minus, with Product Carts and then Product Boughts.
Make the second operand Product Carts.
Operands can't be reordered, so add them in the order you want them calculated. For Minus and Divided by, order matters: A − B isn't the same as B − A.
Manage metrics
Edit a metric
Click a metric in the list to open it, make your changes, and click Save. Changes apply straight away to every widget that uses the metric.
Remove a metric
Open the menu (⋮) on the metric's row, click Remove, and confirm. Default metrics can't be removed.
Removing a metric doesn't update the widgets that use it, and there's no warning. Those widgets can no longer show data for the removed metric, so check your dashboards first.
Copy metrics to another container
If you work across several containers, you can copy metrics between them instead of rebuilding them.
Select the metrics to copy with the checkboxes.
Open the menu next to New metric and click Copy to clipboard.
Switch to the other container, go to Analytics → Metrics, open the same menu, and click Paste from clipboard.
If a metric with the same name already exists, choose to Skip it, Duplicate it (it's added with "(copy)" in its name), or Replace the existing one. Use Clear clipboard when you're done.
Frequently asked questions
Was this helpful?
