Shopify Script Tag Deprecation: Migrate Your Tracking Pixels Before March 2027
By Eoin Villarin, 2026-10-23, updated 2026-10-28
Shopify stops running storefront script tags on March 1, 2027, and Order status page tags have already stopped. Audit your store and move tracking to web pixels without losing data.
How do I migrate tracking pixels before the Shopify script tag deprecation deadline?
Merchants should move tracking from script tags to Shopify web pixels before March 1, 2027, when Shopify stops injecting script tags into storefronts. The Shopify script tag deprecation already stopped Order status page tags and, since October 1, 2026, blocks apps from creating or updating them. Use official app pixels for Google and Meta, custom pixels for the rest.
Key takeaways
- Order status page script tags stopped for Plus stores on August 28, 2025 and other stores on August 26, 2026.
- Pinning an older API version does not delay the October 1, 2026 cutoff, which applies to all API versions.
- Code pasted directly into theme.liquid is not a script tag, so this deprecation does not switch it off.
- Compare GA4 and ad platform purchase counts against Shopify orders for the last 60 days to spot tracking gaps.
- App developers should replace ScriptTag with theme app extension embed blocks, web pixel extensions and customer account UI extensions.
The Shopify script tag deprecation is the quiet platform change most likely to break your conversion tracking between now and early 2027. Script tags are how many apps, and plenty of older tracking setups, inject JavaScript into storefronts and the Order status page. Shopify is switching them off in stages, and two of those stages have already passed.
Since October 1, 2026, apps can no longer create or update script tags at all. Script tags on the Order status page have already stopped running for every store. The final cutoff is March 1, 2027, when Shopify stops injecting script tags into storefronts entirely, and any tracking or widget that still depends on them goes dark.
This guide explains exactly what is affected, how to audit your store, and how to move tracking to Shopify web pixels without losing data. There are clear steps for merchants and working code for app developers.
What is the Shopify script tag deprecation timeline?
The deprecation has rolled out in phases since early 2025. Here are the dates that matter, taken from Shopify's developer documentation:
| Date | What changed | Who is affected |
|---|---|---|
| February 1, 2025 | Apps can no longer create script tags with an order_status or all display scope | App developers |
| August 28, 2025 | Script tags stop running on the Order status page | Shopify Plus stores |
| August 26, 2026 | Script tags stop running on the Order status page | All other stores |
| October 1, 2026 | scriptTagCreate and scriptTagUpdate return a user error, and the REST ScriptTag resource rejects POST and PUT | All apps, on every API version |
| March 1, 2027 | Shopify stops injecting script tags into storefronts | Every store still relying on them |
A store can look perfectly healthy today and lose its tracking overnight on March 1, 2027. Tracking failures rarely look like errors. The numbers just quietly stop.
Two details catch people out. First, pinning an older API version does not delay the October 1 cutoff, because Shopify's developer changelog says it applies to all versions. Second, existing storefront script tags keep running until March 1, 2027, so nothing warns you in advance.
Shopify's official script tag deprecation guide maps each use case to a replacement: theme app extensions for JavaScript on storefront pages, web pixels for analytics and conversion data, and customer account UI extensions for Order status page customizations.
Which tracking scripts break, and which keep working?
Scripts on a Shopify store come from several places, and only some of them are script tags. Knowing the difference saves a lot of unnecessary panic.
| Where the code lives | Affected? | Replacement |
|---|---|---|
| App-injected script tags (ScriptTag API) | Yes. Order status tags already stopped, storefront tags stop on March 1, 2027 | App embed block or app pixel |
| Additional scripts on the Thank you and Order status pages | Yes. Removed when stores moved to the upgraded pages | Custom pixel or app pixel |
| checkout.liquid on Thank you and Order status pages | Yes. Already sunset | Checkout and customer account UI extensions, plus pixels |
| Code pasted directly into theme.liquid | Not a script tag, so not part of this deprecation | Still worth moving to pixels to capture checkout events |
| App pixels and custom pixels in Customer events | No. This is the supported path | Already migrated |
How to check whether your store is affected
- Open your checkout settings and review the checkout customizations report. Apps flagged as "Requires update by app developer" still rely on deprecated methods.
- List every installed app that handles tracking, reviews, chat, popups or upsells, and check each app's changelog or support docs for script tag migration notes.
- Open your storefront in Chrome DevTools, go to the Network tab and filter by JS. Note scripts loading from app domains rather than your theme files or Shopify's CDN.
- Go to Settings > Customer events and note which app pixels and custom pixels are already connected.
- Compare purchase counts in Google Analytics 4 and your ad platforms against Shopify orders for the last 60 days. A sudden drop after late August 2026 points straight at the Order status page change.
Web pixels explained: app pixels vs custom pixels
Web pixels are Shopify's replacement for tracking scripts. They run in a sandbox, subscribe to a standard stream of customer events, respect the store's customer privacy settings and, crucially, work across the storefront, checkout, Thank you page and Order status page.
- App pixels are installed by apps, including the Google & YouTube and Facebook & Instagram sales channels. They need no code from you, and the app provider maintains them.
- Custom pixels are JavaScript you add yourself under Settings > Customer events. Use them for platforms without an app pixel, or for custom events and logic.
Shopify publishes 15 standard events that pixels can subscribe to, including page_viewed, product_viewed, collection_viewed, search_submitted, product_added_to_cart, cart_viewed, checkout_started, payment_info_submitted and checkout_completed. The full list is in the Web Pixels API standard events reference.
For Google Analytics and Meta, use their official sales channels wherever possible. Shopify's pixel migration guide notes that Google Analytics converted to a custom pixel can lose features such as enhanced and cross-domain measurement, and recommends moving Meta pixels to the Facebook & Instagram channel for the most accurate tracking.
How to migrate tracking pixels to custom pixels, step by step
If a platform has no official app pixel, or you rely on custom events, migrate to a custom pixel. Shopify's recommended sequence is:
- Create a custom pixel that subscribes to the standard and custom events you need.
- Remove or replace the old pixel code in theme files and any leftover Additional scripts.
- Add the custom pixel under Settings > Customer events.
- Connect the custom pixel. A saved pixel tracks nothing until it is connected.
There is a timing trade-off. Connecting the new pixel before removing old code avoids missed events but can double count for a short period. Removing old code first avoids duplicates but risks gaps. I usually connect first during a quiet trading window, then remove the old code straight away.
Example: a purchase event custom pixel
This custom pixel listens for checkout_completed and pushes a GA4-style purchase event into a data layer. Adjust the payload to match the platform you are sending to:
// Settings > Customer events > Add custom pixel
analytics.subscribe("checkout_completed", (event) => {
const checkout = event.data.checkout;
const payload = {
event: "purchase",
transaction_id: checkout.order?.id,
value: checkout.totalPrice?.amount,
currency: checkout.currencyCode,
items: checkout.lineItems.map((item) => ({
item_id: item.variant?.sku,
item_name: item.title,
quantity: item.quantity
}))
};
window.dataLayer = window.dataLayer || [];
window.dataLayer.push(payload);
});
Custom pixels run in a sandboxed environment, so they cannot directly manipulate your storefront page. Load only the official SDK of the platform you are sending data to, and keep each pixel focused on one destination so problems are easy to isolate.
Replace custom events with Shopify.analytics.publish
If your old setup fired custom events from theme code, such as fbq("trackCustom", "my_custom_event"), Shopify's migration guide says to publish them through Shopify instead and subscribe to them inside your pixel:
// In the theme, for example when a size guide opens
Shopify.analytics.publish("size_guide_opened", { productId: "123" });
// In the custom pixel
analytics.subscribe("size_guide_opened", (event) => {
console.log(event.customData);
});
For app developers: replacing ScriptTag with app embeds and web pixel extensions
If you build or maintain a Shopify app, the October 1 cutoff means any code path that calls scriptTagCreate already fails. The scriptTags query and scriptTagDelete mutation still work, so start with an audit of what your app has installed on each store:
query ScriptTagAudit {
scriptTags(first: 50) {
edges {
node {
id
src
displayScope
createdAt
}
}
}
}
Then map each tag to its replacement:
- Storefront JavaScript such as widgets, reviews or chat: ship an app embed block in a theme app extension, which merchants switch on in the theme editor.
- Analytics and conversion tracking: build a web pixel extension. Once your app activates it, the merchant does not need to do anything.
- Order status page content: build customer account UI extensions. These only work on stores with upgraded Thank you and Order status pages, which you can check with the
CheckoutProfileobject.
If extensions are new to you, my guide to Shopify Checkout UI extensions covers the extension model and tooling.
Generating and configuring a web pixel extension
Generate the extension with the Shopify CLI:
shopify app generate extension --template web_pixel --name my-web-pixel
The extension's shopify.extension.toml declares the sandbox, privacy purposes and merchant settings. If you override the default privacy settings, you must declare all four purposes:
type = "web_pixel_extension"
name = "my-web-pixel"
runtime_context = "strict"
[customer_privacy]
analytics = true
marketing = true
preferences = false
sale_of_data = "enabled"
[settings]
type = "object"
[settings.fields.accountID]
name = "Account ID"
description = "Your analytics account ID"
type = "single_line_text_field"
Then subscribe to events in the extension's entry file:
import { register } from "@shopify/web-pixels-extension";
register(({ analytics, settings }) => {
analytics.subscribe("checkout_completed", (event) => {
const checkout = event.data.checkout;
fetch("https://collect.example.com/events", {
method: "POST",
keepalive: true,
body: JSON.stringify({
account: settings.accountID,
orderId: checkout.order?.id,
value: checkout.totalPrice?.amount,
currency: checkout.currencyCode
})
});
});
});
Add the write_pixels and read_customer_events access scopes, then activate the pixel on each store with the webPixelCreate mutation. When it succeeds, the pixel appears as Connected under Settings > Customer events > App pixels. Shopify's build web pixels tutorial has the full walkthrough.
Finally, delete old tags with scriptTagDelete once the replacement is live. Apps that still rely on script tags without UI extensions or web pixels appear as "Requires update by app developer" in each merchant's customizations report, and Shopify warns that some merchants uninstall apps listed there.
How to test tracking after the migration
A migration is only finished when the numbers line up. Run these checks before you remove any safety nets:
- Connection status: confirm each pixel shows as Connected in Customer events, then use the Shopify Pixel Helper browser extension to see which events fire.
- Test orders: place orders using your payment provider's test mode, or a development store, and follow them through to each analytics platform.
- Duplicates: make sure each event fires once. Search theme files for leftover SDK calls like
fbq(orgtag(that might still be loading. - Consent: test with tracking consent accepted and declined, and confirm your cookie banner syncs consent through Shopify's Customer Privacy API.
- Like-for-like comparisons: compare GA4 with GA4 and Meta with Meta over time, rather than comparing different platforms against each other.
- Daily monitoring: watch purchase counts closely for two weeks after go-live.
Clean tracking matters even more as new channels appear. Orders referred from ChatGPT land on your own checkout, as I explain in my guide to agentic commerce on Shopify, so your pixels need to be right to see them.
What should merchants do before March 1, 2027?
With peak season close and the final cutoff a few months away, here is the order I would tackle it in:
- Now: confirm purchase tracking works on the upgraded Thank you and Order status pages, because that is where conversion data is most often already missing.
- Before Black Friday: move Google and Meta tracking to their official app pixels and test them thoroughly.
- December to January: audit every app for script tag use, contact developers about their migration plans and line up replacements for any app that has gone quiet.
- February 2027: remove leftover theme code, confirm every widget runs as an app embed, and run a full test order cycle.
- Early March 2027: check storefront widgets and tracking the week the cutoff lands.
If you want to see the kind of Shopify Plus build this work sits within, take a look at the Real Mad Honey case study.
Frequently asked questions
Do script tags still work on my Shopify store right now?
Partly. Existing script tags on storefront pages keep running until March 1, 2027. Script tags on the Order status page have already stopped, for Plus stores since August 28, 2025 and for all other stores since August 26, 2026. Since October 1, 2026, apps cannot create or update script tags at all, on any API version.
Does the Shopify script tag deprecation affect code in theme.liquid?
No. Code pasted directly into theme.liquid is not a script tag, so this deprecation does not switch it off. However, theme code cannot see checkout events the way web pixels can, and it often duplicates app pixels. Moving tracking into app pixels or custom pixels is still the more reliable, privacy-aware option for most stores.
Will my Google Analytics and Meta tracking stop working?
Not if they run through the Google & YouTube and Facebook & Instagram sales channels, which use app pixels. Tracking that relied on Additional scripts, checkout.liquid or app script tags on the Order status page has likely already stopped capturing purchases. Compare recent purchase numbers against Shopify orders to find any gap quickly.
What happens if an app I use has not migrated?
Its storefront features stop working on March 1, 2027 when Shopify stops injecting script tags. The app will usually appear as needing an update in your checkout customizations report. Contact the developer for a migration date, and if there is no clear answer, plan a replacement app well before the cutoff.
Next steps: migrate once and track with confidence
The script tag deadline is a good excuse to rebuild tracking properly: official app pixels for major platforms, focused custom pixels for everything else, and no leftover code firing twice. Do it before peak season and you will trust your numbers again.
If you need a Shopify developer to audit your apps and tracking or to build web pixel and theme app extensions, reach out through my contact form, or browse my case studies to see the Shopify and Shopify Plus stores I have worked on.