> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Product Margin Metrics

> Measure product profitability using cost of goods data from Shopify. Track margin percentages to optimize pricing and product mix decisions.

Product margin metrics help you understand the profitability of your products by comparing revenue to cost of goods sold. These metrics use product cost data from Shopify to calculate margins.

## Available Metrics

| Metric                                                                              | Description                                        |
| ----------------------------------------------------------------------------------- | -------------------------------------------------- |
| [Product Margin %](/reference/metrics/orders/product-margin/product-margin-percent) | Percentage of revenue retained after product costs |

## Data Requirements

Product margin calculations require cost of goods data in Shopify. Configure product costs through:

* **Shopify inventory settings** — Set cost per item on product variants
* **Shopify metafields** — Store custom cost data for advanced scenarios

[Learn how to configure contribution margin →](/get-started/configure-contribution-margin)
