App Web Pixels lacks API

I recently had the pleasure to create an App Web Pixel, and they lack some API to say the least.

A few issues:

  • Clicking on the Pixel within Customer Events leads to app home page. Why not directly to an edit page like discounts?
  • There is no way to query for an existing ID(s). You have to save it to a database column when creating the Web Pixel.

I had hoped I could query appInstallations.webPixel(s) or similar, or at least have a webPixels query available.

Hey Anders,

your first point seems like a nice feature request to me, but let me get back to your second issue:

The ID input on the webPixel query is optional, and as your app can only have one app pixel the following query will just output the web pixel connected to the app you’re querying with:

query {
  webPixel {
    id
    settings
  }
}

This example is also present in the GraphQL docs.

Hope this helps,

Kevin :hatching_chick: