> ## 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 Custom Event: Custom Event Efficiency Metric

> Track cost per custom event for your Shopify store. Measure advertising efficiency for custom conversion events tracked by the Upstack pixel.

<Tip>
  Cost per Custom Event measures how much advertising spend is required to generate one custom event tracked by the Upstack pixel.
</Tip>

## Formula

<Info>
  **Cost per Custom Event** = **Channel Spend** ÷ **Custom Events**
</Info>

### Formula Components

| Metric            | Definition                                                |
| ----------------- | --------------------------------------------------------- |
| **Channel Spend** | Total advertising spend across all connected ad platforms |
| **Custom Events** | Total custom events tracked by the Upstack pixel          |

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

***

## Example

Your e-commerce store spent **\$5,000** on advertising in January and tracked **2,500** custom events during that period.

| Metric                    | Value      | Calculation             |
| ------------------------- | ---------- | ----------------------- |
| Channel Spend             | \$5,000    | Total ad spend          |
| Custom Events             | 2,500      | Events tracked by pixel |
| **Cost per Custom Event** | **\$2.00** | \$5,000 ÷ 2,500         |

***

## How It Works

Cost per Custom Event divides your total advertising spend by the number of custom events tracked by the Upstack pixel. Custom events are user-defined events that you configure to track specific actions relevant to your business, such as quiz completions, video views, or button clicks. This metric helps you understand the advertising cost associated with driving these custom engagement actions.

***

## When to Use

| Scenario                                                   | Action                                                        |
| ---------------------------------------------------------- | ------------------------------------------------------------- |
| Evaluating campaign efficiency for custom conversion goals | Compare Cost per Custom Event across campaigns                |
| Optimizing ad spend for specific engagement actions        | Target campaigns with lower Cost per Custom Event             |
| Benchmarking custom event acquisition costs                | Track trends over time to identify efficiency improvements    |
| Comparing custom event costs across channels               | Identify which platforms drive custom events most efficiently |

***

## Related Metrics

| Metric                                                                                        | Relationship                                     |
| --------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [Cost per View Content](/reference/metrics/funnel/engagement/cost-per-view-content)           | Similar efficiency metric for product page views |
| [Cost per Add to Cart](/reference/metrics/funnel/engagement/cost-per-add-to-cart)             | Similar efficiency metric for cart additions     |
| [Cost per Initiate Checkout](/reference/metrics/funnel/engagement/cost-per-initiate-checkout) | Similar efficiency metric for checkout starts    |

[See all Engagement metrics →](/reference/metrics/funnel/engagement)
