Shopify Pixel Update Version cache problem

After updating the Shopify Pixel version, some customers’ browsers do not refresh the version due to caching issues. I would like to know if there is a way to solve this problem. I tried calling the webPixelUpdate for each store after every pixel version update, but this still does not work.

1 Like

Hi @mnbvcher, thanks for reaching out!

Would you be able to share the exact webPixelUpdate mutation you’re using (including the full GraphQL query and response and the response headers if possible) and are you updating just the pixel settings via webPixelUpdate, or have you also deployed a new version of your pixel extension code? Just wondering if you’re running into any errors in the API response or if it all seems to go through properly, but the version isn’t refreshed.

If you’ve made changes to your actual pixel code (in your extension’s src/index.js), you might need to deploy a new version of your app using shopify app deploy.

The browser caching of pixel JavaScript is controlled by HTTP cache headers set by Shopify’s CDN. Unfortunately, there isn’t a direct way to force all browsers to immediately refresh their cache.

If trying the above doesn’t resolve things and you’re able to share a bit more info on your Pixel set up, I’m happy to look into this with you for sure. Hope this helps! :slight_smile: