Empty Cart (Opti-X)
Event Key
ootb_empty_cart
This event should be sent when all items are removed from the cart.
Event Key | Event Name | Type |
---|---|---|
ootb_empty_cart | OOTB Empty Cart | Simple 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 Key | Parameter Name | Type | Description |
---|---|---|---|
ootb_session_id | Session ID | String | User’s browser session identifier. |
ootb_userid | User ID | String | Unique key identifying the user. |
ootb_eventdatetime | Event Date Time | Timestamp | UTC timestamp when the cart was emptied. |
ootb_fullfillment_type | Fulfillment Type | Enum | bopis 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.
Updated 3 days ago