Product
Auto Draft Mail Books Ecommerce Assistant Integrations
Resources
Answers Sales tax by province Help centre Calculators
Pricing Partners Demo Security Download Log in Start free

Help › Ecommerce

Track product costs (COGS)

Updated

Open this in Talisk HQ

When you track product costs, HQ books cost of goods sold as your Shopify payouts post, so your Profit & Loss shows real margin.

To work out the margin or markup on one product before you price it, use the free margin and markup calculator.

It is off until you ask for it. Once you connect Shopify, Books Health offers it on a card, and the card's See Both Options in Business Settings button takes you straight to the switch. You can also get there yourself: open the book in Settings › Business, click Edit, and under How you track the cost of stock use Track cost of goods sold from Shopify product costs. The same checkbox turns it back off.

This is one of two ways to track the cost of your stock. The other is counting it, which needs no per-product data entry and suits most sellers better to start with. See "Two ways to track the cost of your stock".

Shopify keeps a product's cost in your store's inventory records, so costs reach HQ only from a store that granted HQ access to them, and most connected stores have not. The Ecommerce overview says which fix applies to your store. Only if it says the store needs reconnecting, reconnect it from Settings › Business and approve access. If it says to enter costs in HQ, use Missing Costs below, and do not reconnect that store.

Costs sync from Shopify, but some products won't have one. To fill the gaps:

  1. Go to Ecommerce › Products, then Missing Costs.
  2. Enter each product's cost and Save, or import a sku,cost CSV in bulk.

Orders missing a cost are held out of COGS until you supply it (HQ never guesses), then catch up on the next payout. With this on, categorize stock-purchase bills to your inventory account rather than a cost account, so cost is recognized when the sale posts. Mark that account first in Books › Accounting › Chart of Accounts with the Stock button.

Sales a Shopify Payout Does Not Carry

Not every sale comes through a Shopify Payments payout. A sale paid in cash, by e-transfer, cheque or bank transfer, or cash on delivery, a sale you marked paid by hand in PayPal, one taken on a card terminal you classified, an order on payment terms raised as an invoice, and an order paid wholly by gift card are booked by their own rails. HQ takes each one's stock out of inventory too, exactly once, dated with the sale, at the cost its products carried on the day it first relieved them.

  • If the sale is cancelled (its invoice cancelled, or the order voided in Shopify), HQ puts the stock back, dated with the sale.
  • If Shopify records goods coming back on the shelf (a refund marked as restocked), HQ puts back the cost of what came back, dated with the refund.
  • If a sale is carried again on a new invoice after a cancel, its stock is taken out again at the same cost, never twice.
  • If you update a terms order's invoice from an order that changed in Shopify, HQ moves the stock by the units that changed: added units at their cost now, dated the day you updated it, and removed units back at the cost they were taken out at, dated with the sale.
  • A sale dated inside a stock count you posted is left to that count, since the count already measured that shelf.

When HQ cannot take a sale's stock out, Books Health shows it on one card, grouped by reason, with each order named by its store order number, date and amount: a product with no cost (add it in Missing Costs and HQ catches up on its next pass), no inventory or cost of goods account (mark one in Settings › Business), a sale in another currency, an order Shopify voided that an invoice still carries, or a post that failed five times (choose Try Again). Its footer counts, by month, the sales a stock count covers, the sales made while cost tracking was off, which HQ does not take out later, and the sales a Shopify payout names that HQ waits on until that payout is in your books (the payout then takes their stock out, or HQ does). While any such sale sits in a period, the Ecommerce overview says so under its figures and does not claim its cost of goods is complete.

HQ records cost as stock sells, but it cannot see your shelves. Once a year or a quarter, count your stock. Record what it was worth in Books › Accounting › Stock counts to bring your books to the counted figure, or record just the date in Settings › Business under Stock Last Counted so your reports say how recently the figure was checked.

Which Products Actually Make You Money

Ecommerce › Products carries two columns once any product has a recorded cost:

  • Contribution is revenue less product cost for the units sold in the period. It is what that product put in your pocket before overheads.
  • Margin % is that contribution as a share of the product's own revenue.

The table is sorted by contribution by default, not by revenue, and the gap between those two orderings is the point. Sellers routinely find the product at the top of the revenue list sits well down the contribution list, because volume and margin are different questions. Click either heading to sort the other way, and click Revenue to get the old ranking back.

The two columns rank differently on purpose. A product can be your biggest contributor in dollars while a small one beats it on percentage. Both are worth knowing: one tells you what pays the bills this month, the other tells you what to sell more of.

Why a Product Shows a Dash

A dash means HQ has no recorded cost for that product, so there is no margin to show. It will not fill the gap with a zero, because a zero cost would report the product as pure profit.

A product also shows a dash when only some of the units you sold in the period have a cost, which happens when a cost was added part-way through. Showing a margin there would compute it against a cost that is too low and flatter the product. These are exactly the products Missing Costs lists, so the two screens always agree.

Products with no recorded cost sort to the bottom of the table in either direction, ranked by revenue among themselves. An unknown is not a small number, and the biggest unknowns are the ones worth costing first.

Under the table HQ says how many of your products the margin covers, for example "Margin shown for 11 of 24 products", together with the sales value behind the gap. One product's cost entered is enough to see that product's margin, so there is no need to finish the whole list before the column is worth anything.

If your book does not track cost of goods and has no recorded costs at all, these columns are not shown. An empty column of dashes tells you nothing, and HQ does not ask you to turn on something you have not asked for.

Good to know: Cost tracking is Shopify-only, and an order with no cost is held out of COGS entirely rather than guessed, so fill missing costs to book it. A saved cost only fills a blank; it never overwrites a cost that synced from Shopify. The Contribution and Margin % columns are a management estimate from recorded product costs, not the GL-derived gross profit in your Profit & Loss, and a product shows no margin at all unless every unit of it sold in the period has a recorded cost.