> ## 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 Returning Customer Purchase: Measure Retention Efficiency

> Track cost per returning customer purchase for your Shopify store. Measure how efficiently your ad spend drives repeat buyer conversions.

<Tip>
  Average ad spend per returning customer purchase event tracked by the Upstack pixel.
</Tip>

## Formula

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

### Formula Components

| Metric                                                                                                 | Definition                                                                        |
| ------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------- |
| **Channel Spend**                                                                                      | Total advertising spend across all connected ad platforms                         |
| [**Returning Customer Purchases**](/reference/metrics/funnel/conversions/returning-customer-purchases) | Purchase events from customers who have previously bought from your Shopify store |

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

***

## Example

Your Shopify store spent **\$15,000 on ads** this month and generated **750 returning customer purchases**:

| Purchase Type      | Count     | Share    |
| ------------------ | --------- | -------- |
| New Customer       | 450       | 37%      |
| Returning Customer | 750       | 63%      |
| **Total**          | **1,200** | **100%** |

**Cost per Returning Customer Purchase** = \$15,000 ÷ 750 = **\$20.00**

***

## How It Works

This metric divides your total advertising spend by the number of returning customer purchase events tracked by the Upstack pixel. It measures how efficiently your ad budget drives repeat purchases from existing Shopify customers—those who have at least one prior completed order.

***

## When to Use

| Scenario                       | Action                                                                    |
| ------------------------------ | ------------------------------------------------------------------------- |
| Evaluating retention campaigns | Compare RC cost against new customer CPA to assess remarketing efficiency |
| High repeat purchase rate      | Track whether returning customers justify continued ad investment         |
| Budget allocation              | Balance spending between acquisition and retention campaigns              |
| Channel comparison             | Identify which platforms drive repeat purchases most cost-effectively     |

***

## Related Metrics

| Metric                                                                                                       | Relationship                                         |
| ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------- |
| [Returning Customer Purchases](/reference/metrics/funnel/conversions/returning-customer-purchases)           | Denominator—total returning customer purchase events |
| [Cost per All Purchase](/reference/metrics/funnel/conversions/cost-per-all-purchase)                         | Blended CPA across all customer types                |
| [Returning Customer Purchase Value](/reference/metrics/funnel/conversions/returning-customer-purchase-value) | Total revenue from returning customer orders         |

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