add_to_wishlist event instead.
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_purchaseandrc_purchasethat Upstack fires automatically alongside standard events
Naming Conventions
Custom event names follow these rules:- Use snake_case:
loyalty_redeem,product_config_saved - Keep names descriptive and specific:
product_config_savedis better thancustom_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
Tracking Custom Events
Pass the event name and your data totrack():
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:- Capture — The Upstack Pixel sends the event to Upstack. You can fire custom events using the JavaScript tracking API on your storefront.
- Resolve — Upstack ID attaches identity data to the event. Session stitching and cross-device linking work the same as for standard events.
- Enrich — UTM parameters and click IDs are merged into the event.
- 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.
Events Upstack creates for you
Upstack also creates events from yourpurchase events, such as nc_purchase and rc_purchase. They’re sent alongside purchase, not instead of it. See Upstack-generated events.
Related documentation
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.