Metrics
getting-started/metrics.md

Metrics

The general structure of how Kleio organizes your data — not a full list of every available metric.

Kleio matches Shopify’s Total Sales to the cent, but defines a few rows differently on purpose. Here’s why.

The P&L Waterfall

MetricDefinition
Gross SalesProduct + shipping revenue before discounts are subtracted.
DiscountsTotal discounts applied to products and shipping lines.
=SalesGross Sales − Discounts. The initial order value before returns.
ReturnsRefunded amount for products and shipping.
+Return FeesFees charged to customers for returns.
=RevenueSales − Returns + Return Fees. What’s left in your bank account after returns. Matches Shopify’s Total Sales incl. tax.
TaxNet tax collected (sale tax − refunded tax) on products and shipping.
COGSCost of Goods Sold.
=Contribution Margin 1Revenue (excl. tax) − COGS. Your product margin.
Variable CostsCosts that vary with sales volume (shipping, payment processing, etc.).
=Contribution Margin 2CM1 − Variable Costs. Your margin after COGS and all variable costs.
Ad SpendTotal advertising and marketing spend.
=Contribution Margin 3CM2 − Ad Spend. Your margin after all COGS, variable costs, and ad spend.
Fixed CostsCosts that don’t vary with sales volume (rent, salaries, etc.).
=Net ProfitCM3 − Fixed Costs. Your bottom line profit.

Variable Costs Breakdown

Variable costs can be broken down into:

CategoryDefinition
Shipping CostsShipping and fulfillment costs including delivery, packaging, and logistics.
Returns CostsCosts related to processing returns and refunds.
Payment CostsPayment processing fees from Stripe, PayPal, Shopify Payments, etc.
Customs CostsCustoms duties, import taxes, and international shipping fees.
Fulfillment CostsFulfillment costs including pick, pack, and warehouse handling fees.
Other VariableOther variable costs not categorized above.
Agency FeesMarketing agency fees calculated as a percentage of ad spend.

Ad Spend Breakdown

Ad spend can be broken down by platform:

PlatformDefinition
Google AdsAd spend from Google Ads.
Meta AdsAd spend from Meta (Facebook/Instagram) Ads.
Snapchat AdsAd spend from Snapchat Ads.
TikTok AdsAd spend from TikTok Ads.
AppLovinAd spend from AppLovin.
GoAffProAd spend from GoAffPro affiliate program.
Other MarketingFixed marketing costs (agency fees, banner ads, etc.) allocated to ad spend.

Tax Toggle

You can switch between viewing metrics with or without tax using the tax toggle in the filter settings. This affects all metrics from Gross Sales through Revenue.

Metrics below Revenue (COGS, contribution margins, variable costs, ad spend, fixed costs, net profit) always exclude tax regardless of the toggle.

Comparing with Shopify

Most users compare Kleio’s numbers to Shopify’s Finance Summary overview. Here, Kleio’s Revenue equals Shopify’s Total sales down to the cent (remember that Shopify shows Total sales incl. tax and you can toggle tax on/off in Kleio).

The rows above (Gross sales, Discounts, Returns, Shipping) won’t always line up one-to-one with Shopify because Shopify excludes tax and anything shipping-related in those rows.

Shopify Finance Summary rowWhy Kleio’s number is different
Gross salesShopify only counts product sales. Kleio counts product sales and shipping revenue.
DiscountsShopify only counts product discounts. Kleio also counts shipping discounts.
ReturnsShopify only counts product refunds. Kleio also counts shipping refunds.
Shipping chargesShopify gives shipping its own row, combining shipping revenue and shipping refunds into one line. Kleio counts shipping inside the rows above instead.
Total salesMatches Kleio’s Revenue when the tax toggle is set to incl. tax. Kleio defaults to your Shopify tax-display setting, so if your store displays prices excl. tax, switch the toggle to “incl. tax” to see the match.

If you’ve enabled Skip orders with 0 in sales under Settings → Filters, your numbers might also differ from Shopify because free/100%-discount orders are excluded entirely in Kleio while Shopify still counts them.

Why Kleio includes shipping in the top rows

The final Revenue number comes out the same either way. We just think it’s more correct to include shipping in everything — shipping is money hitting your bank account just like product revenue, and for many stores it’s a meaningful revenue lever, so we want to be able to analyze it too.