Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Post-purchase survey breaking your order confirmation page

CNV-226Low impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A post-purchase survey asks buyers a question such as "How did you hear about us?" on the order confirmation (thank-you) page. It is usually added by an app or a script tag. If that script has a bug, loads a missing file, or clashes with your theme or another script, the browser logs an error in the console (the developer panel that lists script problems).

Why it costs you leads or sales

The sale has already happened, so the direct loss is small. The damage is indirect. Buyers who see an error or a blank page may worry the order failed, contact support, or ask for a refund. Scripts that run after the broken one may never fire, so your purchase event may not reach GA4, Google Ads or Meta. That feeds wrong data into reporting and ad optimisation.

Where the survey breaks the journey
  1. Checkout paidPayment goes through
  2. Confirmation page loadsOrder summary starts to render
  3. Survey script errorsConsole error thrown
  4. Purchase trackingMay never run
  5. Order details shownMay be hidden or blank

The payment succeeds, but a survey script error stops what should run next on the confirmation page.

How to check if your site has it

Check the confirmation page for survey errors
  1. Place a test order

    Use your store's test mode or a test payment method, or a very cheap product you can refund. Do not use real card details on a live store unless you plan to refund.

  2. Open the console

    On the confirmation page, press F12 (or right-click and choose Inspect), then open the Console tab. Reload if the panel was opened late.

  3. Look for red errors

    Note errors that name the survey tool's file or domain, or messages like "Uncaught TypeError" or "Failed to load resource".

  4. Test with the survey off

    Disable the survey app or script and place another test order. If the errors and layout problems vanish, the survey is the cause.

  5. Check purchase tracking

    Look in the Network tab or your analytics debug view to confirm the purchase event still fires once.

A survey error on the thank-you page

The page loads, the survey script fails, and the console fills with errors.

How to fix it

The fix depends on who owns the survey code. The aim is the same: stop the error, keep the order summary visible and keep purchase tracking firing.

Fix by platform
  1. Identify the survey source

    Check Settings > Checkout > Order status page > Additional scripts, installed apps, and Customer events (pixels) for the survey tool.

  2. Update or reconfigure the app

    Update the app, check its settings and contact its support with the console error text.

  3. Remove or replace if needed

    Uninstall the app and remove leftover script snippets, then test again. Shopify's own post-purchase tools or a different survey app may be an alternative.

Stop a survey error from breaking other scriptsjavascript
try {
  if (window.SurveyWidget) {
    window.SurveyWidget.init({ container: '#survey-slot' });
  }
} catch (err) {
  console.warn('Survey failed to load', err);
}
Confirmation page before and after the fix

Before

  • Console shows red survey errors
  • Order summary hidden or blank
  • Purchase event sometimes missing

After

  • Console is clean or shows a harmless warning
  • Order summary always visible
  • Purchase event fires once

How to confirm it's fixed

Confirmation checks
  • Place a fresh test order and open the console on the confirmation page
  • No red errors from the survey script
  • Order number, items and totals are visible
  • The survey appears and can be submitted
  • Purchase event shows once in GA4 DebugView or your ad platform's test tool
  • Test on mobile as well as desktop

How to prevent it happening again

Prevention habits
  • Test the confirmation page after every app, theme or plugin update
  • Keep survey scripts isolated so a failure cannot block tracking
  • Load third-party scripts after your purchase tracking
  • Remove old survey code when you change tools
  • Run an automated check on the confirmation page on a schedule

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your checkout journey on a schedule and watches the confirmation page for console errors. If a survey script throws one, the check flags it. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

It also checks the tracking hits sent to platforms such as GA4, Google Ads and Meta, so you can see whether purchase tracking was affected. Test traffic is marked, and it stops before payment unless your store's test mode is set up. The Free plan covers 1 site and 2 journeys with daily checks, and paid plans have a 3-day free trial.

Questions people ask

Why is my order confirmation page blank after adding a survey?

The survey script probably threw a JavaScript error or overwrote the page content. Open the browser console on the confirmation page, look for red errors naming the survey tool, then disable the survey to confirm it is the cause.

Can a post-purchase survey stop my purchase tracking?

Yes. If the survey script errors before your tracking code runs, the purchase event may never be sent. Load tracking first, wrap the survey in error handling, and verify the event in your analytics debug tool.

How do I check for console errors on my thank-you page?

Place a test order, press F12 on the confirmation page and open the Console tab. Red entries are errors. Note any that mention the survey tool's file or domain.

Should I remove my post-purchase survey?

Not necessarily. First try updating the app, excluding its script from minification and isolating it from other scripts. Remove it only if the errors continue and the vendor cannot fix them.

Why does the survey only break the page sometimes?

Causes include caching, script delay or minify settings, ad blockers, slow loading and conflicts with other apps. Test in a private window on different devices and after clearing your cache.

Is a survey error on the confirmation page a high-priority problem?

Usually it is low impact because the sale is complete. Treat it as higher priority if the order summary is hidden or purchase events are missing, since that affects customers and ad data.

Can FunnelGuard detect a survey breaking my confirmation page?

Yes. FunnelGuard's scheduled journey check looks for console errors on the confirmation page and alerts you with a screenshot and a likely cause after re-checking from a second region.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: console errors.

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.