Shopify checkout extensibility tracking: what still works
By Devendra Variya, co-founder of Virling. Published 2026-11-25.
Shopify checkout extensibility tracking runs through pixels, not pasted scripts. Code in checkout.liquid, in Additional scripts, or in an app's script tag no longer runs on the thank you and order status pages. App pixels and custom pixels still report purchases, from inside a sandbox. Attribution that never needed a checkout script is unaffected: if your store writes a visitor ID to the cart, Shopify copies it onto the order, and your analytics reads it from the order. So move each ad pixel to its app or a custom pixel, and check that new orders carry the ID.
What Shopify changed, and when
Everything in this table is from Shopify's own developer pages, read on 2026-11-25. Shopify can change these dates, so follow the link before you plan around one.
| Where the code was | What Shopify says | Source |
|---|---|---|
checkout.liquid on the information, shipping and payment steps | Unsupported | checkout.liquid |
checkout.liquid and additional scripts on the thank you and order status pages | Sunset on August 28, 2025 | checkout.liquid |
| Script tags on the order status page, Plus stores | Stop running on August 28, 2025. Apps could not create new ones from February 1, 2025 | order status script tags |
| Script tags on the order status page, all other stores | Stop running on August 26, 2026 | order status script tags |
| Script tags on storefront pages | Cannot be created or updated after October 1, 2026, and stop loading on March 1, 2027 | storefront script tags |
A script tag here is a record that an app creates through Shopify's API to load JavaScript on your store. A tag you paste into theme.liquid yourself is theme code, not one of those records. For tracking, Shopify's replacement is a web pixel; for content on the order status page, it is a customer account UI extension.
What a pixel can and cannot do
Shopify says pixels load on the storefront, checkout, thank you page and order status page, and that they run in a sandbox (how pixels work, read on 2026-11-25). There are two kinds. An app pixel comes with an app, and a custom pixel is code you add under Settings, Customer events. Four limits matter for tracking:
- No page to read. A pixel sandbox cannot detect events, emails or phone numbers by scraping the page, and cannot show buttons, forms or banners.
- JavaScript only, in a frame. A custom pixel runs in an iframe that cannot access the top frame. Reading the page address there returns the sandbox's URL, unless you take it from the event (about web pixels).
- One purchase event, if the page loads.
checkout_completedfires once for each checkout, usually on the thank you page. With upsells it fires on the first upsell offer page instead. If that page fails to load, Shopify says the event is not triggered at all (checkout_completed). - Consent decides. In markets set to require consent, web pixels run only when the visitor has given the permissions the pixel asks for. New pixels ask for Marketing and Analytics by default.
All of these pages were read on 2026-11-25. Shopify also says it does not support adding and using custom pixels, and recommends looking for an app first (creating custom pixel code).
Which tracking breaks
| Tracking | After the move | What to do |
|---|---|---|
| Ad pixel pasted into additional scripts | Stops | Use the ad platform's app, or a custom pixel subscribed to checkout_completed |
Google Tag Manager in checkout.liquid or additional scripts | Stops | Run it as a custom pixel. Shopify says the sandbox limits still apply to the tags it loads |
| App that tracked sales with a script tag on the order status page | Stops | Update to a version with a web pixel, or replace the app |
| Script that read the order total or email from the thank you page | Stops, and has no page to read in a pixel | Take the values from the event, or read the order on a server |
| App that loads a script on storefront pages with a script tag | Until March 1, 2027 | Ask the developer about an app embed block or web pixel |
Script and cart snippet in theme.liquid | Keeps working on store pages | Nothing, but check the live theme has both |
| Orders read from the Admin API | Not affected: no checkout page is involved | Nothing |
The pattern is simple. Tracking that started on the last page of checkout has to become a pixel. Tracking that starts on your store pages and ends on the order has nothing to move.
Why an ID on the cart does not depend on a checkout script
A cart is made on your storefront, before checkout. Shopify's developer docs say that attributes set on a cart carry over to the resulting order after checkout (Attribute, read on 2026-11-25). So the steps are:
- A visitor lands on your store from a tagged link. Your analytics script records the visit and its source, and gives the visitor an ID.
- A snippet on your store pages writes that ID to the cart as an attribute.
- The buyer goes through checkout. No code of yours runs there, and none needs to.
- The order has the ID in its note attributes. Your analytics reads the order from Shopify and joins it to that visitor's earlier visits.
If the buyer closes the tab before the thank you page loads, the order is still in Shopify, ID included. Refunds work the same way: they are on the order, and no page has to open for them to count. That is the main idea of server-side revenue tracking. For Virling, the attribute is virling_vid, and this snippet goes in theme.liquid, after the Virling script:
<script>
addEventListener("load", function () {
var vid = window.virling && virling.vid && virling.vid();
if (vid) fetch("/cart/update.js", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ attributes: { virling_vid: vid } })
});
});
</script>The full method is in how to track Shopify revenue by traffic source. A headless store has no theme.liquid, so it sets the same attribute from its own cart code, as in the Shopify docs.
What the cart ID does not cover
- Ad platforms. It tells you which visit led to an order. It does not send a purchase to an ad account, so an ad platform still needs its own pixel or server connection.
- Blocked scripts. If an ad blocker, a consent choice or cookieless mode stops the script or its cookie, there is no ID to store.
- Carts made elsewhere. Cart permalinks, Buy Button embeds, draft orders and other sales channels do not use your storefront's cart, so they have no ID.
- Buttons that skip the cart. An express or Buy it now button may leave the ID out. Place a test order with each one you use.
In Virling, an order with no ID can still match by email, if its email is the same as one your site sent as an identify event. Otherwise it counts as revenue and shows as Unattributed. Other ways an order loses its source are in why Shopify orders show up as Direct.
Check list for a store that has moved
- List what you had. Find any saved copy of the old additional scripts and
checkout.liquid, and write down each tag and what it reported. - Find its new home. Give every tag on the list an app pixel, a custom pixel, or a decision to drop it.
- Open Customer events. In Settings, Customer events, check that each custom pixel shows as connected. A saved pixel that is not connected tracks nothing.
- Remove duplicates. Shopify says to remove old pixel code, such as in
theme.liquid, so customer events are not counted twice (managing custom pixels). - Check permissions. Look at what each pixel asks for, and test with consent given and refused in a market that requires it.
- Check the live theme. Theme code belongs to one theme. If you changed themes along with checkout, the analytics script and the cart snippet have to be in the new one.
- Ask about storefront script tags. For each app that loads a script on your store, ask its developer what happens on March 1, 2027.
- Place a test order. Open a tagged link in a private window, add a product, go to checkout from the cart and pay in test mode. In the order, check that the additional details include your visitor ID.
- Try each way to buy. Repeat with every express button, and with an upsell if you use one.
- Compare a week. Count orders in Shopify, purchases in each pixel, and orders that carry the ID, for the same seven days.
A made-up week, compared
These numbers are invented to show the arithmetic, and are not a benchmark. The store's online orders for the week are all counted in the first row.
| Made-up numbers | Orders | Share of Shopify orders |
|---|---|---|
| Online store orders in Shopify | 200 | 100% |
| Purchases reported by a custom pixel | 164 | 82% |
| Orders with a visitor ID in note attributes | 186 | 93% |
The pixel missed 36 orders and the cart ID missed 14. Those are two different problems. For the pixel, check consent, connection and upsell pages. For the 14, open each order in Shopify and look for what they share: the same express button, a permalink, or a date before the snippet was on the live theme. If your pixel reports more purchases than there are orders, look for old code that still runs next to it.
Read revenue by channel after the move
Once orders carry the ID, Virling reads them with the Admin API token of a custom app that has only the read_orders scope. It imports the last 60 days on the first run, then new orders and refunds every minute, and the Channels card shows revenue per channel and campaign. Orders from before the snippet was in place have no ID, so most of them stay Unattributed. Setup is on the Shopify integration page. For the tags on your links and where Shopify itself shows them, see Shopify UTM tracking.
Virling is open source. Self-host it free, or start the hosted version with a 14-day free trial.
Frequently asked questions
Does Shopify checkout extensibility break conversion tracking?
It ends tracking that relied on checkout.liquid, additional scripts or an app's script tag on the thank you and order status pages. Tracking that runs as an app pixel or custom pixel works there, and so does reading orders from the Admin API.
What replaces additional scripts in Shopify?
For tracking, Shopify points to app pixels and custom pixels, which are managed under Settings, Customer events. For content shown on the thank you and order status pages, it points to apps and UI extensions.
When did Shopify script tags stop working on the order status page?
Shopify's dates are August 28, 2025 for Plus stores and August 26, 2026 for all other stores. Storefront script tags have a separate date, March 1, 2027. These are from Shopify's developer pages, read on 2026-11-25.
Can a custom pixel read the thank you page?
Not the page itself. A custom pixel runs in a sandboxed iframe that cannot access the top frame. It receives events instead, such as checkout_completed, which carry the checkout data.
Do cart attributes still reach the order?
Yes. Shopify's developer docs say attributes set on a cart carry over to the resulting order after checkout. The store's cart sets the attribute before checkout, so no script on the checkout or thank you page is involved.
Does Virling need a checkout script or a Shopify pixel?
No. Virling uses its script and a short cart snippet in theme.liquid, then reads paid orders and refunds with a custom app token that has only the read_orders scope.
See which channels bring your Shopify orders
Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.