Talk to us

Blog · 23 November 2026 · Rob Sherwood

Shopify Server Pixel Updates Now Check Who's Asking

If you have a custom Shopify app that sends customer events to Amazon EventBridge or Google Pub/Sub, there's a change you should know about. Since 20 November, Shopify has tightened who is allowed to repoint where those events go. If the wrong token is used, the call now fails, and the error it gives you won't tell you why.

It's a small change. It's also the sort that sits quietly in an app until someone clicks a settings button on a Monday morning and nothing happens.

What changed

Shopify's server pixels send customer events from a store to an endpoint the app sets up. Two GraphQL Admin API mutations change that endpoint: eventBridgeServerPixelUpdate (which takes an EventBridge ARN) and pubSubServerPixelUpdate (which takes a Pub/Sub project and topic).

From 20 November 2026, both mutations reject online access tokens belonging to staff members who don't have access to the app. They now need either an offline access token, or an online token for a staff member who does have access. Shopify says the update mutations now apply the same check that serverPixelCreate and serverPixelDelete already did.

Shopify is treating this as a security fix, so it "applies to all API versions without a deprecation period". Pinning your app to an older API version won't buy you any time. The required scopes (write_pixels, read_customer_events and write_server_pixels) haven't changed.

Honestly, it's a sensible fix. Where a store sends its customer events is not something a staff member without access to the app should be able to change. The gap was in the update mutations, not in the create and delete ones, and now it's closed.

Why the error is the tricky bit

When the call is refused, the mutation returns an access denied error with no payload, and the server pixel keeps pointing at its old endpoint. That part is fine. Nothing gets half changed.

The awkward part is the wording. Shopify's changelog notes that the message is the same one you get for a missing access scope, and it doesn't mention user access at all. So a developer looking at the logs will very reasonably go and check the app's scopes, find they're all present and correct, and then lose an afternoon wondering what's going on.

If you're the person who owns the app rather than the person who wrote it, the symptom is simpler still. Somebody tries to change where events go, it doesn't work, and the old destination carries on receiving data. If the reason for the change was moving to a new AWS account or a new Google Cloud project, that's worth noticing quickly.

Online tokens and offline tokens, briefly

This is really a story about the two kinds of token Shopify apps use, so it's worth a quick refresher.

An online access token is tied to the staff member who opened your app. Shopify's docs say it lasts 24 hours or until that person logs out, and every request made with it is checked against that one person's permissions. It's the right token when your app is doing something on behalf of the person sitting in the admin.

An offline access token is for work the app does on its own authority: webhooks, scheduled jobs and background tasks. It doesn't depend on who is logged in.

Plenty of embedded apps use the online token for anything triggered from a settings screen, because a person clicked the button. That's usually a good habit. Where it goes wrong is when the person clicking can see the screen but hasn't been given access to the app itself.

What to check

If your app touches server pixels, here's the short list:

  • Find every call to the two update mutations. Note which token each one uses. Search for the mutation names in the code rather than relying on memory.
  • Decide who should be allowed to make the change. If it should only ever be staff with app access, keep the online token and make sure the right people have that access in the Shopify admin.
  • If the change is really the app's job, use the offline token. Shopify's own suggestion is to make the call from a background job with an offline token. That also stops it depending on a particular person's login.
  • Handle the access denied error properly. Shopify says to handle it either way. Show the user a message that says what actually happened ("you don't have access to this app, ask the store owner") rather than a generic failure.
  • Remember the update replaces subscriptions. Shopify's docs for both mutations say running them deletes any previous subscriptions for the server pixel. Worth knowing before you add retries.

One related date while you're in there. From 1 December 2026, new custom apps must use expiring offline tokens, which last an hour and come with a refresh token. If you're moving these calls onto an offline token, make sure the refresh is handled too. I wrote about that change in more detail in Shopify app tokens are going to expire.

The bigger pattern

This is one of a steady run of security tightening from Shopify on apps: IP allowlists, network access declarations, expiring tokens and protected customer data rules. Each one is reasonable on its own. Together they mean a custom app that was finished two years ago and hasn't been touched since is quietly drifting away from what Shopify expects.

None of these changes is hard to deal with when someone is watching the changelog and knows the code. They're a lot harder when the app was built by a developer who has moved on and nobody is sure which token goes where. Tokens and keys are worth treating with care generally, and if yours live in the code itself, my guide to API keys in code covers how to find and move them.

If you'd like a hand

We build and look after custom Shopify apps and Shopify integrations, including ones we didn't write. If you're not sure how your app handles tokens, our code audit is £250 + VAT and gives you a written report in five working days. If you'd rather someone just kept an eye on changes like this and dealt with them, Look after it starts from £355 a month + VAT.

Either way, drop us a line and we'll take a look.

Cheers, Rob

Tell us what you've got

It goes straight to Rob and Jase. You'll hear back from one of us, usually the same day, and we'll tell you honestly whether we're the right people.

Just want it checked? Code audit, £250 + VAT