Skip to main content
How many reach each step of a path, such as sessions that view a product, add to cart, start checkout and order, and the share of each step that reaches the next.
The preview above is the live component gallery. Open it full size to switch between desktop and phone widths.

Options

Each step is an aggregate or SQL metric with a time column that counts something: a sum, a count or a distinct count. Label each metric with a plural noun (“Product viewers”, “Carts”): the rows read “23.6% of Product viewers”.

Examples

Steps from one table of events

Give each step its own metric with a filters entry on the event:

How the numbers work

  • Each share divides two totals. Every step is counted on its own over the period, and the share under a step is its total divided by the total of the step before. Hatchmark doesn’t follow people from one step to the next: it doesn’t check that someone who ordered also viewed a product, or in which order. When steps must count the same people in order, build that into the step metrics or the data.
  • Every step is read over the same window, with the same filters, segments and period filter, and through the same last complete day, so a step whose source arrives later doesn’t lower the share of the step after it.
  • The overall share is the last step divided by the first, shown under the list with three steps or more.
  • Shares are never clamped. A step larger than the one before it, such as orders placed with Buy now that skip the cart, shows a share above 100%.
  • A step without a value shows a dash, and the shares next to it are left out.
  • Distinct counts are read per step, never added up. On a custom range, or for several values of a multiple select that can’t be added up, those steps show a dash and the card asks for a preset; the other steps keep their values.

Behavior

  • One row per step: the label and its count on top, and a bar on a full-width track below, so the empty part of the track is what was lost. Bars are scaled to the largest step.
  • Under each step after the first, its share of the step before. With three steps or more, the step after the largest drop also says how many drop off there, as a whole percent (“<1%” for a loss that rounds to zero), in the bad colour.
  • Shares under 10% have two decimals, others one.
  • Rows keep their layout on phones, and long labels and titles wrap instead of being cut.
  • Step labels appear exactly as written, so “Sessions” reads “53.7% of Sessions”.
  • With no data in the period the card says “No Sessions in this period” or “No complete day yet”. When one step’s source ends before the period starts, it names that step: “No Orders data for this period yet”. A period that ends inside the last day says it is in progress.

Checks

A SQL step is checked by its expression: one that starts with avg, median or a quantile is rejected, and any other is taken as a count. hatchmark explain <code> explains a check and how to fix it.