Conversion rate KPI: funnel steps, formula and DAX

How to calculate conversion rate, conversions divided by sessions or visitors, step-by-step funnel conversion from visit to purchase, by channel and device, sessions against users as the base, statistical noise on small numbers, the DAX on web analytics data, and a funnel chart.

Short answer: conversion rate = conversions / the base that could convert. For a shop, usually orders / sessions: 1,800 orders from 60,000 sessions = 3.0%. Pick the base once and say it: per session (each visit counts) or per user (each person counts once) give different numbers. Break the overall rate into funnel steps (visit, product view, add to cart, checkout, purchase): each step's rate shows where people drop off, which one overall number cannot.

A conversion rate going from 3.0% to 2.6% is a 13% drop in sales at the same traffic. The funnel shows whether the cart, the checkout or the traffic mix caused it.

Nothing loads from YouTube until you press play. Then Google receives your IP address and may set its own storage. Narrated with an AI-generated voice. Privacy

How does a funnel break it down?

StepSessionsStep conversionFrom visit
Visit60,000100%
Product view33,00055.0%55.0%
Add to cart6,60020.0%11.0%
Checkout started3,30050.0%5.5%
Purchase1,80054.5%3.0%
September, sessions
60KVisit33KProduct view55%6,600Add to cart11%3,300Checkout started6%1,800Purchase3%
Sessions by funnel step

The biggest loss in absolute terms is between product view and add to cart (26,400 sessions); the checkout loses 45% of those who start it, often the easiest step to fix.

What is the DAX?

From a sessions table with one row per session and flags for the steps reached (or an events table, counted by distinct session):

Sessions = COUNTROWS ( Sessions )
Product View Sessions = CALCULATE ( [Sessions], Sessions[Viewed Product] = TRUE () )
Cart Sessions = CALCULATE ( [Sessions], Sessions[Added to Cart] = TRUE () )
Checkout Sessions = CALCULATE ( [Sessions], Sessions[Started Checkout] = TRUE () )
Purchase Sessions = CALCULATE ( [Sessions], Sessions[Purchased] = TRUE () )

Conversion Rate = DIVIDE ( [Purchase Sessions], [Sessions] )
Cart to Checkout % = DIVIDE ( [Checkout Sessions], [Cart Sessions] )
Checkout Completion % = DIVIDE ( [Purchase Sessions], [Checkout Sessions] )

-- per user instead of per session
User Conversion Rate =
DIVIDE (
    CALCULATE ( DISTINCTCOUNT ( Sessions[User ID] ), Sessions[Purchased] = TRUE () ),
    DISTINCTCOUNT ( Sessions[User ID] )
)

From an events table with one row per event, count sessions per step with CALCULATE ( DISTINCTCOUNT ( Events[Session ID] ), Events[Event] = "add_to_cart" ).

Which breakdowns explain a change?

  • Channel: email and brand search convert far better than paid social; a traffic mix shift moves the total without anything changing on the site.
  • Device: mobile usually converts lower; a mobile checkout bug shows here first.
  • New and returning visitors.
  • Landing page or product category.

When the total moves, check the mix first: if each channel's rate is flat but the share of low-converting traffic grew, the site is not the problem.

How do you tell a real change from noise?

With 200 sessions a day, a few orders more or less swing the daily rate by a point. Look at weekly rates, show the session count, and for A/B tests use a significance test. A rough 95% range for a rate p on n sessions is p ± 1.96 × √(p × (1 - p) / n): for 3% on 60,000 sessions that is ±0.14 points; on 2,000 sessions, ±0.75.

What goes wrong?

  • Mixing bases. Orders per user against orders per session; say which.
  • Bots and internal traffic. Inflate sessions and lower the rate; filter them out.
  • Cookie consent. Visitors who decline tracking are missing from sessions but present in orders, which inflates the rate; compare against the order system.
  • Averaging daily rates. Divide total conversions by total sessions.

Where can you check this?

Where do you start?

Build the five-step funnel by week and by device, and fix the step with the biggest loss first. CTR, CPC and CPM cover the ads that bring the visits.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.