PostHog Handbook Library / Growth

657 words. Estimated reading time: 3 min.

Metric conventions

We're moving our canonical numbers into PostHog's semantic layer so that any person or agent asking "what's our MRR?" gets the same answer without having to know how it's calculated.

That only works if metrics are named well enough to find and distinguish. These are the ground rules for creating one.

Names are reserved but not permanent. You can't rename a metric, but you can redefine one under the same name, and a deleted name can be reused later with a new definition.

1. Name shape

<subject>[_<method>][_<segment>][_by_<dimension>]

Fixed order, so names sort and scan predictably. Only subject is required.

| Slot | What it says | Values in use | |---|---|---| | subject | What's measured, named as specifically as it needs to be | mrr, arr, nrr, gdr, logo_retention, paying_customers | | method | How it's computed over time | current, monthly, quarterly, monthly_rolling, quarterly_annualized | | segment | Population filter | managed, ever_core | | by_<dimension> | Breakdown column the metric returns, one row per value | by_product |

The name says what the number is. Other info about the metric like who reads it, what it was built for etc may change while the number stays the same, so a name built on them may be inaccurate later on.

Don't name a metric after where it's published. If two similar metrics differ because of different windows or different customer segments, put that in the name instead:

nrr_monthly_rolling
nrr_quarterly_annualized
nrr_quarterly_annualized_managed
gdr_monthly_rolling

Don't name a metric after the workflow that prompted it. A metric built for a growth review is still just MRR by product for the month, and the next person curious about that product wants the same number — they shouldn't need to know where it came from to find it.

The test: would this number exist if the workflow didn't? If yes, the workflow doesn't belong in the name. Something like a per-run cost for a specific internal system is different. There the system is the thing being measured, so it's part of the subject.

One metric with a dimension beats many near identical metrics. If the same number exists for every product, make one metric that returns product as a column and filter it, rather than one metric per product. Give the agent the path to the number and let it narrow down.

The dimension goes last in the name as by_<dimension>: mrr_monthly_by_product returns (month, product, mrr). A segment filters the population, a dimension is a column the metric returns, so nrr_quarterly_annualized_managed is one number per cohort while mrr_monthly_by_product is one row per product.

Adding a value that isn't in the table? Add it to the table.

No units in the name set the unit field instead (usd, percent).

2. Make the difference from siblings visible

The name doesn't need to explain what NDR is, that's what the description is for, and our retention metrics and revenue adjustments pages cover some of the underlying methodology. The name needs to make clear how yours differs from the other similar metrics. If you can't tell two siblings apart without opening both, the qualifier needs work, or it needs a row in the table above.

3. Shared logic goes in a view, not a second copy

There's no way to define a metric in terms of another metric today. So if you're about to paste the same expression into a second metric, create a view instead and have both read from it.

This matters a lot, we already have copies have drifted apart from each other!

One thing to know: editing a metric sends it back to proposed for re-approval, but editing a view doesn't. A view carrying shared business logic moves every metric downstream of it silently, so it needs an owner.

Canonical URL: https://posthog.com/handbook/growth/revops/metric-conventions

GitHub source: contents/handbook/growth/revops/metric-conventions.md

Content hash: 017dd16026ffba5f