WebmasterID logoWebmasterID
Reports & dashboards

Custom and calculated metrics in reports

GA4 lets you define custom metrics (registered from numeric event parameters) and calculated metrics (formulas combining existing metrics, like revenue per user). They extend reporting beyond the built-ins, but calculated metrics inherit the scope and null-handling of their inputs, which is where formulas go wrong.

Verified against primary sources

What this means

Custom metrics are registered from numeric event parameters you send (for example, a 'score' or 'items_loaded' value), making them available in reports. Calculated metrics are formulas built from existing metrics and constants — revenue divided by active users, for instance — defined once and reused.

Scope and division pitfalls

A calculated metric inherits the scope of its operands; combining an event-scoped count with a user-scoped count produces a ratio that doesn't mean what you expect. Division is the classic trap: when the denominator metric is zero or null for a row, the result is undefined or misleading. Define the formula against operands of compatible scope, and decide how zero/null denominators should read before publishing the metric.

How it appears in analytics and logs

A custom metric shows a registered event-parameter value; a calculated metric shows a formula result. A wrong figure usually means a scope mismatch between operands or division by a metric that is zero or null.

Diagnostic use case

Report on a business-specific number — revenue per active user, a custom value from an event parameter — by registering a custom metric or composing a calculated metric.

What WebmasterID can help detect

WebmasterID lets you derive first-party metrics from your own events without third-party data, keeping custom calculations on owned signals.

Common mistakes

Privacy and accuracy notes

Custom and calculated metrics aggregate numeric values; they must not carry personal data in parameters. Thresholding still applies to the rows they appear on.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.