> ## 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 in Analytics v2

> Understand where discount values come from in ABConvert Analytics v2 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.

In Analytics v2, these roll up into `total_discounts`, which powers all discount KPIs.

## 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`  |

## 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.
