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.
- Checkout paidPayment goes through
- Confirmation page loadsOrder summary starts to render
- Survey script errorsConsole error thrown
- Purchase trackingMay never run
- 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
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.
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.
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".
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.
Check purchase tracking
Look in the Network tab or your analytics debug view to confirm the purchase event still fires once.
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.
Identify the survey source
Check Settings > Checkout > Order status page > Additional scripts, installed apps, and Customer events (pixels) for the survey tool.
Update or reconfigure the app
Update the app, check its settings and contact its support with the console error text.
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.
Find the plugin
Deactivate the survey plugin under Plugins and test the order confirmation page. WooCommerce uses the order-received endpoint.
Check for conflicts
Temporarily switch to a default theme or disable optimisation plugins that combine or delay JavaScript, as these often break survey scripts.
Exclude the script from minification
In your caching or optimisation plugin, exclude the survey script from combine, defer and delay options.
Find the survey tag
Open the container and look for a Custom HTML tag that loads the survey.
Fix the trigger
Fire it only on the confirmation page, for example when Page Path contains your order confirmation path.
Set tag sequencing
Make sure purchase tracking tags do not depend on the survey tag. Use Preview mode to check each tag fires.
Wrap the survey call
Put the survey initialisation in a try/catch so a failure cannot stop other scripts.
Load it asynchronously
Use async or defer on the survey script tag, and load it after your purchase tracking.
Check the DOM target
Make sure the survey mounts in its own container and does not overwrite the order summary.
try {
if (window.SurveyWidget) {
window.SurveyWidget.init({ container: '#survey-slot' });
}
} catch (err) {
console.warn('Survey failed to load', err);
}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
- 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
- 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.
Related issues
- CNV-218Order confirmation page blank or errorsFix guide
- CNV-221Purchase event missing or fired twiceFix guide
- CNV-219Order confirmation email not sentFix guide
- CNV-220Order email shows wrong totals or itemsFix guide
- CNV-222Download link for digital product brokenFix guide
- CNV-223Account login details email not sent after purchaseFix guide