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

# Returning Customer Purchases

> Track returning customer purchases for your Shopify store. Measure repeat buyer conversions and customer retention effectiveness.

> [!TIP]
>
> Returning Customer Purchases counts the total number of purchase events from customers who have previously purchased from your Shopify store.

## Formula

> [!NOTE]
>
> **Returning Customer Purchases** = **COUNT** ( `rc_purchase` events )

### Formula Components

| Metric | Definition |
| - | - |
| [**`rc_purchase` event**](https://docs.upstackdata.com/event-tracking/event-taxonomy/standard-events/rc-purchase) | Generated for a `purchase` when Upstack already has a customer record for the buyer's identity or email |

| Metadata | |
| - | - |
| **Type** | Number |
| **Data Source** | [Upstack Pixel](https://docs.upstackdata.com/pixel.md), [Shopify](https://docs.upstackdata.com/sources/catalog/shopify.md) |
| **Aggregation** | Count |

***

## Example

Your Shopify store recorded **2,847 returning customer purchases** in March:

| Customer Type | Purchases | % of Total |
| - | - | - |
| Returning Customers | 2,847 | 62% |
| New Customers | 1,753 | 38% |
| **Total** | **4,600** | **100%** |

***

## How It Works

For every `purchase` event it processes, Upstack looks for a customer record under the buyer's Upstack identity and each email on the event. If one exists, it generates [`rc_purchase`](https://docs.upstackdata.com/event-tracking/event-taxonomy/standard-events/rc-purchase), which this measure counts. Otherwise it generates [`nc_purchase`](https://docs.upstackdata.com/event-tracking/event-taxonomy/standard-events/nc-purchase), counted in [New Customer Purchases](https://docs.upstackdata.com/reference/metrics/funnel/conversions/new-customer-purchases.md).

The customer records are Upstack's own, built from the orders and purchase events it has received. This isn't the same check as the [customer type](https://docs.upstackdata.com/data-dictionary/measures-and-dimensions.md#customer-type) used by order measures such as New Customers, so the numbers can differ.

***

## When to Use

| Scenario | Action |
| - | - |
| Measuring retention success | Track returning customer purchases to evaluate loyalty and repeat buying |
| Calculating customer acquisition cost | Compare new vs returning purchase volume to understand CAC efficiency |
| Evaluating remarketing campaigns | Assess whether retargeting drives repeat purchases |
| Benchmarking LTV performance | Monitor returning purchases as a leading indicator of customer lifetime value |

***

## Related Metrics

| Metric | Relationship |
| - | - |
| [New Customer Purchases](https://docs.upstackdata.com/reference/metrics/funnel/conversions/new-customer-purchases.md) | Opposite segment — first-time buyer conversions |
| [Total Purchases](https://docs.upstackdata.com/reference/metrics/funnel/conversions/all-purchases.md) | Sum of new + returning customer purchases |
| [Returning Customer Purchase Value](https://docs.upstackdata.com/reference/metrics/funnel/conversions/returning-customer-purchase-value.md) | Total revenue from returning customer orders |

[See all Conversions metrics →](https://docs.upstackdata.com/reference/metrics/funnel/conversions)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.