Issue with `write_pixel` access Scope

Topic summary

Developers are encountering access denial errors when attempting to use the webPixelCreate GraphQL mutation, despite adding write_pixels and read_customer_events scopes to their shopify.app.toml configuration file.

Error Message:

  • “Access denied for webPixelCreate field. Required write_pixels access scope. Also Required: read_customer_events access scope.”

Attempted Solutions:

  • Adding scopes to shopify.app.toml and having merchants grant permissions
  • Reinstalling the app after scope changes (reported as unsuccessful by some)

Working Solutions Reported:

  1. Complete app deletion and reinstallation: Delete the app via Partners dashboard, then reinstall
  2. Environment variable export: Set SCOPES as an environment variable before running the server:
    export SCOPES="write_pixels,read_customer_events,read_products"
    

Additional Notes:

  • The read_products scope may be required by default Shopify app functionality
  • Multiple developers confirm experiencing this same issue
  • The discussion remains open with ongoing troubleshooting
Summarized with AI on November 16. AI used: claude-sonnet-4-5-20250929.

@sirev Thanks for the answers.

if you can answer on my Query. https://community.shopify.com/c/extensions/how-to-create-the-web-pixel-using-the-admin-api-grapql/m-p/2225672/highlight/true#M1091