How Shopify Apps, Pixels and Third-Party Scripts Affect Store Performance
Measure what each app actually costs, attribute every request to its owner, and decide what to keep — without uninstalling the app your revenue depends on.
In short
Apps are usually the largest performance cost on a Shopify store, and the usual advice — "uninstall apps to go faster" — is bad advice, because some of those apps are making you money.
The useful approach is an audit that produces a number per app: requests, bytes, and main-thread time. Then the decision is informed. An app that drives real revenue is worth 200 ms. A review widget loading on your policy pages is not worth anything.
There is also a middle option most merchants do not know exists: keep the app, but stop it loading on templates that do not use it. That is frequently the single biggest win available, and it removes no functionality at all.
Why apps cost what they cost
The underlying mechanics are the same for any external script and are covered in third-party scripts. This guide is the Shopify-specific case, where the scripts arrive as apps you cannot edit.
Each app can add some or all of:
Network requests. Each new domain needs a DNS lookup, a connection and an encryption handshake before the first byte arrives. On a mobile connection that is a few hundred milliseconds before anything useful happens.
JavaScript execution. This is the expensive part. Script has to be parsed, compiled and run on the main thread, and while the main thread is busy your page cannot respond to taps. On a mid-range phone this costs several times what it costs on your laptop.
DOM elements. Widgets that inject markup make the page bigger and every subsequent layout calculation more expensive.
Duplicate libraries. Three apps each shipping their own copy of the same framework is three downloads and three parses.
Layout shift. A widget that appears late and pushes content down damages your CLS.
Loading everywhere. An app embed usually loads on every page of the store, whether the page uses the feature or not.
How to find out what each app costs
Step 1 — list every third-party origin
- Open a product page in Chrome, incognito.
- DevTools → Network, tick Disable cache, reload.
- Sort by Domain.
Everything that is not your store's domain and not cdn.shopify.com is a third party. Write the list down.
What you should see: typically between five and twenty distinct third-party domains. Shopify's own analytics and the files in content_for_header are expected; everything else needs an owner.
Step 2 — attribute each origin to an app
Three places to look:
The app list. Many apps use a domain containing their name, which makes this quick.
Your theme code. In the theme editor, search the theme for the domain. App embeds appear in theme.liquid; app blocks appear in section settings and templates.
App embeds in the theme editor. Theme → Customize → App embeds shows which embeds are active and lets you toggle them off without uninstalling anything.
If you cannot attribute a domain to any installed app, it is probably leftover code from an app you removed. Apps that injected script tags do not always clean up when uninstalled. Search the theme for the domain and delete it — after duplicating the theme.
Step 3 — measure one app's cost
Measuring properly means comparing with and without, on a duplicated theme:
- Duplicate your live theme. Never do this on the published one.
- Record a baseline in the Performance panel with CPU 4× slowdown: note total blocking time, transferred bytes and request count.
- Turn off one app embed in the duplicate.
- Record again under identical conditions, five runs, median.
- The difference is that app's cost on that template.
- Turn it back on and move to the next.
What you should see: a clear number per app. Most stores find that two or three apps account for most of the cost.
Example audit, product page, CPU 4x, Slow 4G, median of 5
---------------------------------------------------------
App Requests Bytes Main thread
Reviews 4 180 KB 310 ms
Upsell / bundles 6 240 KB 420 ms
Chat widget 5 310 KB 260 ms
Wishlist 2 40 KB 60 ms
Currency converter 2 55 KB 90 ms
Analytics (extra) 3 70 KB 140 ms
---------------------------------------------------------
Shape of a typical result. Your own numbers will differ — measure them.
The example above is the shape of a real audit, not measured data from any store. Fill it in with your own numbers; the point is the format, not the figures.
Step 4 — attribute main-thread time directly
In a Performance recording, open the Bottom-Up view and group by URL. This shows exactly how many milliseconds each script spent executing. Long tasks marked with a red triangle name the responsible script when you hover them.
This is the number that matters for responsiveness, and it is the one merchants almost never see.
What to do with the numbers
Remove what you are not using
The easiest decision. Apps installed for a campaign that ended, trials never cancelled, two apps doing the same job.
After uninstalling, check the theme for leftover code. Search for the app's domain and any obviously named snippets.
Stop apps loading where they are not needed
The highest-value change that removes no functionality.
A reviews app needs to run on product pages. It does not need to run on your cart, your policy pages, your blog, or your checkout. A currency converter might be needed everywhere; an upsell widget is needed on product and cart only.
Where the app uses an app block, this is straightforward: the block only renders in the template you place it in.
Where the app uses an app embed, it loads globally, and your options are narrower. Some apps offer page-targeting settings — check the app's own configuration first, as this is increasingly common. Otherwise, ask the developer: a surprising number will add template targeting when asked, because it reduces their support load too.
Load heavy features on interaction
A chat widget does not need to load before someone wants to chat. The pattern is to show a lightweight button and load the real widget on click. Some chat apps support this natively; for others, it is a theme change.
The same applies to video. A YouTube embed loads a substantial player; a poster image that loads the player on click is dramatically cheaper and changes nothing for a visitor who does not press play.
Consolidate duplicate tracking
Many stores accumulate several analytics and pixel implementations tracking the same events — one from an app, one added by an agency, one in the theme. Each costs a connection and execution time, and duplicates can corrupt your data as well as slow your store.
Shopify's Customer Events / Web Pixels surface is the supported place for tracking code, and it runs in a sandbox rather than on your page's main thread. Where a pixel can live there instead of in the theme, it should.
What you cannot do
Being clear about the limits saves time:
- You cannot edit an app's JavaScript. It is served from the app's own servers.
- You cannot make an app's script non-blocking if it loads itself that way.
- You cannot control what an app does at checkout beyond the supported extension points.
- You cannot stop
content_for_headerloading. It is required, and it carries Shopify's own scripts.
Where an app's cost is unacceptable and the developer will not change it, the only remaining options are replacing it or living with it. That is a commercial decision, and the audit is what makes it an informed one.
Platform notes
Shopify has been moving third-party code away from storefront script injection and towards theme app extensions (app blocks and app embeds) and Web Pixels for tracking. The practical effect for you is that newer apps are generally better behaved and easier to scope to a template, and older apps that inject script tags are the ones more likely to load everywhere and leave code behind. Worth checking the current state of a long-installed app against its newer version.
Common mistakes
Uninstalling by count. Ten well-behaved apps cost less than two badly behaved ones.
Measuring on the homepage. Apps usually load on product and cart pages. Measure where the feature runs.
Measuring once. Third-party scripts vary between runs. Five runs, median.
Removing an app without checking what used it. Wishlists, reviews and currency display are often referenced by the theme, and removing the app can leave broken markup.
Changing the live theme. Duplicate first, always.
Trusting the app's own performance claim. Measure it on your store, on your templates.
Forgetting the leftover-code check after uninstalling.
Breaking tracking in pursuit of speed. Check your conversion data for several days after any change to script loading.
Verification
- Re-measure under identical conditions — same template, same throttling, same run count, median.
- Confirm the requests are actually gone from the Network panel. An app can be "off" and still loading.
- Check total blocking time dropped, which is the responsiveness-relevant number.
- Check the feature you expected to keep still works, on the templates it should work on.
- Complete a real test order, including the payment method your customers use.
- Check your analytics and conversion tracking for several days afterwards, because a tracking break is silent.
- Then watch field data in Shopify's Web Performance dashboard over the following four weeks.
When it still does not improve
- You removed apps and the numbers barely moved → those were not your cost. Go back to attribution: the main-thread time is coming from somewhere specific, and the Bottom-Up view will name it.
- An app embed cannot be scoped and the app is essential → ask the developer for template targeting, then consider alternatives. Measure the alternative before switching.
- Blocking time is high but no single app dominates → you may have many small costs rather than one large one, which is harder: the answer is usually fewer apps overall rather than a single fix.
- The store got slower after you removed something → check you did not remove a resource hint or a deferred loader along with it.
- Field data has not moved after four weeks → confirm the change is live on the published theme, not only on the duplicate.
Keeping it under control
App overhead accumulates because installing an app is easy, measuring one is not, and nobody owns the total.
Three rules that work:
- Measure before and after every app install, and keep the number. A one-line record per app is enough.
- Review every app quarterly: is it still used, is it still earning its cost, is it loading where it should not.
- Give one person the total. An app budget with no owner is not a budget.
Frequently asked questions
How many apps is too many for a Shopify store?
There is no number. Ten well-behaved apps that load only where they are used cost less than two that load a large script on every page. Measure each app’s requests, bytes and main-thread time and judge by cost, not by count.
How do I find out which Shopify app is slowing my store?
Open the Network panel, sort by domain, and list every third-party origin. Attribute each to an app via the app list or by searching your theme for the domain. Then in a Performance recording use the Bottom-Up view grouped by URL to see main-thread time per script.
Does uninstalling a Shopify app remove its code?
Not always. Apps that injected script tags or theme edits frequently leave code behind. On a store that has been running a few years there is usually leftover code from removed apps — pure cost with no feature attached. Search your theme for the app’s domain and remove it, after duplicating the theme.
Can I stop a Shopify app loading on certain pages?
If the app uses an app block, yes — it only renders in templates where you place it. App embeds load globally, but many apps now offer page-targeting settings, so check the app’s own configuration first. Otherwise ask the developer; a surprising number will add template targeting when asked.
Should I remove my reviews or chat app to go faster?
Only if it is not earning its cost. Both can be kept and made much cheaper: scope the reviews app to product pages, and load the chat widget when someone clicks a lightweight button rather than on page load.
Will removing apps break my tracking?
It can, and silently. Never defer, remove or move anything that consent, conversion tracking or a payment method depends on without testing. Check your analytics and conversion data for several days after any change to script loading.
References
- App performance best practices — Shopify
- Theme app extensions — Shopify
- Customer events and web pixels — Shopify
- Third-party JavaScript — web.dev