Skip to main content

Create a custom metric

Create a metric from your data source fields or other metrics.

Create a custom metric when the metrics from your data sources don't measure what you need, for example cost per session or cost with a client markup. A custom metric is based on fields from your data sources or other custom metrics, and you can use it like any other metric in Funnel.

​

Guidelines and requirements

  • On the Starter plan, every workspace user can create custom metrics.

  • On the Business plan, you need the Editor role in the workspace.

  • On the Enterprise plan, you need the Editor role or an advanced role that lets you edit metrics, such as Workspace Administrator or Dimensions & Metrics Editor.

  • You need at least one connected data source in the workspace. Until then, Create metric is disabled and shows "You need to connect at least one data source to create a custom metric".

  • To reuse metrics from other workspaces, expand the Create metric drop-down menu and select Copy from workspace. You can adjust the copied metrics in this workspace afterwards.

  • Each custom metric is calculated with either a formula or rules. Decide which one you need before you start.

​

Formula metrics

A formula is simple math on other fields. For example, if you define cost per session as cost divided by sessions, the formula is Cost / Sessions. Other common formulas are:

​

  • Client cost: Cost * 1.1

  • Net revenue: Revenue - Cost

  • Revenue per session: Revenue / Sessions

  • Client ROAS: Revenue / (Cost * 1.1)

​

You can't reuse other formula metrics in a formula, whether they're custom or from data sources, and you can't add conditions. To express more advanced logic, or to simplify and reuse concepts, use rules instead.

​

Rule-based metrics

Rules calculate the metric based on conditions. For example, a conversions metric with a different definition for each data source can look like this:

For Google Ads data, set the value to All conv.
For Facebook Ads data, set the value to Website Conversions.
For Google Analytics data, set the value to Goal 1 + Goal 6.

You can add multiple conditions to a rule and transform the selected values. The order of the rules matters, because Funnel uses the first rule that matches. Other examples of rule-based metrics are:

​

  • Billed cost: when Campaign contains "_A1_" then Cost * 1.1, when Campaign contains "_A2_" then Cost * 1.2, otherwise Cost

  • AppsFlyer installs: when Event name is "install" use Count

  • Revenue excluding tax: when Market contains "US" then Revenue * 0.8, when Market contains "UK" then Revenue * 0.75

  • Calculated revenue: when Campaign contains "|c7" then Total Conversions * 1.07, when Campaign contains "|c20" then Total Conversions * 1.2

​

For more conditions, transformations and examples, work with rule-based metrics.

​

Create a metric with Funnel AI

If you have access to Funnel AI in the workspace, Funnel AI can create the metric for you. You can also create custom metrics with Funnel MCP from Claude, ChatGPT or another connected AI client.

​

  1. Go to Data > Organize > Metrics.

    ​

  2. Click Create metric.

    ​

    The AI chat sidebar opens with the prompt "Let's create a custom metric."

    ​

  3. Edit the prompt to describe the metric you want, and send it.

    ​

  4. If Funnel AI shows an approval card, review the metric and approve it.

​

Create a metric manually

  1. Go to Data > Organize > Metrics.

    ​

  2. Expand the Create metric drop-down menu and select Create manually.

    ​

    Note: If you don't have access to Funnel AI in the workspace, click Create metric instead.

    ​

  3. In the Create metric dialog, select From scratch.

    ​

    Note: To start from Funnel's standard rules instead, such as workspace-wide totals for Cost, Clicks and Impressions, select With standard rules and choose the metrics. You can override the standard rules to create the logic you need in this workspace.

    ​

  4. In the Describe your field pane, fill in the metric's details:

    ​

    • Name: the name shown in metric lists and tables.

    • Description: (Optional) a longer description of what the metric is for.

    • Unit: Monetary, Number, Percentage or Duration. The unit sets how Funnel displays and interprets the value.

    • Precision: the number of decimals to display.

    • Aggregation: how Funnel combines multiple values of the metric. No aggregation counts unique values, such as the number of campaigns.

    ​

  5. In the Calculation pane, select Formula or Rules.

    ​

  6. Define the calculation:

    ​

    • Formula: type the formula in the input field. As you type, Funnel suggests the fields you can use.

    • Rules: add rules in the rule editor.

    ​

  7. Click Create.

​

What to expect

Funnel saves the metric and opens it. You can use it in Data Explorer, data warehouse exports, dashboards and anywhere else you use metrics in Funnel.

Did this answer your question?