How Product Costs Work
SourceMedium pulls product costs from Shopify’sCost per item field at the variant level. This enables:
- Order-level profitability: Gross profit per order
- Customer-level LTV: Profit-based lifetime value
- Product-level margins: Gross margin by product/collection
SourceMedium tracks cost changes over time. Orders use the product cost that was active when the order was placed.
Where Costs Appear
| Module | Cost Usage |
|---|---|
| Executive Summary | Gross profit, contribution margin |
| LTV & Retention | Profit-adjusted LTV |
| Product Performance | Product-level margins |
| Orders Deep Dive | Order-level profitability |
Setting Up Product Costs
Common Scenarios
Add Shopify costs
Set up costs from Shopify product data
Historic costs
Backfill costs for older orders
Override costs
Override Shopify costs with custom values
Non-Shopify costs
Add costs for non-Shopify products
FAQs
What should I include in product cost?
What should I include in product cost?
Use landed cost: product cost + inbound shipping + duties/tariffs. This gives the most accurate gross margin.
How do I handle cost changes over time?
How do I handle cost changes over time?
Update the cost in Shopify when it changes. SourceMedium tracks historical costs—old orders keep old costs, new orders use new costs.
Will changes appear immediately?
Will changes appear immediately?
Cost changes typically reflect in dashboards within 24 hours after the next data sync.

