Web Pixels can be queried without specifying an ID
API
Effective April 01, 2023
In the Admin API version 2023-04, you can now query your web pixels installed on an online store without having to provide a Web Pixel ID.
API: https://shopify.dev/docs/api/admin-graphql/2023-04/queries/webPixel
Learn more about web pixels.