Shopify's web pixels let tracking and analytics code run in a sandbox, separate from your storefront page. Scripts injected straight into your theme run alongside the page instead, and on a store with several of them they can slow how quickly the page responds. The fix is to find those scripts, move tracking into app or custom pixels, and remove what nobody uses.
What web pixels are
Shopify's developer documentation describes pixels as JavaScript snippets that run on the online store and collect behavioral data. They come in two kinds. App pixels, built by app developers, load in a strict sandbox that runs in a web worker. Custom pixels, added by merchants, load in a lax sandbox, an iframe with the sandbox attribute. Merchants manage both in the admin under Settings, then Customer events.
The idea is sound. Tracking code in a sandbox can't reach into your page, rewrite its layout or pile extra work onto the code that renders it, which matters for the metrics Google measures in Core Web Vitals.
The trouble is adoption. Plenty of apps, and plenty of past developers, still add tracking the legacy way, as script tags in the theme or its Liquid templates. Those scripts run on the page itself and compete with the work that makes it load and respond.
How to tell if you have the problem
Open your store in Chrome, open DevTools with F12 and go to the Network tab. Filter by script, reload the page and watch what loads.
Count the third-party scripts that load before the page becomes usable. Scripts from domains such as facebook.net, doubleclick.net, klaviyo.com or hotjar.com that load directly in the page, rather than through a pixel, are the ones to investigate.
Then run your homepage through PageSpeed Insights on mobile. If the suggestions point to render-blocking requests or long JavaScript execution time from third-party code, theme-loaded scripts are part of the problem.
Which scripts belong in pixels
Any script that exists for tracking, analytics or advertising is a candidate, including the Meta Pixel, Google Ads conversion tracking, the Pinterest and TikTok tags, Klaviyo tracking and any other code that fires events based on what shoppers do.
Scripts that change what the shopper sees have to stay on the page. Live chat, product configurators and subscription widgets fall into that group, since they can't work from inside a sandbox.
Work With John
If your site isn't bringing in enquiries, that's fixable.
I work with US service businesses and B2B brands on SEO, websites and lead follow-up. On a free strategy call, I'll tell you what's holding your site back, without a sales pitch.
Book a free strategy callHow to move scripts into the sandbox
Start with Settings, then Customer events, in your Shopify admin. It lists the app and custom pixels already installed, which tells you which apps already use the sandbox.
For each app you suspect of loading scripts the old way, check its documentation or ask its support team whether it offers an app pixel. Apps that do are using the sandbox. If an app has no plan to move and isn't actively maintained, replace it with one that does.
For tracking you added yourself, such as a tag pasted into the theme years ago, recreate it as a custom pixel under Customer events and then remove the original script tag.
The theme.liquid check most store owners skip
Open your theme code under Online Store, then Themes, then Edit code, and open theme.liquid. Look through the head and body for script tags from third parties that you or a previous developer added directly.
Any third-party script there that the theme doesn't need to work is a candidate for removal or for a move into a pixel. Stores collect these over the years: tracking from abandoned setups, scripts left behind by apps that were uninstalled, and testing tools nobody uses anymore. Removing an unused tag takes seconds, and removing several often makes a visible difference to mobile performance.
If you want a full technical SEO and performance audit for your store, my ecommerce SEO service covers this layer and the rest.
Web pixels are one case of a wider pattern: technical problems that hurt you without showing an error. URL parameters are another, and they turn up on almost every platform.
