Admin API/Common objects/Mutations
webPixelSet
mutationAdds or changes this app's pixel. The storefront loads it on every page within a minute and fires PageView, ViewContent, AddToCart, InitiateCheckout and Purchase, each with an event id.
Returns WebPixelSetPayload!
mutation WebPixelSet($webPixel: WebPixelInput!) {
webPixelSet(webPixel: $webPixel) {
webPixel {
id
browserPurchase
kind
pixelId
updatedAt
}
userErrors {
code
message
field
}
}
}
# Variables
{
"webPixel": {
"kind": "META",
"pixelId": ""
}
}Arguments
- webPixelWebPixelInput!required
Payload
- userErrors[UserError!]!required
- webPixelWebPixel