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

# Revenue: Total Purchase Value from Your Shopify Store

> Track total revenue from completed purchases in your Shopify store. Measure conversion value from the Upstack Pixel across all attribution channels.

<Tip>
  Revenue measures the total monetary value from completed purchases tracked by the Upstack Pixel on your Shopify store.
</Tip>

## Formula

<Info>
  **Revenue** = **SUM** ( Purchase Value ) **WHERE** event = purchase
</Info>

### Formula Components

| Metric               | Definition                                                   |
| -------------------- | ------------------------------------------------------------ |
| **Purchase Value**   | The total order value from each completed purchase event     |
| **event = purchase** | Filters to only purchase events tracked by the Upstack Pixel |

| Metadata        |                                                      |
| --------------- | ---------------------------------------------------- |
| **Type**        | Currency                                             |
| **Data Source** | [Upstack Pixel](/pixel), [Shopify](/sources/shopify) |
| **Aggregation** | Sum                                                  |

***

## Example

Your Shopify store had **\$127,450** in tracked revenue from **1,847 purchases** in January.

| Week      | Revenue  | Purchases | Avg. Order Value |
| --------- | -------- | --------- | ---------------- |
| Jan 1–7   | \$28,340 | 412       | \$68.79          |
| Jan 8–14  | \$31,220 | 453       | \$68.92          |
| Jan 15–21 | \$34,890 | 498       | \$70.06          |
| Jan 22–31 | \$33,000 | 484       | \$68.18          |

***

## How It Works

Revenue is calculated by summing the total value of all purchase events tracked by the Upstack Pixel. Each time a customer completes a checkout on your Shopify store, the purchase event fires with the order total. This metric represents the complete picture of revenue attributed through Upstack tracking.

***

## When to Use

| Scenario                         | Action                                                                              |
| -------------------------------- | ----------------------------------------------------------------------------------- |
| Measuring overall performance    | Compare revenue across date ranges to identify growth trends                        |
| Evaluating channel effectiveness | Break down revenue by attribution source to see which channels drive the most value |
| Calculating efficiency metrics   | Use as the numerator for ROAS, revenue per visitor, and conversion value metrics    |
| Setting campaign goals           | Establish revenue targets and track progress against benchmarks                     |

***

## Related Metrics

| Metric                                                                           | Relationship                                         |
| -------------------------------------------------------------------------------- | ---------------------------------------------------- |
| [Purchases](/reference/metrics/funnel/conversions/purchases)                     | The count of transactions that generate this revenue |
| [Revenue per Visitor](/reference/metrics/funnel/conversions/revenue-per-visitor) | Divides this revenue by unique visitors              |
| [Revenue per Session](/reference/metrics/funnel/conversions/revenue-per-session) | Divides this revenue by total sessions               |

[See all Conversions metrics →](/reference/metrics/funnel/conversions)
