Analytics
Track event
Changed onpost/analytics/track
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Request body
union required
Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads
object required
Schema for tracking an analytics event. Excludes system-generated fields
OR
object required
Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization
Response
OK
object required
id, string required
eventId, string required
Event being tracked (evt_123)
teamId, string required
Team ID (team_123)
promoterId, string required
Promoter ID (pmt_123)
eventType, 'Page Viewed' | 'Screen Viewed' | 'Products Searched' | 'Product List Viewed' | 'Product List Filtered' | 'Promotion Viewed' | 'Promotion Clicked' | 'Product Clicked' | 'Product Viewed' | 'Product Added' | 'Product Removed' | 'Cart Viewed' | 'Checkout Started' | 'Checkout Step Viewed' | 'Checkout Step Completed' | 'Payment Info Entered' | 'Order Completed' | 'Order Updated' | 'Order Refunded' | 'Order Cancelled' | 'Coupon Entered' | 'Coupon Applied' | 'Coupon Denied' | 'Coupon Removed' | 'Product Added to Wishlist' | 'Product Removed from Wishlist' | 'Wishlist Product Added to Cart' | 'Product Shared' | 'Cart Shared' | 'Product Reviewed' required
timestamp, string required
date, string required
YYYY-MM-DD
hour, integer required
properties, object required
context, object required
productId, string
createdAt, string required
updatedAt, string required
Changes
- breaking
removed
subschema #1subschema #2from the request bodyanyOflist - info
added
subschema #1subschema #2to the request bodyanyOflist - info
the
properties/entry_ends_atresponse's property pattern^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$was added for the status
5 more changes in this revision
- breaking