Stats Compass
Home Commerce Blog

How the sale checker works

The sale checker answers one question: did your last Shopify sale make money? Here's how it works, where it can be wrong, and how it did on real data.

How it works

The checker works out what you'd have sold without the sale, from your own report. It uses the level of the four weeks before it and the shape of your year and your week. What you sold, minus that, is what the sale added. The range is where the true figure probably lies, nine times in ten. It says "Real change" only when the difference is bigger than your sales usually move on their own.

For break-even it uses the margin you type, the discount in your report, any price cut and any ad spend you add. A deeper discount earns less on each sale, and ads have to be paid for. So the sale needed more extra sales to pay for itself.

"It made money" means even the low end of the range covered break-even. "It lost money" means even the high end fell short. Otherwise it can't tell: the sale could have gone either way.

Its limits

How it did on real data

We tested it on two years of a real UK online retailer's daily sales (the UCI Online Retail II dataset). We used hundreds of dates with no sale, and added sales of a known size:

That retailer sold mostly to wholesalers, in fewer and larger orders than a typical Shopify store. So its daily sales jump around more than most.

Your file and the download

The checker runs in your browser. Your file is read on your computer and isn't uploaded anywhere. To run, the page downloads Python and its statistics libraries from jsdelivr, about 32 MB the first time. It starts as the page opens, so it's usually ready by the time you've exported your report. On a slow connection the first visit can take a few minutes. After that your browser keeps a copy. If your browser's data saver is on, the download waits until you choose a file. See our privacy policy.

Checking sales for several stores?

Tell me when the multi-store version is ready.

Sent by Stats Compass using Buttondown. You'll get a confirmation email first. Privacy notice

Check your sale →