Shopify Script Tags Stop Running March 1, 2027: The App Code Your Store Still Loads
Shopify stops injecting storefront script tags on March 1, 2027. How to audit hidden app code, clean uninstalled leftovers, and protect store speed.
TL;DR
| Date | What Shopify enforces | What it means for your store |
|---|---|---|
| October 1, 2026 | Apps can no longer create or update script tags (scriptTagCreate / scriptTagUpdate fail on every API version) | Apps still relying on script tags cannot add new ones, vendors must already be migrating |
| March 1, 2027 | Shopify stops injecting storefront script tags entirely | Whatever a script tag loaded (pixels, widgets, badges) stops loading, silently |
| Who is exposed | Any store with apps installed before the vendors migrated to theme app extensions | Older installs and abandoned apps are the risk; recent app-extension apps are not |
| What to do now | Audit what your store actually loads, keep / limit / defer / remove each item | The same audit doubles as an app-sprawl cleanup that recovers speed you already lost |
For years, installing a Shopify app was a one-click decision: the app asked for a script tag, Shopify began injecting its JavaScript into every page, and nobody thought about it again. Shopify announced in August 2026 that this mechanism is ending, script tags stop running on storefronts on March 1, 2027, and apps lost the ability to create new ones on October 1, 2026.
This is the second 2027 cleanup Shopify has put on merchant calendars, after the retirement of non-expiring offline access tokens we covered earlier. Both deadlines reward the same habit: knowing exactly what your store loads, and why.
Why stores get slower after a year of app churn
Shopify apps reach your storefront three ways, and they behave very differently:
- App blocks: visible sections you place in the theme editor. You can see them, move them, remove them.
- App embeds: toggles in the theme editor’s App embeds panel. Some render visible floating widgets; some only add scripts to the page.
- Script tags and theme code edits: the invisible ones. A script tag is injected by Shopify at page load and never appears in your Liquid files. Older apps also wrote snippets directly into
theme.liquidduring installation.
The speed problem compounds the way Shopify’s own audit guide describes: marketing adds a tracking pixel, a developer adds analytics, a merchant installs an app for a holiday campaign, the campaign ends, the app gets uninstalled, and the code it added stays. Each script competes for the browser’s single main thread, the one responsible for painting the page and reacting to taps. No single addition looks serious. The accumulation is what shoppers feel.
Two facts make this worse than it sounds:
- Uninstalling an app doesn’t remove its theme code. Shopify’s Help Center says directly that some apps add code to your theme that stays behind when you uninstall, and its migration guide calls the leftovers “ghost code” that “can cause quality and performance issues and takes merchants off their theme upgrade paths.”
- You can’t turn a script tag off from the admin. It loads from the app vendor’s URL, outside your theme editor. Shopify’s own security rationale for killing script tags is that merchants “can’t see or turn off” what that URL serves, and if an attacker ever takes over that domain, their script runs on every storefront page.
What actually changes on the two dates
For app developers, the migration target is clear: storefront code moves into theme app extensions (versioned, deployable, visible in the theme editor), and pure analytics moves into web pixels. Shopify has documented both paths since 2021, when theme app extensions replaced script tags.
For merchants, the dates change nothing you can click, and that’s the trap:
- Your admin won’t throw an error on March 1. Pixels just stop firing. Widgets disappear. Review badges vanish. If nobody reconciles your analytics against your order list, you might not notice for weeks.
- Apps you installed years ago and stopped thinking about are the real exposure. Apps built recently on theme app extensions aren’t affected, their blocks already show up in your theme editor.
- The order status page already lost script tags in an earlier phase, so checkout-side trackers that depended on them may already be quietly dropping data.
The practical consequence: between now and March 1, 2027, you can still query what a store loads, after that, you can only guess what stopped. A developer with Admin API access can list a store’s script tags today (reads still work; only create and update fail). That inventory gets much harder after the cutoff.
First, check the slowness is real for your shoppers
Before auditing anything, separate how fast your store looks in a test tool from what real buyers experience:
- Lab scores (PageSpeed Insights, Lighthouse) simulate one visit, on one device, at one moment. They’re good for finding culprits, not for judging revenue impact.
- Field data is what actual visitors got. Shopify’s web performance reports in the admin show it, split by page type and URL, with markers for app installs and theme updates. Data can lag up to 36 hours, and low-traffic stores swing day to day, compare week over week.
Google’s Core Web Vitals are the thresholds that matter, measured at the 75th percentile of real loads:
| Measure | Tracks | Good |
|---|---|---|
| LCP (Largest Contentful Paint) | When the main content of the first screen has rendered | ≤ 2.5 s |
| INP (Interaction to Next Paint) | How long the page takes to respond to a tap | ≤ 200 ms |
| CLS (Cumulative Layout Shift) | How much the page jumps while loading | ≤ 0.1 |
A theme demos fast because the demo store has zero apps and ten products. Your live store runs every app you ever installed against your full catalog, that’s why a theme that scored 90 in the demo store drops to 40 with your stack on it.
The five-step audit
You need the Shopify admin, Chrome, and one focused afternoon. The goal is a one-page inventory: what loads, where it’s needed, and its verdict.
Step 1. List every app and app embed, plus the pages that actually use it. Installed apps live in Settings > Apps; app embeds sit in the theme editor’s App embeds panel. Next to each, write the page types it serves: every page, product pages only, cart only, or none. A reviews widget that only renders on product pages but loads its JavaScript bundle across the home page and collections is a finding.
Step 2. Search the theme for ghost code from uninstalled apps. Duplicate your live theme, open Edit code, and search across all files for the names of apps you uninstalled over the last two years. Check theme.liquid, other layout files, and snippets/ first. A <script> tag pointing at a vendor domain you don’t recognize, or a {% render %} tag for a widget nobody remembers, is dead weight running on every page view.
Step 3. Check the network log for dead app domains. Open your home page, a collection page, a product page, and the cart in Chrome (DevTools → Network → Reload). Type domain: in the filter box and Chrome lists every external host the page contacted. Cross-check against your active app list: a domain belonging to an app you canceled a year ago is ghost code still costing every visitor an extra connection.
Step 4. List script tags while API read access still works. This is the step with an expiration date. A developer can query the store’s script tags through the Admin API today (scriptTags query) and match each URL to its vendor. After March 1, 2027, the tags stop injecting and the trail goes cold. If you don’t have a developer handy, the network log from Step 3 catches most of the same requests from the browser side.
Step 5. Give every item a verdict. Four buckets, each with a concrete action:
| Verdict | When it fits | What it means in practice |
|---|---|---|
| Keep | Needed, delivers through a theme app extension, loads only where used | Nothing to do, this is what a healthy app looks like |
| Limit | Needed, but loads everywhere instead of where used | Ask the vendor for template-scoped loading, or defer the widget until interaction |
| Defer | Nice-to-have (chat, video, social proof) | Load after the first paint or on click; never compete with the first image |
| Remove | Unused, abandoned, duplicated, or its vendor missed earlier deadlines | Uninstall and strip ghost code from the theme; note that removal frees speed and subscription cost at once |
What a year of leftovers costs: a worked example
Take a mid-size store and make every assumption explicit so you can plug in your own numbers:
- Revenue: $80,000/month, 72% from mobile (typical for consumer D2C) → $57,600/month mobile.
- Mobile sessions: 43,200/month; mobile conversion rate 1.8%; mobile AOV $74 → ~778 mobile orders/month.
- The audit finds three leftover scripts from uninstalled apps (an old countdown-bar pixel, a dead review badge, an abandoned chat loader). Together they add roughly 1.3 seconds to mobile LCP on product and collection pages.
- Retail LCP benchmarks put the conversion lift from a one-second mobile improvement in the 4–10% relative range; taking a conservative 6%:
Cleanup drops mobile LCP from ~3.9 s to ~2.6 s → 778 × 6% ≈ 47 additional orders/month ≈ $3,500/month ≈ $42,000/year.
Against that, the fix is small: a focused cleanup or a one-time theme and app audit costs a fraction of the first month’s recovered revenue. Even if your store is a quarter of this size, the math clears easily. And the same pass cancels the subscriptions of the removed apps, a store carrying twelve overlapping micro-apps typically burns $100–300/month on tools doing half a job.
This is the storefront half of the app-sprawl story. The subscription half (what twelve micro-apps cost and when consolidation pays back) is in our app-tax breakdown; the March 2027 deadline simply puts a date on when the cleanup stops being optional.
When you don’t need this
Some stores can skip this audit almost entirely:
- If every app in your stack is a recent theme-app-extension build, your theme has zero hand-edited snippets, and your field Core Web Vitals are green, just confirm your vendors migrated off script tags (they had to migrate or stop loading anyway).
- If your store is slow because of 4 MB hero images or a bloated third-party theme, a script-tag audit won’t move the needle, run a theme and asset pass instead.
- If 90% of your revenue comes from repeat B2B buyers on desktop via direct links, mobile LCP isn’t your bottleneck.
The audit’s value scales with your app churn. Stores that have been live more than two years and cycled through a dozen seasonal apps almost always find leftovers.
What to do before March 1, 2027
- Run the five-step audit now: Step 4, the script-tag inventory via Admin API, has a hard expiration date.
- Ask each critical vendor for its migration status in writing. Vendors have known since August 24, 2026; a vendor that can’t give you a straight answer is a feature that disappears on March 1.
- Build the removal list with your card statement open, not just your theme editor, every “remove” verdict recovers speed and monthly cash at once.
- For operational glue that no public app does cleanly (order routing, bundle deductions, supplier syncs), use the deadline to consolidate into one owned custom app instead of installing another single-purpose plugin, the same play as the January 2027 token cutoff (inspect a live consolidated Shopify operations app at polaris.kamensky.dev).
Need help clearing the store before the deadline?
Andrey Kamensky (kamensky.dev) runs fixed-scope app-stack and speed audits for Shopify merchants, inventory, ghost code, script tags, and a keep/limit/defer/remove plan you can hand to any developer. Book a 20-minute fit call → or start with an Operations & Data Audit.
Sources & further reading
- Shopify Changelog: Script tags are deprecated and will stop running on March 1, 2027: the two dates, API behavior, “applies to all API versions” (announced August 24, 2026; re-verified November 17, 2026)
- Shopify Docs: Storefront script tags: migration target (theme app extensions, web pixels), order status page already migrated
- Shopify Docs: Use theme app extensions instead of script tags: the security rationale (“merchants can’t see or turn off” the loaded URL)
- Shopify Help Center: Uninstalling apps: apps can leave code behind on uninstall
- web.dev: Core Web Vitals: LCP / INP / CLS thresholds and p75 semantics
- After Shopify’s August 26, 2026 Thank-You Page Cutoff: Fixing Broken Conversion Tracking in Customer Events: migrating dead
Additional Scriptsto Web Pixels & official sales channels - Shopify Expiring Offline Access Tokens: What Breaks Before January 1, 2027: the other 2027 cleanup deadline, and the custom-app consolidation play
- The Real Cost of Shopify App Sprawl: what twelve subscriptions do to a store before speed even enters the picture
- The Shopify Stack Tax: Why D2C Merchants Pay $400–800/Month: the cost math behind the removal list
Frequently asked questions
Do I need to change anything in my Shopify admin before March 1, 2027?
No admin setting fixes or removes script tags, they belong to apps and are invisible in the theme editor. Your work before the deadline is an audit: list what still loads, ask each vendor for its migration status, and remove code from apps you no longer use. If a widget or pixel matters to your store, confirm the app now delivers it through a theme app extension or web pixel instead.
How do I find script tags when they are not visible in the theme code?
Script tags never appear in your Liquid files. Shopify injects them at page load, which is exactly why merchants cannot see or control them. Find them from the shopper's side: open your store in Chrome, use the Network panel, filter by the `domain:` of each app vendor, and compare against your app list. A developer with Admin API access can also list a store's script tags directly, and that read access still works today.
Will my store break on March 1, 2027?
Nothing crashes. What happens is quieter and easier to miss: whatever a script tag delivered stops loading, an analytics pixel stops firing, an upsell widget disappears, a review badge vanishes. Because the failure is silent, stores often notice weeks later as missing data or missing features, which is why the audit belongs on your calendar now, not after the cutoff.