Add to Wishlist

Event Key

ootb_add_to_wishlist

This event should be sent when a user adds a product to their wishlist, favorites list, or save-for-later area — indicating future purchase intent.

Event KeyEvent NameType
ootb_add_to_wishlistAdded to WishlistSimple 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 Add to Wishlist event:

{
  "context": {
    "ootb_session_id": "248rhdbuw2her1",
    "ootb_userid": "ExampleUser1234",
    "ootb_eventdatetime": "2024-03-09T07:40:00.000Z",
    "ootb_product_id": "Sneakers93824",
    "ootb_variant_id": "Sneakers93824-White9",
    "ootb_sku_id": "Sneakers93824-White9-S9",
    "ootb_item_name": "White High-Top Sneakers - Size 9",
    "ootb_brand": "ExampleBrand",
    "ootb_category": "C-Footwear",
    "ootb_department": "D-Shoes",
    "ootb_url": "https://www.example.com/sneakers/white9",
    "ootb_page_title": "White High-Top Sneakers",
    "ootb_page_category": "Footwear > Sneakers",
    "ootb_price": 89.99,
    "ootb_currency": "USD"
  }
}

Parameters

Parameter KeyParameter NameTypeDescription
ootb_session_idSession IDStringUser’s browser session identifier.
ootb_useridUser IDStringUnique key identifying the user.
ootb_eventdatetimeEvent Date TimeTimestampTimestamp of the add-to-wishlist action.
ootb_product_idProduct IDStringProduct identifier.
ootb_variant_idVariant IDStringVariant identifier.
ootb_sku_idSKU IDStringSKU identifier.
ootb_item_nameItem NameStringItem name (most granular level).
ootb_brandBrandStringBrand of the product.
ootb_categoryCategoryStringLowest-level product category.
ootb_departmentDepartmentStringHighest-level department or category.
ootb_urlURLStringProduct or variant URL.
ootb_page_titlePage TitleStringPage title of the product.
ootb_page_categoryPage CategoryStringPage category context.
ootb_pricePriceNumberDisplayed price when the item was added.
ootb_currencyCurrencyStringCurrency of the price.

Explanation

  • event: Set to ootb_add_to_wishlist to indicate a user has added an item to their wishlist/favorites/save-for-later.
  • context:
    • ootb_session_id, ootb_userid: Link the action to the user’s session and identity.
    • ootb_eventdatetime: When the add-to-wishlist action occurred.
    • ootb_product_id, ootb_variant_id, ootb_sku_id, ootb_item_name, ootb_brand: Identify the exact product, variant, SKU, and item name.
    • ootb_category, ootb_department, ootb_url, ootb_page_title, ootb_page_category: Provide taxonomy and page context for the item.
    • ootb_price, ootb_currency: Capture the displayed price and currency at the time of adding to wishlist.