GraphQL: Onsite Sessions
Creating a session
mutation {
newSession(referer: "https://google.com?q=shoes")
}Updating a session
mutation {
updateSession(
by: ...,
id: "...",
params: {
cart: { ... },
customer: { ... },
event: { ... },
skipEvents: ...
}
) {
id
cart: { ... }
customer: { ... }
events: { ... }
pages: { ... }
segments: { ... }
}
}Set the cart
Set the customer
Working with recommendations
On the Product Page
Tracking Product Variant Views
On the Category Page
On the Search Page
On the Cart Page
On the Front Page
On additional page types
Attribution of Recommendation Results
Customer Group Pricing and Multi Currency
GraphQL from mobile applications
Last updated
Was this helpful?