Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Shopify checkout.liquid deprecation: how to find and fix it

OPS-275High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

On Shopify Plus, checkout.liquid is a theme file that lets you edit the checkout page layout with your own HTML, CSS and JavaScript. Shopify has deprecated it in favour of checkout extensibility, a set of supported tools: checkout branding settings, checkout UI extensions, Shopify Functions and customer events (web pixels).

Why it costs you leads or sales

Checkout is the last step before revenue. Code in checkout.liquid often does important jobs: it fires ad and analytics purchase events, adds trust badges, validates fields, shows delivery messages, applies discount logic or loads upsell scripts. If those stop silently, orders may still come in while the data behind them goes wrong.

Where a checkout.liquid dependency breaks
  1. Product pageAdd to cart works
  2. CheckoutCustom code in checkout.liquid no longer runs
  3. Order placedOrder may still complete
  4. Purchase trackingPixel events never sent
  5. Ad optimisationPlatforms see no sales

The checkout still takes orders, but the custom code and purchase tracking that depended on checkout.liquid stop running.

Purchases reported vs actual ordersExample numbers
Purchases reported vs actual orders (example)Actual orders: 200 orders per week; Reported before: 190 orders per week; Reported after: 20 orders per week07715320019020Actual ordersReported beforeReported afterorders per week

Example: a store takes 200 orders a week. After checkout.liquid code stops running, ad platforms see far fewer purchases.

How to check if your site has it

Find what still depends on checkout.liquid
  1. Check your store plan and upgrade statusShopify

    In Shopify admin, go to Settings > Checkout. Shopify shows a notice if checkout.liquid customisations or Additional scripts still need to be upgraded.

  2. Open the checkout.liquid fileShopify

    Go to Online Store > Themes > Edit code and look for layout/checkout.liquid. Compare it with the default. Any added script, style or HTML is a dependency.

  3. Review Additional scriptsShopify

    In Settings > Checkout, check Order status page > Additional scripts and any other script boxes. Note each tracking snippet or custom script.

  4. List script tags from apps

    Check installed apps that add code to checkout or the thank-you page. Ask each vendor whether it supports checkout extensibility.

  5. Place a test order

    Walk through checkout in a private window with a test payment method if you have one set up. Watch the browser network tab for purchase events from GA4, Google Ads and Meta.

Common checkout.liquid uses and their replacements
What it didWhere it goes now
Tracking pixels and purchase eventsCustomer events (web pixels), in Settings > Customer events
Branding, colours, fonts, logoCheckout branding settings in the checkout editor
Extra fields, banners, upsellsCheckout UI extensions
Discount, shipping or payment rulesShopify Functions
Thank-you page scriptsCustomer events or thank-you page extensions

How to fix it

The fix is a migration: list every customisation, rebuild each with a supported tool, then retire the old code. Do it in a test or duplicate setup first where you can, and avoid running both old and new tracking live at once.

Migrate off checkout.liquid
  1. Inventory every customisation

    Write down each piece of code in checkout.liquid and Additional scripts, what it does and who owns it.

  2. Remove what you no longer need

    Old test snippets, dead tags and unused styling can simply be dropped.

  3. Rebuild branding in the checkout editorShopify

    Use Settings > Checkout > Customize to set logo, colours, fonts and layout without code.

  4. Move tracking to customer eventsShopify

    Use the native channel integrations (Google & YouTube, Meta, TikTok and similar apps) or add a custom pixel under Settings > Customer events. Avoid adding the same pixel twice.

  5. Rebuild functional featuresShopify

    Use a checkout UI extension from an app, or a developer-built one, for fields, banners and upsells. Use Shopify Functions for custom discount, delivery or payment logic.

  6. Upgrade the checkout and retire the old codeShopify

    Once the replacements work, follow the upgrade prompt in Settings > Checkout, then remove leftover code from checkout.liquid and Additional scripts.

Example custom pixel (Settings > Customer events) sending a purchase to the data layerjavascript
analytics.subscribe('checkout_completed', (event) => {
  const checkout = event.data.checkout;
  console.log('purchase', checkout.order.id, checkout.totalPrice.amount, checkout.currencyCode);
  // Replace the line above with your platform's purchase call.
});

How to confirm it's fixed

After the migration
  • Settings > Checkout shows no pending checkout.liquid or Additional scripts upgrade notice
  • A test order completes from product page to thank-you page
  • Custom fields, banners and rules still appear and work
  • GA4 DebugView or Realtime shows one purchase event with the right value and currency
  • Meta Events Manager and Google Ads show one purchase each, not two
  • The test order reaches the confirmation email and your order list
Checkout customisation

Unhandled

  • Code and tracking sit in checkout.liquid and Additional scripts
  • Nobody owns the upgrade
  • Purchases may disappear from ad reports

Migrated

  • Branding in checkout settings
  • Tracking in customer events
  • Custom features as extensions or Functions
  • Tested order after each change

How to prevent it happening again

Keep checkout changes safe
  • Keep a written list of every checkout customisation and its owner
  • Use supported tools only, not raw code in the checkout
  • Read Shopify's developer changelog and admin notices for deadline changes
  • Ask app vendors whether they support checkout extensibility before installing
  • Place a test order after every theme, app or checkout change
  • Add monitoring on the purchase journey so a silent break gets reported

How FunnelGuard handles this

FunnelGuard covers this issue only partly. It does not read your theme files or checkout settings, so it cannot tell you that checkout.liquid or Additional scripts still hold code, and it does not tell you which customisation is at risk.

What it can do is run your real customer journey on a schedule, from the EU or the US, and check each step and the tracking hits sent to GA4, Google Ads, Meta, TikTok, LinkedIn, Bing, Pinterest, Snapchat, X and Reddit. If the deprecation removes a script and a step or tracking hit stops, the failure is re-checked from a second region and you get one alert with a screenshot and a likely cause.

Questions people ask

What is checkout.liquid in Shopify?

checkout.liquid is a theme file that Shopify Plus stores used to customise the checkout with their own HTML, CSS and JavaScript. Shopify is replacing it with checkout extensibility, which uses supported tools instead of editing the checkout file.

Is checkout.liquid being removed?

Yes, Shopify has deprecated checkout.liquid and is moving Plus stores to checkout extensibility. Exact dates have differed by page type, so check the notice in Settings > Checkout and Shopify's changelog for your store.

Why did my Shopify purchase tracking stop after the checkout upgrade?

Tracking snippets placed in checkout.liquid or Additional scripts do not carry over to the upgraded checkout. Move them to customer events (web pixels) or the native channel apps, then test an order.

How do I migrate from checkout.liquid to checkout extensibility?

List every customisation, then rebuild each one: branding in the checkout editor, tracking in customer events, extra features as checkout UI extensions, and rules as Shopify Functions. Test a full order before removing the old code.

What replaces Additional scripts in Shopify?

Customer events (web pixels) replace most tracking scripts placed in Additional scripts. Thank-you page features can be rebuilt with checkout and thank-you page extensions.

Do I need Shopify Plus to use checkout extensibility?

Checkout branding and some features are available more widely, but customising checkout pages with extensions is mainly a Plus feature. Check Shopify's documentation for what your plan includes.

Can FunnelGuard detect checkout.liquid problems?

Only partly. It does not read your theme or checkout settings, but it runs your customer journey and checks steps and tracking hits, so it can alert you if a step or pixel stops working. You still need to audit the code by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.