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

# Discount Metrics

> Understand where discount values come from in ABConvert and how to use discount metrics to evaluate offer test impact.

Discount metrics quantify how much margin your variant gives away. They are essential for offer tests where discount behavior is the main lever.

## Where do discount values come from?

ABConvert calculates total discounts from Shopify order data using discount allocations.

For each order, discount value is aggregated from:

* **Product discount value** from line-item discount allocations.
* **Order discount value** that Shopify allocates across line items.
* **Shipping discount value** from shipping-line discount allocations.

These combine into `total_discounts`, which powers all discount metrics.

## What do discount metrics mean?

| Metric | Definition | Formula |
| - | - | - |
| Discounted Order Rate | Share of orders that used any discount. | `Discounted Orders / Orders × 100` |
| Average Discount Value | Average discount amount per order. | `Total Discounts / Orders` |
| Revenue Discount Percentage | Total discounts as a share of revenue. | `Total Discounts / Total Revenue × 100` |
| Profit Discount Percentage | Total discounts as a share of profit. | `Total Discounts / Total Profit × 100` |

## With a product group

When you apply a [product group](https://docs.abconvert.io/analytics/product-groups.md), discount metrics count only the order lines of products in the product group. An order counts as discounted when at least one of those lines received a discount. A discount only on shipping, or only on products outside the product group, does not count. Revenue Discount Percentage uses the product group's revenue before discounts.

## Why are these metrics critical for offer tests?

In offer tests, conversion or revenue lift is only half the story. You also need to measure discount cost.

Use these metrics together to decide whether a variant is truly better:

* Use **Discounted Order Rate** to see how broadly the offer is being used.
* Use **Average Discount Value** to see the typical cost per order.
* Use **Revenue Discount Percentage** and **Profit Discount Percentage** to quantify margin impact.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.