Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Shopify checkout.liquid scripts removed: restore checkout tracking

TRK-393High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

checkout.liquid was a theme file that let Shopify Plus merchants edit the checkout page and add their own scripts, such as ad pixels, analytics tags and chat widgets. Shopify replaced it with checkout extensibility, a newer system where checkout is customised through the checkout editor, apps and pixels instead of raw code.

Why it costs you leads or sales

Ad platforms learn from the conversions you send them. If checkout events vanish, Google Ads, Meta and others see fewer conversions than really happened. Smart bidding gets less data, reports show a drop in sales that did not occur, and you may cut budget on campaigns that work.

Where the tracking chain breaks
  1. Ad clickVisitor lands on the product page
  2. Add to cartTheme tags still fire
  3. Checkoutcheckout.liquid scripts ignored
  4. Platform conversionNo begin_checkout or purchase received
  5. Bidding dataAlgorithms optimise on partial data

The store still sells, but checkout events stop reaching ad platforms.

Conversions reported before and after the upgradeExample numbers
Conversions reported before and after the upgrade (example)Real orders: 100 conversions per week; Reported before upgrade: 92 conversions per week; Reported after upgrade: 18 conversions per week038771009218Real ordersReported before upgra…Reported after upgradeconversions per week

Example: illustrative numbers showing reported purchases dropping when checkout tags stop firing while real orders stay the same.

How to check if your site has it

Check whether checkout tags still fire
  1. See if you are on checkout extensibilityShopify

    In Shopify admin, open Settings > Checkout. If you use the checkout editor and see an upgrade or customisation banner, check whether your old checkout.liquid customisations were retired.

  2. Look for old scriptsShopify

    Check your notes, theme backups or Shopify's upgrade report for tags that lived in checkout.liquid, such as Google Ads, Meta, TikTok or Hotjar.

  3. Run a test checkout with a debug tool

    Open Chrome DevTools > Network, filter for collect, facebook.com/tr or your platform's endpoint, then go through cart and checkout steps. Missing requests on the checkout pages confirm the problem.

  4. Compare platform reports with Shopify

    If Shopify orders are steady but GA4, Google Ads or Meta show far fewer checkout events, tags are likely missing.

How to fix it

The replacement for checkout.liquid scripts is Shopify's Customer events system. It runs pixels in a sandbox and receives standard events such as checkout_started and checkout_completed. You can use an official app for each platform or write a custom pixel.

Restore checkout tracking
  1. Use the official channel apps first

    Install or reconnect Google & YouTube, Facebook & Instagram, TikTok and similar apps from the Shopify App Store. They add their pixels through Customer events, so checkout is covered.

  2. Add a custom pixel for the rest

    Go to Settings > Customer events > Add custom pixel. Paste your tag code, subscribe to events such as checkout_started and checkout_completed, then click Connect.

  3. Remove duplicates

    Make sure the same event is not sent by both an app and a custom pixel, or conversions will be counted twice.

  4. Set customer privacy

    In each pixel's settings, choose the consent permission it needs so it respects your cookie banner.

Example custom pixel: forward checkout events to a dataLayerjavascript
analytics.subscribe('checkout_started', (event) => {
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({
    event: 'begin_checkout',
    currency: event.data.checkout.currencyCode,
    value: event.data.checkout.totalPrice.amount
  });
});

analytics.subscribe('checkout_completed', (event) => {
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({
    event: 'purchase',
    transaction_id: event.data.checkout.order.id,
    currency: event.data.checkout.currencyCode,
    value: event.data.checkout.totalPrice.amount
  });
});

How to confirm it's fixed

After the change
  • Run a test checkout and see requests for each platform on the checkout steps in the Network tab
  • Check GA4 DebugView or Tag Assistant for begin_checkout and purchase
  • Confirm Meta Events Manager Test Events shows the checkout events
  • Verify each event fires once, not twice
  • Compare a day of platform conversions with Shopify orders

How to prevent it happening again

Keep a list of every tag your checkout needs and where it lives. Review it before any Shopify checkout upgrade, theme change or app removal. Avoid placing the only copy of a tag in a place Shopify can retire. Test checkout after every change to pixels or apps, and keep a regular automated check running so a silent drop does not go unseen for weeks.

How the problem usually unfolds
  1. Day 0

    Store upgrades to checkout extensibility; checkout.liquid stops being used

  2. Day 1

    Checkout tags stop firing; no error appears

  3. Week 1

    Platform conversions look low; bidding has less data

  4. Week 2

    Someone notices, rebuilds tags as pixels

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your checkout journey on a schedule and checks the tracking hits sent to platforms such as GA4, Google Ads, Meta and TikTok. If hits that should appear on checkout are missing, the check fails with a note of missing hits on checkout. The failure is re-checked from a second region, then you get one alert with a screenshot and a likely cause.

Test traffic is marked and stops before payment unless your store's test mode is set up, and it never enters real card details. The Free plan covers 1 site and 2 journeys with daily checks and no card, and a free read-only website audit is available.

Questions people ask

Why did my Shopify checkout tracking stop working?

If your store moved to checkout extensibility, scripts in checkout.liquid no longer run. Tags for ads and analytics that lived there stop firing without any error. Rebuild them as Shopify pixels or use the official channel apps.

What replaced checkout.liquid in Shopify?

Checkout extensibility replaced it. You customise checkout through the checkout editor, apps and checkout UI extensions, and you add tracking through Customer events pixels instead of pasting scripts into a theme file.

How do I add a tracking pixel to Shopify checkout now?

Go to Settings > Customer events and add a custom pixel, or install the platform's official Shopify app. Subscribe to events like checkout_started and checkout_completed, then connect the pixel and test.

Can I still use Google Tag Manager on Shopify checkout?

Yes, but not by editing checkout.liquid. You load GTM through a custom pixel and forward Shopify events to it. Because pixels run in a sandbox, test that your tags and triggers actually receive the events.

How do I know if my checkout events are missing?

Run a test checkout with the browser Network tab open, or use GA4 DebugView and Meta Test Events. If begin_checkout or purchase requests do not appear, tags are missing. Large gaps between Shopify orders and platform conversions are another sign.

Will missing checkout tags affect my ad performance?

They can. Ad platforms optimise on the conversions they receive, so fewer events mean weaker bidding and misleading reports. Fixing the tags restores the data, though learning may take some time to recover.

Can FunnelGuard detect missing checkout tracking on Shopify?

Yes. FunnelGuard runs your checkout journey on a schedule, checks the tracking hits sent to ad and analytics platforms, and alerts you with a screenshot and likely cause when expected hits are missing.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: missing hits on checkout.

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.