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_startedandcheckout_completeddon’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.