Good morning everyone, I’ve noticed a few days ago that on client sites where I’ve implemented the Stape tracking plugin, there’s a significant delay between page loading and the data layer being pushed.
Specifically, it’s a matter of a few seconds before the tool can even be debugged.
Is there a problem with the application?
Hello @daniele.pikk,
There are no inherent issues with the Conversion Tracking app at the moment. The delay you are experiencing may be a consequence of Shopify’s architecture, which prioritises page performance over script execution, as with App Embeds and Customer Events. The main content of the page is prioritized, and our script, which initializes the Data Layer, only begins execution once the browser has sufficient resources. In a heavy environment with multiple apps, this may cause a small delay. As for the Customer Events, Shopify runs scripts in a sandboxed iframe. This isolation is security-first but creates a slight overhead as the browser must initialize the sandbox before the Data Layer can be pushed.