Stape Pixel Script in Shopify Custom Pixel – Intermittent Checkout Eve

Hi everyone,

I’m using Stape’s widget script inside Shopify’s Customer Events pixel sandbox, along with the Custom Loader and Pixel Extender add-ons, to forward events to Stape for server-side GTM tracking.

Current situation:

  • The script works, but only about 40% of the time for purchase events.
  • It works consistently on my iPhone.
  • It sometimes works on my PC (Chrome), but not on my co-worker’s PC (also Chrome).
  • When it fails, checkout events like checkout_started and checkout_completed don’t appear in Pixel Test, and nothing reaches GA4 or Google Ads.

Additional detail:

  • Our store runs on a custom domain: https://johnbellcroyden.co.uk.
  • The Shopify pixel sandbox is restrictive (no DOM, limited globals), so I’m wondering if the script is hitting an edge case.
  • I’ve seen occasional errors related to getPageType, but since it works on some devices, it feels like a compatibility or timing issue rather than a complete break.

Questions for the community:

  • Has anyone else seen this intermittent behavior with Stape’s script in Shopify pixels?
  • Are there best practices for making Stape’s widget script more reliable in the sandbox?
  • Does Stape offer a Shopify-specific pixel implementation that’s tested for this environment?

Any insights or examples would be hugely appreciated! I’m reaching out to Stape support as well, but I’d love to hear from anyone who’s solved similar issues.

Hi @Paul thank you for sharing this.

  • Has anyone else seen this intermittent behavior with Stape’s script in Shopify pixels?

We’ve seen some issues here and there, but never what you’re describing specifically. I wonder if you have a reliable way to reproduce the issue? Would be a of a lot of help.

The attempts to recreate the issue on live website from my part - never worked, I consistently get the begin_checkout event. What I did notice is you have GTM in at least two different sandboxes. Maybe thats adding to overall confusion?

Curious to know about your consent/data-sell setting on said custom pixel script

  • Are there best practices for making Stape’s widget script more reliable in the sandbox?

not really, it’s supposed to work as is.

Does Stape offer a Shopify-specific pixel implementation that’s tested for this environment?

if you mean custom pixel code - well thats the one that the app is offering you and it is Shopify specific.

if you mean like GTM setup, please reffer to GTM Setup Assistant | Ready-to-Use Tracking Templates - will get you where you need to be.