Skip to content

3.804.0

Compare
Choose a tag to compare
@vc-ci vc-ci released this 25 Sep 14:18
· 6 commits to master since this release
e80b7e3

🎯 Development

  • add bought-together recommendation (#7)

Min conversion events count (default 1000). Set to 0 for no limit:
image

Add conversion events types "placeOrder" or "addToCart":

mutation pushHistoricalEvent ($command: InputPushHistoricalEventType!) {
  pushHistoricalEvent(command: $command)
}
{
  "command": {
    "storeId": "Electronics",
    "productId": "6e7a31c35c814fb389dc2574aa142b63",
    "sessionId": "12345",
    "eventType": "placeOrder"
  }
}

Use "sessionId" to group productId into distintct events (CustomerOrderId for placeOrder, CartId (or temp uniqueId since cartId is permanent) for "addToCart")

Query recommendations:

query  {
  recommendations(
    storeId:"Electronics"
    cultureName: "en-US"
    model: "bought-together"
    productId: "9cbd8f316e254a679ba34a900fccb076"
    maxRecommendations: 5
    currencyCode: "USD"
  )
  {
    products   
    {
      id
      name   
    }
  }
}