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

# Total Revenue: Complete Order Value from Shopify Purchases

> Track total revenue including taxes and shipping from your Shopify store. Measure complete purchase value with pixel-tracked attribution.

<Tip>
  Total Revenue measures the complete monetary value from all purchases, including taxes and shipping, tracked by the Upstack Pixel on your Shopify store.
</Tip>

## Formula

<Info>
  **Total Revenue** = **SUM** ( Order Total ) **WHERE** event = purchase
</Info>

### Formula Components

| Metric               | Definition                                                               |
| -------------------- | ------------------------------------------------------------------------ |
| **Order Total**      | The complete order value including product subtotal, taxes, and shipping |
| **event = purchase** | Filters to purchase events tracked by the Upstack Pixel                  |

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

***

## Example

Your Shopify store generated **\$156,280** in total revenue from **2,134 orders** in February.

| Week      | Total Revenue | Orders | Avg. Order Value |
| --------- | ------------- | ------ | ---------------- |
| Feb 1–7   | \$35,420      | 487    | \$72.73          |
| Feb 8–14  | \$38,760      | 521    | \$74.40          |
| Feb 15–21 | \$41,890      | 568    | \$73.75          |
| Feb 22–28 | \$40,210      | 558    | \$72.06          |

***

## How It Works

Total Revenue is calculated by summing the complete order value of all purchase events tracked by the Upstack Pixel. When a customer completes checkout on your Shopify store, the purchase event fires with the full order total—including product subtotal, taxes, and shipping charges. This metric captures the gross revenue before any adjustments for refunds or discounts.

***

## When to Use

| Scenario                                 | Action                                                                    |
| ---------------------------------------- | ------------------------------------------------------------------------- |
| Measuring gross business performance     | Track complete revenue before deductions to understand total sales volume |
| Calculating ROAS and efficiency metrics  | Use as the revenue component for return on ad spend calculations          |
| Comparing revenue by attribution channel | Break down total revenue by source to identify highest-value channels     |
| Setting revenue targets                  | Establish gross revenue goals and track progress against benchmarks       |

***

## Related Metrics

| Metric                                                                     | Relationship                                      |
| -------------------------------------------------------------------------- | ------------------------------------------------- |
| [Revenue](/reference/metrics/funnel/conversions/revenue)                   | Purchase value tracked by the pixel               |
| [Conversion Value](/reference/metrics/funnel/conversions/conversion-value) | Total monetary value of conversions               |
| [Purchases](/reference/metrics/funnel/conversions/purchases)               | The count of transactions generating this revenue |

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