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

# Cost per All Purchase: Acquisition Efficiency for All Orders

> Track cost per all purchase to measure ad spend efficiency across your Shopify store. Calculate your blended CPA across all customer types.

<Tip>
  Cost per All Purchase measures the average ad spend required to generate one purchase event of any type—new customer, returning customer, subscription, or otherwise.
</Tip>

## Formula

<Info>
  **Cost per All Purchase** = **Channel Spend** ÷ **All Purchases**
</Info>

### Formula Components

| Metric            | Definition                                                                       |
| ----------------- | -------------------------------------------------------------------------------- |
| **Channel Spend** | Total advertising spend across all connected ad platforms                        |
| **All Purchases** | Total purchase events tracked by the Upstack pixel, including all customer types |

| Metadata        |                         |
| --------------- | ----------------------- |
| **Type**        | Currency                |
| **Data Source** | [Upstack Pixel](/pixel) |
| **Aggregation** | Ratio                   |

***

## Example

Your Shopify store spent **\$12,000 on ads** this month and generated **400 total purchases** across all customer types.

| Purchase Type      | Count   | Share    |
| ------------------ | ------- | -------- |
| New Customer       | 180     | 45%      |
| Returning Customer | 160     | 40%      |
| Subscription       | 60      | 15%      |
| **Total**          | **400** | **100%** |

**Cost per All Purchase** = \$12,000 ÷ 400 = **\$30.00**

***

## How It Works

This metric divides your total advertising spend by all purchase events tracked by the Upstack pixel. Unlike new customer CPA, which only counts first-time buyers, Cost per All Purchase includes every transaction—giving you a blended view of acquisition efficiency across your entire Shopify customer base.

***

## When to Use

| Scenario                        | Action                                                        |
| ------------------------------- | ------------------------------------------------------------- |
| Benchmarking overall efficiency | Compare against target CPA to gauge campaign health           |
| High returning customer rate    | This metric reflects repeat purchase value that NC CPA misses |
| Budget planning                 | Use for total cost forecasting across all order types         |
| Channel comparison              | Compare blended efficiency across Meta, Google, and TikTok    |

***

## Related Metrics

| Metric                                                                                     | Relationship                                           |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------ |
| [Conversions](/reference/metrics/funnel/conversions/conversions)                           | Attributed conversions for ROAS calculations           |
| [Conversion Value](/reference/metrics/funnel/conversions/conversion-value)                 | Revenue generated from all conversions                 |
| [Average Conversion Value](/reference/metrics/funnel/conversions/average-conversion-value) | Average revenue per conversion for break-even analysis |

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