I am trying to use the new webPixelCreate mutation. I am getting a syntax error when copying the snippet directly from here: https://shopify.dev/apps/pixels/pixels-getting-started#step-6-create-a-web-pixel-merchant-setting-fo…
Mutation string:
mutation {
webPixelCreate(webPixel: { settings: "{\"accountId\":\"234\"}" }) {
userErrors {
code
field
message
}
webPixel {
settings
id
}
}
}
I have checked and the settings I am passing matches with the settings I created for the web pixel extension.
The error I am getting:
error - Error: Parse error on “:” (STRING) at [2, 58]