All posts

How to Find Shopify Script Tags Before They Stop Loading

Some apps on your Shopify store might stop working on March 1, 2027, and nothing in your admin will warn you. Your reviews widget, chat bubble, pop-up or tracking pixel could simply vanish from your storefront while the app still looks installed and healthy.

The cause is a change most merchants haven't heard about. Shopify is retiring script tags, one of the oldest ways apps add code to a store. The good news is that checking your store takes about five minutes, and fixing it is usually a toggle or an app update. Here is how I'd do it.

What is changing and when

A script tag lets an app load JavaScript on your storefront without touching your theme code. For years it was the easy way for apps to add widgets and tracking. Shopify has offered a better replacement since 2021, but plenty of older apps never moved.

The timeline has two dates that matter.

  • October 1, 2026. Apps can no longer create or update script tags. Existing ones keep running, so nothing looked broken.
  • March 1, 2027. Shopify stops loading script tags on storefronts entirely. Any feature that still depends on one stops working on that store.

Script tags on the Order status page already stopped running earlier, so this final step covers every other page of your store.

One honest caveat. Shopify staff said they would watch script tag usage through the end of 2026 and revisit the timeline in January. The date could move. I wouldn't plan around that, though. A fix done early costs nothing, and a fix done late costs sales.

Why this one is easy to miss

Most Shopify deprecations come with loud warnings. This one is quieter.

  • Nothing errors out. The app stays installed, its settings page still loads, and your admin looks normal. The feature just stops appearing for customers.
  • The planned warning banner was dropped. Shopify originally planned a banner for merchants installing apps that use script tags. It decided not to ship it.
  • Uninstalled apps can leave traces. Some stores still try to load scripts from apps that were removed long ago, which slows pages down for no reason.

Check your store in five minutes

You don't need to be a developer for this. Script tags show up in your storefront's page source, inside a small loader function Shopify adds called asyncLoad.

The quick way

  1. Open your live store's homepage in Chrome or Edge.
  2. Right-click anywhere and choose View page source.
  3. Press Ctrl+F, or Cmd+F on a Mac, and search for asyncLoad.
  4. If you find it, look at the list of web addresses right below it. Each one is a script tag, and the domain usually tells you which app it belongs to.

If asyncLoad doesn't appear at all, your store has no storefront script tags. You're done.

The faster way for developers

Open your storefront, open the browser console, and paste this. It reads the same loader function and prints a clean list of every script tag URL.

const urls = [...document.scripts]
  .map((s) => s.textContent)
  .filter((t) => t.includes('asyncLoad'))
  .flatMap((t) => {
    const match = t.match(/var urls = (\[.*?\]);/s);
    return match ? JSON.parse(match[1]) : [];
  });
console.log(urls.length ? urls : 'No script tags found on this page');

It runs as pasted and doesn't change anything on the page. Copy the list into a note, because you'll work through it in the next step.

Fix each script tag

Match every URL on your list to an app, then work out which of these four situations you're in.

1. The app is still installed and maintained

Check the app's listing or changelog, or ask its support team, whether it has moved to an app embed. Most active apps have. App embeds are the modern replacement. They load the same code, but you control them from your theme editor.

Here is the catch that will trip up a lot of stores. Shopify has no way for an app to turn on its app embed for you. Even after the app updates, you may need to flip the switch yourself.

  1. Go to Online Store > Themes and click Customize on your live theme.
  2. Open the App embeds panel.
  3. Turn on the embed for each app on your list, then save.

App embeds are enabled per theme. If you publish a new theme later, check this panel again.

2. The script is only for tracking

Analytics, conversion and ad pixels should move to a web pixel, Shopify's sandboxed way to track customer events. Most marketing apps already ship one. If the app is yours, the replacement is the webPixelCreate mutation with the write_pixels and read_customer_events access scopes.

3. The app was removed years ago

If a URL belongs to an app you no longer use, it's dead weight. It will stop loading on March 1 anyway, so there's nothing to rescue. If it's slowing your store down today, ask the app's developer or Shopify Support to remove the leftover tag sooner.

4. A custom app or an outside service added it

Custom apps built in the Shopify admin can't use app extensions, so they can't use app embeds or web pixels. Whoever maintains that code needs to move the script into your theme, ideally in a custom Liquid block, or replace the integration. If a third-party service had you paste an access token into its dashboard, that service needs to release a proper app.

For app developers

If you build apps, this read-only Admin GraphQL query lists the script tags your app still owns on a store. It returns 50 at a time, needs the read_script_tags access scope and only shows tags your own app created.

query ScriptTagAudit($first: Int = 50, $after: String) {
  scriptTags(first: $first, after: $after) {
    nodes { id src displayScope updatedAt }
    pageInfo { hasNextPage endCursor }
  }
}

Shopify's recommended order is simple. Ship a theme app extension with an app embed block, deep link merchants into the theme editor with the embed turned on, confirm it's active on the published theme, then delete the script tag with scriptTagDelete. Don't delete the tag before the embed is live, or the feature disappears. Don't run both for long either, because the script loads twice and can double-count analytics.

What I'd watch for

  • Turning the embed on is the step people skip. An app can be fully migrated and still do nothing on your store because its embed is switched off.
  • Vintage themes need extra care. App embeds work on vintage themes too, but older custom code is more likely to be hard-wired around script tags. Test after every change.
  • Test on mobile and in a private window. Some widgets only load for new visitors or on certain pages.
  • Check again in January. If Shopify changes the timeline, it will announce it in the developer changelog.

The TL;DR

On March 1, 2027, Shopify stops loading script tags on storefronts, and affected features disappear without an error. Search your page source for asyncLoad to see if you're affected. For every URL you find, update the app and turn on its app embed in the theme editor, move tracking to a web pixel, or let dead scripts from old apps go. Five minutes now can save you a confusing support ticket in March.

For the bigger picture of where Shopify development is heading, read my predictions for Shopify development in 2027.

All posts