How to calculate Store Conversion Rate
Store conversion rate is the share of people entering a physical store who make a purchase.
Formula
Store conversion rate = transactions ÷ visitors counted at the doorSQL query
This example assumes: store_traffic(store_id bigint, day date, visitors bigint), store_transactions(store_id bigint, day date, transactions bigint). It is written in PostgreSQL syntax; date functions differ slightly in MySQL, BigQuery and SQLite, and your column names will differ from these.
SELECT t.store_id,
SUM(x.transactions) AS transactions,
SUM(t.visitors) AS visitors,
SUM(x.transactions)::numeric / NULLIF(SUM(t.visitors), 0) AS conversion_rate
FROM store_traffic t
JOIN store_transactions x ON x.store_id = t.store_id AND x.day = t.day
WHERE t.day >= CURRENT_DATE - 30
GROUP BY t.store_id
ORDER BY conversion_rate DESC;Common mistakes that make Store Conversion Rate wrong
- Door counters count staff and delivery drivers unless they are filtered out.
- A group buying together is one transaction but several visitors.
- Days when the counter was offline must be excluded from both sides of the ratio.
Ask for Store Conversion Rate in plain English
Instead of writing the query yourself, you can type the question. SchemaChat turns it into SQL against your connected database or uploaded file, runs it, and shows the SQL and the figures it used so you can check the answer before you share it. It does not replace your judgement about the definition: check that the query matches the formula your business uses.
- What was the conversion rate at each store over the last 30 days?
- Which stores have the lowest conversion on weekends?