Custom metrics
Define your own KPI as a formula over period totals.
On this page
A custom metric is a formula you define, for example contribution profit ÷ ad spend. It is computed from the period totals of the selected stores and date range, and can be added to Overview and Dashboards like any other metric. Custom metrics are shared across the workspace.
Open Settings → Metrics → New metric.
Formula syntax
Use + − × ÷, parentheses, numbers and the functions min, max, abs and round. Division by zero shows —.
Profit per unit = net_profit / units
Variables
| Variable | Meaning |
|---|---|
gross_sales | Gross sales |
discounts | Discounts |
returns | Returns |
net_sales | Net sales |
taxes | Taxes collected |
net_revenue | Net revenue |
shipping_revenue | Shipping charged |
cogs | Product costs, without the RX lens cost |
rx_cost | RX lens cost (Optical pack) |
shipping_cost | Shipping costs |
handling | Handling fees |
fees | Payment fees tied to orders |
fulfillment | Fulfillment costs |
packaging | Packaging costs |
custom_costs | Order-level and variable period custom costs |
ad_spend | Total ad spend |
ad_revenue | Platform-reported ad revenue |
gross_profit | Gross profit |
contribution_profit | Contribution profit |
net_profit | Net profit |
orders | Orders |
units | Units sold |
new_customers | New customers |
days | Number of days in the period |
Format
Choose how the result is shown: currency, percent, number or ratio (×). For a percent, write the formula as a fraction: net_profit / net_revenue shows 13.0% for 0.13.
Deleting a custom metric makes dashboards that use it show —.
Was this page helpful?