Issue with web pixel deployment

Hi everyone,

I’m running into a recurrent issue with the app deployment and I’d really appreciate the community’s insight!

Whenever I deploy a new version of my app that includes changes to the web-pixel (specifically, updates to the web-pixel sandbox file), I see inconsistent behavior across stores.

After deploying, only a few of the installed stores seem to successfully update the web-pixel sandbox file. For the rest of the stores, the old web-pixel code persists, even after waiting for 1-2 hours following the shopify app deploy command.

I’ve ruled out simple browser caching by checking the website in incognito mode and inspecting the Sources tab in the developer console—the web-pixel file shown is definitely the old version.

Interestingly, when I re-deploy the app a second time, the changes are then successfully propagated to all stores. I’ve observed this pattern multiple times, which leads me to a key question:

:red_question_mark: Do I need to specifically use the shopify release version command to ensure my web-pixel changes are reliably rolled out to all stores after deployment?

Any guidance on the expected behavior of web pixel updates after deployment or confirmation on whether the shopify app release --version=VERSION command is a necessary step for complete propagation would be incredibly helpful! :folded_hands:

Thanks in advance!

Hi @Sambhav_Mahajan

We’re digging into this on our side - will report back once I’ve clarified the expected behaviour and recommendations.

Hey @Liam-Shopify ,

Is there any update on this issue?
We’re also experiencing this issue and it seems the current work around is to deploy the extension twice.

If we only deploy once, the web pixel code doesn’t seem to update on any merchant’s storefronts.

However, once we deploy it for a second time (either immediately or even waiting a few hours) the web pixel code immediate updates for all merchant storefronts.