TapCub is live — analytics, insights and live chat, free on one platform
Help center

How do I create a custom metric?

Save a metric once in All-platform analytics › Behavior › Metrics & SQL, as an event aggregation or a formula such as buyers ÷ active people, then reuse it in any analysis or dashboard.

Product analytics2 min readLast updated Nov 4, 2026TapCub team

Still have a question?

Could not find it? A person reads every message, usually within a few hours on business days.

Chat with us

Short answer

Open All-platform analytics › Behavior › Metrics & SQL and create a metric: a built-in, an event with an aggregation, or a formula using TOTALS, UNIQUES, AVERAGE, ACTIVE, PROPSUM, PROPAVG or {id} of a saved metric. Choose a format, save, and pick it in any analysis or dashboard.

Short answer

Open All-platform analytics › Behavior › Metrics & SQL and create a metric. Choose a built-in metric, an event with an aggregation, or a formula that combines them. Set the format (number, percent, duration or currency) and save. The saved metric can then be picked in any analysis and placed on dashboards, so the whole team uses the same definition.

The three kinds

KindWhat it isExample
Built-inA standard measureActive people
Event + aggregationOne event, aggregated one waypurchase, property sum of revenue
FormulaArithmetic over aggregations and saved metricsBuyers ÷ active people

Event aggregations: total, uniques, average per subject, active percent, sessions, first time, and on a property: sum, average, median, 90th percentile, distinct count, min and max.

Write a formula

Formulas use arithmetic, constants and these functions: TOTALS, UNIQUES, AVERAGE, ACTIVE, PROPSUM, PROPAVG, plus {id} to reference a saved metric.

Example, a paying rate: save "Buyers" as the purchase event with uniques, note its id (say 12), then create a formula metric {12} / ACTIVE and set the format to percent.

A formula may reference saved metrics that are not formulas; referencing another formula metric is rejected.

Filters and identity

A metric can carry its own filters (for example only country = US) and its own identity (person, visitor or account). Leave identity empty and it follows the analysis that uses it.

Check and reuse

  • The editor previews the last 28 days as a trend before you save.
  • In an analysis, pick the saved metric as a measurement. An analysis holds up to 12 measurements, and a saved metric uses one.
  • The metric list shows how many places reference each metric.

Common questions

Can I delete a metric that is in use? You will be asked to confirm; forcing it breaks the analyses that reference it.

Why can a teammate not use my metric? Members with hidden properties cannot use a metric that references those properties.

Can I alert on a custom metric? Start from monitors; see set up traffic alerts.

For questions a metric cannot express, query your data with SQL.

Did this answer your question?

We use your answers to fix and expand this page.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics