# Metrics based on transactions

A metric is based on an event and helps to **analyze the number of collected events** (or their mean/average) and compare it to a baseline, generally the total number of unique visitors or the total number of sessions. For more information about definitions, please refer to the following [article](/reporting-and-performances/reporting/data--reports-generalities-and-definitions.md).

In this article, you'll find detailed information about all AB Tasty transactional metrics:

* [Transaction rate](#id-01gtvwn6nsjk6dtxqp7n21hdac)
* [Average order value](#id-01jb9rz8afaxydaw68j7zrn38a)
* [Average product quantity](#id-01jb9rcb3758cjxnrg3kg7mecj)
* [Revenue](#h_01jb9rj3z9615yjwj9bvvgax6d)
* [Revenue uplift](#id-01jb9rpqa2es19p15aef95k3e9)
* [Revenue uplift (potential)](#id-01jb9rs29ka2z898dd5n72yqas)

## Metrics based on “transaction” <a href="#id-01gqj84ybzzemka8zarzrbcwmr" id="id-01gqj84ybzzemka8zarzrbcwmr"></a>

You need to set up the **transaction tag** on your website, it collects transactions from your checkout page. For more information, please refer to this [***article.***](broken://pages/Vcf2nmWwkzOAg642d5hu)

### The event "transaction" <a href="#id-01jb9s5n1saakaf1d4g32zm11c" id="id-01jb9s5n1saakaf1d4g32zm11c"></a>

It’s triggered each time a visitor performs a transaction on the website and is normally sent from your checkout/validation page.

AB Tasty receives the event transaction but also all the information added in the transaction tag:

* transactionRevenue
* affiliations
* paymentMethods
* currencies
* shippingMethods
* customVariableNames
* productCategories

All this information is useful to calculate metrics and also to filter your report on specific purchases.

### Total vs unique <a href="#id-01jb9sdbezzd1s1z5dn0jkbc5m" id="id-01jb9sdbezzd1s1z5dn0jkbc5m"></a>

This data is displayed two times and with a different definition and calculation in the reports:&#x20;

* **Total transactions**: total number of transactions/single purchases performed during the campaign for each variation
* **Unique transactions**: total number of different buyers (unique visitors who have performed one transaction at least)\
  In this example, as the unique transaction and the total transactions column are not equal, we conclude that some unique visitors have purchased more than one time during the campaign duration, in both original and variation groups.\
  In the [reporting](https://support.abtasty.com/hc/en-us/articles/6397701089180), select *metric view: Raw data*

\ <br>

<figure><img src="/files/zT4aZIGzDmTO1z0EokkI" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/gKOvFUVQPe4iSnQWxrSn" alt="" width="563"><figcaption></figcaption></figure>

*AB Tasty variable :* transactions

## Transaction rate <a href="#id-01gtvwn6nsjk6dtxqp7n21hdac" id="id-01gtvwn6nsjk6dtxqp7n21hdac"></a>

In the [reporting](/reporting-and-performances/reporting/campaign-reporting.md), select:

* *metric view: Overview*\
  \&#xNAN;*or*
* *metric view: Transaction detailed data*

The transaction rate is always automatically calculated **at the visitor level**:

![](/files/glnpFuN5iQ6BQL9EDcpl)

![](/files/MgJRgrJVqUO9WboFifza)

### **Calculation** <a href="#h_01jb9qpapvjxexya9zk406zetg" id="h_01jb9qpapvjxexya9zk406zetg"></a>

![](/files/7xkzXeE6jjvWXG0SJgRP)

*AB Tasty variable***:** transactionUserConversionRate

### **Example** <a href="#h_01jb9rxqc64hbjf9wyjah5qk19" id="h_01jb9rxqc64hbjf9wyjah5qk19"></a>

![](/files/OLjX8SXvpEeNPpNet1mb)

### **Growth between two transaction rates** <a href="#h_01jb9rxz0sdcm8083vrrhdpcar" id="h_01jb9rxz0sdcm8083vrrhdpcar"></a>

![](/files/mZ7M7E7fv3pMN6UokSJe)

In the [reporting](/reporting-and-performances/reporting/campaign-reporting.md), select: *metric view: Transaction detailed data*

In a test campaign, this metric compares two transaction rates (at a visitor level or a session level) and helps to identify the best performer between two variations (the variation is compared to the baseline, which is the original version).

The growth metrics are always displayed on all variations except on the one which is used as the ***baseline***. See this [***article*** ](/reporting-and-performances/reporting/campaign-reporting.md)to learn how to change the baseline in a report.&#x20;

#### Calculation <a href="#h_01jb9qy0af0q3kcswqbt9zcaxe" id="h_01jb9qy0af0q3kcswqbt9zcaxe"></a>

![](/files/2jB8V3SkDkirWFC7bEWf)

#### Example <a href="#h_01jb9qy46w0vh87av2jpxe5qp7" id="h_01jb9qy46w0vh87av2jpxe5qp7"></a>

![](/files/xptJ1kEkrH4j5IrLfdhP)

## Average order value <a href="#id-01jb9rz8afaxydaw68j7zrn38a" id="id-01jb9rz8afaxydaw68j7zrn38a"></a>

In the [reporting](/reporting-and-performances/reporting/campaign-reporting.md), select: *metric view: Overview*

The average order value calculated **on all the recorded purchases** in the variation.<br>

<figure><img src="/files/xfcy8Z7V5ObhM6Ll8hLo" alt="" width="563"><figcaption></figcaption></figure>

### **Calculation** <a href="#h_01jb9r36dsg82728m1zd4tj95y" id="h_01jb9r36dsg82728m1zd4tj95y"></a>

![](/files/QlZa9KwrOyCruSNqUMJS)

### **Example** <a href="#h_01jb9r3barqx1xke1ks62sd334" id="h_01jb9r3barqx1xke1ks62sd334"></a>

20 different transactions recorded, for a total amount of $10,000.

Average order value = $10,000/ 20 = $500

### **Growth between two average order value** <a href="#id-01jb9r5yyzs2tm25ffkq85m9gt" id="id-01jb9r5yyzs2tm25ffkq85m9gt"></a>

In a testing campaign, this metric compares two average order values and helps to identify the best performer between two variations (the variation is compared to the baseline, which is the original version).

In the [reporting](/reporting-and-performances/reporting/campaign-reporting.md), select: *Average order value detailed data*

![](/files/VssNrrnRTqnaHm0MisSt)

#### Calculation <a href="#h_01jb9r7exgsrcw3vccym35qrtv" id="h_01jb9r7exgsrcw3vccym35qrtv"></a>

Average order value variation - average order value baseline

#### Example <a href="#h_01jb9r7kc8gwjthy2qxd24732q" id="h_01jb9r7kc8gwjthy2qxd24732q"></a>

Average order value original = $154.20

Average order value variation = $153.90

Average order value growth = $154.20 - $153.90 = $+0.30

## Average product quantity <a href="#id-01jb9rcb3758cjxnrg3kg7mecj" id="id-01jb9rcb3758cjxnrg3kg7mecj"></a>

In the [reporting](/reporting-and-performances/reporting/campaign-reporting.md), select: *metric view: Average order value detailed data*

Average product quantity is calculated **on all the recorded purchases** in the variation.

![](/files/j7IeQ3dFMmOUDGa29NpS)

### **Calculation** <a href="#h_01jb9rftge4efd18x08vvmbmxh" id="h_01jb9rftge4efd18x08vvmbmxh"></a>

Total number of items purchased in all transactions / number of transactions

### **Example** <a href="#h_01jb9rfyk2z4c25mgz84xrbw65" id="h_01jb9rfyk2z4c25mgz84xrbw65"></a>

Total number of transactions = 153

Number of purchased items = 298

Average product quantity = 298 / 153 = 1.94

### **Average product price** <a href="#id-01jb9rg91vsx327tptgb9aph4k" id="id-01jb9rg91vsx327tptgb9aph4k"></a>

In the [reporting](/reporting-and-performances/reporting/campaign-reporting.md), select: *metric view: Average order value detailed data*

Average price of a purchased item per variation

![](/files/qLM5f0w7rRDO0eJds7Fn)

#### Calculation <a href="#h_01jb9rhnyjggzyp8g0kgwrpfq0" id="h_01jb9rhnyjggzyp8g0kgwrpfq0"></a>

![](/files/J4UorkkB64YEXucpiGWG)

#### Example <a href="#h_01jb9rhs0z10a3mktcw5esy2m0" id="h_01jb9rhs0z10a3mktcw5esy2m0"></a>

Total revenue: $10,000

Number of purchased items: 298

Average product price = $10,000 / 298 = $33.55

## Revenue <a href="#h_01jb9rj3z9615yjwj9bvvgax6d" id="h_01jb9rj3z9615yjwj9bvvgax6d"></a>

In the [reporting](/reporting-and-performances/reporting/campaign-reporting.md), select: *metric view: Revenue detailed data*

This is the revenue generated by each variation (turnover = sum of all transaction values).

![](/files/0ctg99KLxrEJmctKPgRT)

Please consider the variable you use to capture the amount of a purchase when you’ve installed your transaction tag, this amount doesn’t have to contain the delivery fees or taxes.

## Revenue uplift <a href="#id-01jb9rpqa2es19p15aef95k3e9" id="id-01jb9rpqa2es19p15aef95k3e9"></a>

In the [reporting](/reporting-and-performances/reporting/campaign-reporting.md), select: *metric view: Revenue detailed data*

This is the difference between the revenue of a variation compared to the revenue of the baseline (original)

![](/files/tIBDvj3pwpucFTQhPjqZ)

### **Calculation** <a href="#h_01jb9rr76pwr6knkvcrswqhbvr" id="h_01jb9rr76pwr6knkvcrswqhbvr"></a>

Revenue variation - revenue original

## Revenue uplift (potential) <a href="#id-01jb9rs29ka2z898dd5n72yqas" id="id-01jb9rs29ka2z898dd5n72yqas"></a>

In the [reporting](/reporting-and-performances/reporting/campaign-reporting.md), select: *metric view: Revenue detailed data*

This is the fictive amount that could have been earned if 100% of the traffic of the campaign had been assigned to the variation (assuming the same behavior in terms of transaction rate and average order value).

<figure><img src="/files/3Cd5yzua2dKJjzXWdUjR" alt="" width="563"><figcaption></figcaption></figure>

### **Calculation** <a href="#h_01jb9rtxrnd3p8hckqk6qnvy0z" id="h_01jb9rtxrnd3p8hckqk6qnvy0z"></a>

For an A/B Test with only one variation:

![](/files/qNr8XjEvA1mk7ouX11LW)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.abtasty.com/reporting-and-performances/reporting/metrics/metrics-based-on-transactions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
