On 1 March 2027, Shopify stops loading script tags on storefronts. Any review widget, chat bubble, popup, upsell box or tracking code that still loads this way will simply stop working on that day. Nothing breaks loudly. The widget is just gone, or the sales stop showing up in the ad account.
That is less than three months away, and a lot of stores still have them. Older apps, custom apps an agency built years ago, and tracking tools that asked the merchant to "create an app and paste the token here" all used script tags.
This post is the process I use to check a store and fix it:
- Find every script tag on the store.
- Work out who owns each one.
- Pick the right replacement.
- Switch over without a gap and without loading the script twice.
What a script tag is
A script tag is a record an app creates through the Admin API. It holds the URL of a JavaScript file. Shopify then adds that file to every storefront page for the app, without the app touching the theme.
It was the easy way to add an app to a store, which is why so many apps used it. The downside is that the merchant cannot see it anywhere in the admin, and the code runs on every page whether it is needed or not.
The dates
From Shopify's own deprecation page:
- 26 August 2026: script tags stopped running on the Order status page for Plus stores.
- 1 October 2026: nobody can create or update a script tag.
scriptTagCreateandscriptTagUpdatereturn a permission error on every API version. Existing script tags keep running. - 1 March 2027: Shopify stops adding script tags to storefront pages. The script no longer loads.
Pinning an older API version does not help. The change applies to all of them.
1. Find every script tag on the store
You don't need an app or API access for this. Shopify puts every script tag on the page inside a small function called asyncLoad, so you can read them straight from the storefront.
Open the live store, view the page source and search for asyncLoad. If the store has script tags, you will see something like this:
function asyncLoad() { if (isLoaded) return; isLoaded = true; var urls = [ "https://cdn.reviews-app.com/widget.js?shop=your-store.myshopify.com", "https://static.subscriptions-app.com/widget.min.js?shop=your-store.myshopify.com" ]; // ...adds each URL as a <script> tag } Every URL in urls is one script tag. If there is no asyncLoad in the source, the store has none and you are done.
To get a clean list, open the browser console on the storefront and paste this:
[...document.scripts] .map((s) => s.textContent.match(/var urls = (\[.*?\]);/)) .filter(Boolean) .flatMap((m) => JSON.parse(m[1])) .map((u) => new URL(u).hostname); It returns the domain of each script, for example ["cdn.reviews-app.com", "static.subscriptions-app.com"]. An empty array means no script tags. I tested it on a live store with three script tags and on my development store with none.
Check the homepage, a product page and the cart. Some script tags only load on certain pages.
2. Work out who owns each one
The domain usually tells you the app. Match it against Settings > Apps in the admin. Each script tag falls into one of four groups, and each group has a different fix.
An app from the Shopify App Store. The app developer has to move it. Check whether the app has released a new version: many already ship an app embed and only need it switched on (more on that below). If the app has not been updated for a year, plan to replace it.
A custom app your team or another developer built. That is on you or them. Use the replacements in the next section.
A custom app created in the Shopify admin. These are the apps made under Settings > Apps > Develop apps, not with Shopify CLI or the Dev Dashboard. Shopify's guide is clear that they cannot use app extensions, so they cannot use theme app extensions or web pixels either. The fix is to move the script into the theme.
A tracking or marketing service that asked the merchant to create an app and paste a token. That service has to release a proper app with a theme app extension or a web pixel. Ask them what their plan is now, not in February.
If you maintain the app: check its script tags with the API
The scriptTags query only returns the script tags of the app making the call. You will not see other apps' script tags with it, which is why the storefront check above comes first. For your own apps, run it with the token the app already has on each store:
query ScriptTags { scriptTags(first: 50) { nodes { id src displayScope cache createdAt updatedAt } } } The screenshot is from Shopify's public GraphiQL explorer, which runs on demo data. Against a real store, call it with the app's token:
curl -s "https://your-store.myshopify.com/admin/api/2026-10/graphql.json" \ -H "Content-Type: application/json" \ -H "X-Shopify-Access-Token: $SHOPIFY_TOKEN" \ -d '{"query":"{ scriptTags(first: 50) { nodes { id src displayScope } } }"}' Reading and deleting still work after 1 October, so you can always audit and clean up. If displayScope is ORDER_STATUS or ALL, the script also ran on the Order status page, which is on the earlier schedule.
3. Pick the replacement
- Shows something on the store (widget, popup, badge, chat): an app embed block in a theme app extension.
- Only tracks events (ads, analytics, affiliate): a web pixel.
- Customises the Order status page: customer account UI extensions.
- Belongs to a custom app created in the admin: a script in the theme.
App embed blocks
An app embed block is part of a theme app extension. It loads the same JavaScript the script tag did, works on vintage and Online Store 2.0 themes, and the merchant can see it and switch it off in the theme editor:
The block itself is small:
{% comment %} extensions/storefront-widget/blocks/app-embed.liquid {% endcomment %} <script src="{{ 'widget.js' | asset_url }}" defer></script> {% schema %} { "name": "Storefront widget", "target": "body", "settings": [] } {% endschema %} Two things catch people out:
- An app embed is off until someone switches it on. After an app moves from a script tag to an embed, its feature disappears until the merchant enables it under Online Store > Themes > Customize > App embeds. This is the most common "the app stopped working" ticket after the migration.
- It is enabled per theme. If the store publishes a new or duplicated theme, check the embed again on that theme.
Web pixels
If the script only collects data, a web pixel is the simplest replacement. It does not need the theme editor at all. An app creates its pixel with webPixelCreate. A merchant can add their own under Settings > Customer events > Add custom pixel:
analytics.subscribe("product_added_to_cart", (event) => { const line = event.data.cartLine; fetch("https://track.example.com/collect", { method: "POST", keepalive: true, body: JSON.stringify({ event: "add_to_cart", sku: line.merchandise.sku, value: line.cost.totalAmount.amount, }), }); }); analytics.subscribe("checkout_completed", (event) => { const checkout = event.data.checkout; fetch("https://track.example.com/collect", { method: "POST", keepalive: true, body: JSON.stringify({ event: "purchase", order_id: checkout.order?.id, value: checkout.totalPrice?.amount, currency: checkout.currencyCode, }), }); }); Pixels run in a sandbox, so they cannot read or change the page. That is fine for tracking, and it also works on checkout pages, where an old script tag never could. If the script needs to show something, it belongs in an app embed instead.
A script in the theme
For a custom app created in the admin, Shopify's advice is to move the script into the theme, ideally with a Custom Liquid block rather than editing theme files:
<script src="https://cdn.example.com/widget.js" defer></script> Add it in the theme editor (Add section > Custom Liquid) in the footer group so it loads on every page. Remember that code in the theme stays there after the app is gone, so note it somewhere the next developer will find it.
4. Switch over without a gap
The order matters:
- Ship the replacement (app embed, pixel or theme script).
- Turn it on on the published theme, and check it in the storefront.
- Delete the old script tag with
scriptTagDelete, or by updating or removing the app that created it.
If you delete first, the store has nothing running until the replacement goes live. If you leave both running, the script loads twice: analytics events get counted twice and widgets can show up twice. Run the console snippet again after the switch. The domain should be gone from the list, and the feature should still work.
After 1 March 2027, leftover script tag records do nothing, so you don't have to chase every last one. The point is to make sure nothing the store needs is still sitting in that list.
The checklist
- Storefront checked for
asyncLoadon the homepage, a product page and the cart - Every script tag domain matched to an app or service
- App Store apps: updated version installed, app embed switched on
- Your own apps: replaced with an app embed or web pixel, then
scriptTagDelete - Admin-created custom apps: script moved into a Custom Liquid block in the theme
- Tracking services that use pasted tokens: asked for their replacement date
- Order status page scripts moved to customer account UI extensions
- Console snippet run again: list empty, features and tracking still working
- Embeds checked again whenever a new theme is published
The deadline is 1 March, but the stores that will notice are the ones that find out on 2 March. A two-minute check now is all it takes to know which group yours are in.
Sources: Shopify: Script tag deprecation, Shopify: Storefront script tags, Shopify: Order status script tags, Admin GraphQL API: scriptTags, Shopify: Theme app extensions, Shopify: Web pixels, Shopify developer changelog.
Let's Work Together
Want me to check your stores, or your clients' stores, before March? Contact me here: LinkedIn



