GraphQL: Onsite Sessions
Creating a session
mutation {
newSession(referer: "https://google.com?q=shoes")
}Updating a session
Working with recommendations
On the Product Page
mutation {
updateSession(by: BY_CID, id: "5b1a481060b221115c4a251e",
params: {
event: {
type: VIEWED_PRODUCT
target: "11923861519"
ref: "front-page-slot-1"
}
}
) {
pages {
forProductPage(params: {
isPreview: false, imageVersion: VERSION_8_400_400
}, product: "11923861519") {
divId
resultId
primary {
productId
}
}
}
}
}On the Category Page
On the Search Page
On the Cart Page
On the Front Page
Attribution of Recommendation Results
GraphQL from mobile applications
Last updated
Was this helpful?