Skip to main content
Everything you send with an event goes in one object, the eventData argument of track(). That object has three kinds of keys: Sample payload with every standard parameter, item parameter, user data parameter and address parameter on a purchase:
These parameters only apply to some events: cartId, searchTerm, categoryId and category and formId.

Rules for all parameters

  • Send numbers as numbers and IDs as strings. The Events API rejects value: "12" and a numeric id. Google Ads and Microsoft Ads ignore a value sent as a string.
  • Money is in major units (34.99, not 3499). The exceptions are the SaaS parameters mrr, arr, mrrDelta, ltv and amount, which are in cents.
  • Use the key names exactly as listed. Upstack doesn’t convert other spellings, such as order_id for orderId.
  • Upstack doesn’t calculate totals. Send value yourself.

Standard parameters

Each event page shows which of these it uses and which are required. SaaS events add their own SaaS parameters.

Item parameters

User data

Each event page shows one of these two tables. When the person may be anonymous, such as browse, cart and initiate_checkout events: * Required once you know it. When you know who the person is, such as later checkout steps, order and lead events: * Required if you have it. More detail: User data.

Custom data

Any key that isn’t listed above is custom data, such as loyaltyTier: 'gold'. See Custom data for what you can do with it.

Event IDs

Leave the event ID to Upstack. It uses the ID to remove duplicates, and it drops any event whose ID it has already seen in the last 30 days. page_view, view_content, view_category and view_cart are exempt.
  • purchase gets the ID pixelId_orderId. That’s how the browser and server copies of an order count as one.
  • Send transactionId on purchase only. Any other event that carries it gets the same ID as the purchase.
  • To send your own ID, for example so repeat page loads count once, pass it as the third argument of track(). Don’t do this on purchase.

Sending events from your server

Send the same object as eventProperties in a POST /tr/api/events request, but put the email and phone in userProperties, as emails and phones arrays. On this API, only userProperties links the event to a person.

What Upstack captures for you

Upstack captures the page URL, referrer, UTM parameters, click IDs, device, location and timestamp on every browser event. See Auto-captured fields.