Requires write_pixels access scope. Also: The app requires read_customer_events access scope and user access permission.

Creates a new web pixel settings.


The web pixel settings in JSON format.


Was this section helpful?

The list of errors that occurred from executing the mutation.

The created web pixel settings.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation webPixelCreate($webPixel: WebPixelInput!) {
  webPixelCreate(webPixel: $webPixel) {
    userErrors {
      field
      message
    }
    webPixel {
      # WebPixel fields
    }
  }
}
Hide code
Input
Copy
{
  "webPixel": {
    "settings": "{ \"name\": \"Size\", \"values\": [\"M\", \"L\"] }"
  }
}
input WebPixelInput {
  settings: JSON!
}