Custom metrics let you create your own calculations by combining existing metrics in Cifra. Use them to track KPIs that are specific to your business, like profit margins, customer acquisition costs, or any ratio you need to monitor regularly.
Once created, custom metrics work just like any native metric in Cifra. You can add them to dashboards, include them in reports, and filter your data by them.
What you can do with custom metrics
Combine metrics from different sources (Shopify, Google Ads, Meta, Klaviyo, GA4, and more) into a single calculation.
Use arithmetic operators (+, −, ×, ÷) and parentheses to build the formula you need.
Display results as currency, percentage, or plain numbers.
Set trend direction so Cifra knows whether a value going up is good, bad, or neutral.
Add your custom metrics to dashboards and reports alongside native metrics.
Before you start
Before creating a custom metric, think about:
What question are you trying to answer? For example, "how profitable is each order?" or "how much are we spending to acquire one customer?"
Which existing metrics do you need? Make sure the metrics you want to combine are already available in your Cifra account.
What format makes sense? A ratio like ROAS is usually displayed as a number (3.2x), while profit margin works better as a percentage (28%).
Create a custom metric
Step 1 — Open the Custom Metric Builder
From the metrics section of your dashboard or reports, click Create custom metric. You'll see the Custom Metric Builder with two main sections: Name & format and Build your formula.
Step 2 — Name your metric
In the Name field, type a clear, descriptive name. This is what you'll see in dashboards and reports.
Good examples:
Marketing Efficiency RatioCustomer Acquisition CostProfit per Session
Avoid: generic names like Metric 1, Test, or Custom. Your future self will thank you.
Step 3 — Add a description
In the Description field, explain what the metric measures. This helps your teammates understand the metric when they see it in a dashboard.
Example: "Total revenue generated per dollar spent across all paid marketing channels."
Step 4 — Choose the result format
Pick how the result should be displayed:
Currency ($) — for monetary values like revenue, cost, or AOV.
Percentage (%) — for ratios expressed out of 100, like conversion rates or margins.
Number — for ratios, multipliers, or counts (like
3.2xROAS or1.5items per order).
Step 5 — Set the trend indicator
The trend indicator tells Cifra how to color-code changes over time.
Positive — higher is better (revenue, AOV, ROAS).
Negative — lower is better (refund rate, CAC, cost per click).
Neutral — context-dependent, no inherent direction.
Cifra uses this to show the right color when your metric changes — green for improvement, red for decline.
Step 6 — Build the formula
In the Formula area, combine metrics, filters, and operators to define your calculation.
To add a metric: click + Add metric or type the metric name directly into the formula. Metrics are grouped by source (Sales, Customer, Behavior, Profit, Marketing).
To filter a metric: click the filter icon next to any metric to add conditions (for example, Channel is Online Store). Each metric can have its own filters.
To add an operator: click an operator button (/, ×, +, −, (, )) or type it from your keyboard.
To edit your formula: click anywhere to position your cursor, select segments with click + drag or Shift + click, and use Cmd/Ctrl + C / X / V to copy, cut, and paste — within the same formula or across custom metrics.
Example formulas:
Goal | Formula |
Average order value |
|
Profit margin |
|
Marketing efficiency |
|
Customer acquisition cost |
|
Step 7 — Review the preview
The preview on the right shows what your metric will look like once saved. Change the date range if you want to see how it performs across different periods.
If the preview shows — or N/A, it means there's not enough data to calculate the metric for that period. Try a different range or check that all the metrics in your formula have data.
Step 8 — Save the metric
Click Save metric. Your new custom metric will now be available throughout Cifra — in dashboards, reports, and the metrics picker.
Edit a custom metric
You can update the name, description, format, or formula of any custom metric you've created.
Go to the metrics section and find your custom metric.
Click the pencil icon to open the builder.
Make your changes and click Save metric.
Important: changes apply retroactively. If you update a formula, all dashboards and reports using that metric will reflect the new calculation. Historical values may change too.
Delete a custom metric
If the metric isn't being used
Find the metric and click the trash icon.
Confirm the deletion in the modal.
The metric is removed permanently.
If the metric is being used in dashboards or reports
When you delete a metric that's in use, it will be removed from every dashboard and report where it appears. The dashboard or report itself won't be deleted, but the widgets or columns using the metric will disappear.
Click the trash icon next to the metric.
Review the confirmation modal.
Click Delete to confirm.
This action can't be undone. If you want to keep the metric available but stop using it somewhere, remove it from the specific dashboard or report instead.
Formula tips
Parentheses control the order
Without parentheses, Cifra follows standard math order: multiplication and division first, then addition and subtraction.
Without parentheses: Gross Sales - Total Discounts / Total Orders → This divides Total Discounts by Total Orders first, then subtracts that from Gross Sales.
With parentheses: (Gross Sales - Total Discounts) / Total Orders → This subtracts first, then divides — which is likely what you meant.
When in doubt, use parentheses.
Division by zero
If a metric in your denominator equals zero for a given period, the preview will show —. This is expected — dividing by zero isn't a valid operation.
Metrics with similar names
Some metrics have variations (AOV - New Customers, AOV - Returning Customers). Pick the one that matches what you want to measure. The dash in the name is part of the metric, not a subtraction operator.
Nested custom metrics
You can use a custom metric inside another custom metric's formula. For example, create Profit = Net Revenue - Cost of Goods, then use Profit inside Profit Margin = Profit / Net Revenue.
Common use cases
Marketing and advertising
True ROAS:
(Gross Sales - Total Discounts - Total Refunds) / Blended Ad SpendMER (Marketing Efficiency Ratio):
Gross Sales / (Blended Ad Spend + Google Ads Spend + Meta Ad Spend)Blended CAC:
(Blended Ad Spend + Custom Expenses) / (Total Orders - New Customers)
Profitability
Contribution margin %:
(Net Revenue - Cost of Goods - Blended Ad Spend) / Net RevenueNet profit:
Net Revenue - Cost of Goods - Blended Ad Spend - ExpensesProfit per session:
(Net Revenue - Cost of Goods - Blended Ad Spend) / GA4 Sessions
Customer behavior
New vs returning AOV gap:
AOV - New Customers - AOV - Returning CustomersRepeat rate:
(Total Orders - New Customers) / Total OrdersLTV approximation:
(Gross Sales / Total Customers) × (Total Orders / Returning Customers)
Operations
Refund rate:
Total Refunds / Gross SalesReturn items rate:
Total Returned Items / Total Ordered ItemsDiscount impact:
Total Discounts / Gross Sales








