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

# Custom Events

> Track custom events beyond the standard events, such as loyalty redemptions and product configurator steps.

Custom events track actions that don't fit the standard events, such as loyalty point redemptions or product configurator steps. For wishlist adds, use the standard [`add_to_wishlist`](https://docs.upstackdata.com/event-tracking/event-taxonomy/standard-events/add-to-wishlist) event instead.

> [!TIP]
>
> Custom events flow through the same Capture → Resolve → Enrich → Activate pipeline as standard events. They receive identity resolution, enrichment, and destination forwarding automatically.

> [!NOTE]
>
> **Two types of custom events exist:**
>
> * **User-defined custom events** — Events you create and fire manually for business-specific interactions
> * **Upstack-generated events** — Events like `nc_purchase` and `rc_purchase` that Upstack fires automatically alongside standard events
>
> See [Events Upstack creates for you](#events-upstack-creates-for-you) for the automatically generated events.

## Naming Conventions

Custom event names follow these rules:

* Use **snake\_case**: `loyalty_redeem`, `product_config_saved`
* Keep names **descriptive and specific**: `product_config_saved` is better than `custom_action_1`
* Avoid names that collide with standard events — `page_view`, `purchase`, etc. are reserved
* Maximum length: **100 characters**
* Must start with a letter, then only letters, numbers and underscores

> [!WARNING]
>
> Event names are case-sensitive. `loyalty_redeem` and `LoyaltyRedeem` are treated as separate events. Use snake\_case to match standard event conventions.

## Tracking Custom Events

Pass the event name and your data to `track()`:

```javascript theme={null}
window._upstack('track', 'product_config_saved', {
  // Standard parameters
  value: 34.99,
  currency: 'USD',
  items: [{ id: '8012345678', name: 'Classic Cotton Tee', price: 34.99, quantity: 1 }],

  // User data
  email: 'jane@example.com',

  // Custom data
  configId: 'cfg_abc123'
});
```

Custom events use the same [standard parameters, user data and custom data](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties) as every other event. Use `items`, `value` and `currency` wherever they apply, because destinations read those and not your custom keys.

## How Custom Events Flow Through the Pipeline

Custom events follow the exact same path as standard events:

1. **Capture** — The Upstack Pixel sends the event to Upstack. You can fire custom events using the JavaScript tracking API on your storefront.
2. **Resolve** — Upstack ID attaches identity data to the event. Session stitching and cross-device linking work the same as for standard events.
3. **Enrich** — UTM parameters and click IDs are merged into the event.
4. **Activate** — The event is forwarded to destinations that accept it. See below.

## Destination Support

| Destination | What happens to a custom event |
| - | - |
| **Meta, Microsoft Ads, PostHog, Reddit** | Sent automatically under its own name. |
| **LinkedIn, Snapchat, AppLovin, NewsBreak** | Can't receive custom events. |
| **All other destinations** | Sent once you add a [destination event mapping](https://docs.upstackdata.com/guides/custom-events/destination-event-mappings.md). |

Destinations receive the event name and the standard parameters they support. See [which destinations receive custom data](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/custom-data.md#which-destinations-receive-custom-data).

> [!TIP]
>
> For the full `track()` signature, see the [JavaScript SDK Reference](https://docs.upstackdata.com/pixel/javascript-sdk.md#track-eventname-eventdata).

## Events Upstack creates for you

Upstack also creates events from your `purchase` events, such as `nc_purchase` and `rc_purchase`. They're sent alongside `purchase`, not instead of it. See [Upstack-generated events](https://docs.upstackdata.com/event-tracking/event-taxonomy/upstack-generated).

## Related documentation

> [card] [Standard Events](https://docs.upstackdata.com/event-tracking/event-taxonomy/standard-events)
>
> Review the full list of built-in events before creating a custom event.

> [card] [JavaScript SDK](https://docs.upstackdata.com/pixel/javascript-sdk.md#track-eventname-eventdata)
>
> Full track() method reference with all 7 parameters.

> [card] [Event Parameters](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties)
>
> Every parameter you can send with an event.

> [card] [Shopify Automatic Tracking](https://docs.upstackdata.com/sources/catalog/shopify-automatic-tracking.md)
>
> Events automatically tracked on Shopify stores.


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