Skip to main content
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 event instead.
Custom events flow through the same Capture → Resolve → Enrich → Activate pipeline as standard events. They receive identity resolution, enrichment, and destination forwarding automatically.
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 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
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():
Custom events use the same standard parameters, user data and custom data 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

Destinations receive the event name and the standard parameters they support. See which destinations receive custom data.
For the full track() signature, see the JavaScript SDK Reference.

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.

Standard Events

Review the full list of built-in events before creating a custom event.

JavaScript SDK

Full track() method reference with all 7 parameters.

Event Parameters

Every parameter you can send with an event.

Shopify Automatic Tracking

Events automatically tracked on Shopify stores.