Empty Cart (Opti-X)

Event Key

ootb_empty_cart

This event should be sent when all items are removed from the cart.

Event KeyEvent NameType
ootb_empty_cartOOTB Empty CartSimple event

Event Structure

The mandatory properties (tenant, timestamp, event, and customer) are required for all events and documented in detail on the Mandatory Properties page. Below is the JSON structure for the context-specific properties of the Empty Cart event:

{

  "context": {
    "ootb_session_id": "248rhdbuw2her1",
    "ootb_userid": "ExampleUser1234",
    "ootb_eventdatetime": "2024-03-09T07:00:14.000Z",
    "ootb_fullfillment_type": "standard_delivery"
  }
}

Parameters

Parameter KeyParameter NameTypeDescription
ootb_session_idSession IDStringUser’s browser session identifier.
ootb_useridUser IDStringUnique key identifying the user.
ootb_eventdatetimeEvent Date TimeTimestampUTC timestamp when the cart was emptied.
ootb_fullfillment_typeFulfillment TypeEnumbopis or standard_delivery to indicate pickup vs delivery.

Explanation

  • event: Set to ootb_empty_cart to indicate all items have been removed from the cart.
  • context:
    • ootb_session_id, ootb_userid: Link the event to the user’s session and identity.
    • ootb_eventdatetime: When the cart was emptied.
    • ootb_fullfillment_type: Indicates whether the cart was for in-store pickup (bopis) or standard delivery.