On this page
What this issue is
Many checkouts happen on another domain, such as Stripe Checkout, PayPal, Klarna or a hosted payment page. After payment, the provider redirects the customer back to your site. That address is the return URL (also called success URL, redirect URL or thank-you URL).
The URL is broken when it points to a deleted or renamed page, an old domain, an HTTP address that now redirects badly, a staging site, or a page that throws a server error. Cancel and failure return URLs can break the same way.
- Product pageCustomer clicks Buy
- Payment providerCard is charged
- Return URLProvider redirects to a 404 or error
- Thank-you pageNever shown
- Purchase trackingConversion tag never fires
The payment succeeds, but the return step fails, so everything after it is lost.
Why it costs you leads or sales
The customer has just paid and now sees an error. Many assume the payment failed, pay again, contact support or ask for a refund. Others lose trust and never come back.
Your data suffers too. Purchase events for GA4, Google Ads, Meta and other platforms usually fire on the thank-you page. If it never loads, those sales go unreported and ad platforms optimise on incomplete data. Order emails or account setup that depend on that page can also fail.
Example: the shop takes 100 paid orders, but only the buyers who reach the thank-you page are tracked.
How to check if your site has it
Find every return URL
In your payment provider or checkout settings, list the success, cancel and failure URLs. Include any set in code, plugin settings or a payment link.
Open each URL in a private window
Check that each one loads with a 200 status and shows the right content. Watch for 404s, redirect loops, certificate warnings and staging domains.
Run a test purchase
Use the provider's test mode or a real low-value order. Follow the journey to the end and note the final URL and what you see.
Compare orders with tracked purchases
Look at the last few weeks of paid orders against GA4 or ad platform purchases. A sudden drop after a site change points to the return page.
curl -sIL -o /dev/null -w "%{http_code} %{url_effective}\n" "https://example.com/thank-you"How to fix it
The fix has two parts: make sure the destination page exists, and make sure the provider points to it. The exact menus depend on your platform and payment app.
Check the page exists
In Pages, confirm the thank-you page is published and its permalink has not changed. Restore it from Trash if needed.
Update the gateway settings
In WooCommerce go to Settings > Payments, open your gateway and check any return or redirect URL. WooCommerce normally builds the order-received URL itself, so also look for redirect plugins or caching rules that interfere.
Clear caches and redirects
Purge page cache and check redirect plugins for rules that catch the order-received path.
Check the order status page
Shopify's standard checkout returns customers to its own confirmation page. If you use a third-party payment app or an off-site gateway, open the app settings and check its return URL.
Review URL redirects
In Content > Menus > View URL Redirects (or Online Store > Navigation), make sure no redirect sends the return path to a missing page.
Check the page slug
In Pages, confirm the thank-you page is published to your live domain and the slug matches the provider's URL.
Update the provider
In Stripe, PayPal or your payment link settings, set the success URL to the live page. Add a 301 redirect under Site settings > Publishing if the slug changed.
Check the funnel step
Open the funnel and confirm the thank-you step is published and its path is unchanged.
Check the order form redirect
In the order form or payment element settings, set the redirect after purchase to the live step. Check the custom domain still connects.
Fix the URL in code
Search your code and config for the success and cancel URLs. Use your live domain with HTTPS, not localhost or staging.
Add a redirect for moved pages
If the page moved, add a 301 from the old path to the new one.
const session = await stripe.checkout.sessions.create({
mode: 'payment',
line_items: [{ price: 'price_123', quantity: 1 }],
success_url: 'https://example.com/thank-you?session_id={CHECKOUT_SESSION_ID}',
cancel_url: 'https://example.com/cart'
});How to confirm it's fixed
- Each success and cancel URL returns a 200 status on the live domain
- A full test purchase ends on the thank-you page with the right order details
- The purchase event appears in GA4 DebugView or your tag tool, and in each ad platform
- The confirmation email and CRM or order record are created
- The cancel path returns the customer to the cart, not an error
How to prevent it happening again
Return URLs break quietly after redesigns, slug changes, domain moves, plugin updates and cache or redirect changes. Nobody visits the page unless they buy.
- Keep a list of every return URL and where it is configured
- Add a 301 redirect whenever you rename or delete a thank-you page
- Retest a purchase after changing themes, plugins, domains or checkout apps
- Never leave staging or test URLs in live provider settings
- Monitor the purchase journey on a schedule instead of relying on manual tests
How FunnelGuard handles this
FunnelGuard detects this issue today. Its test purchase check runs your real checkout journey on a schedule with a robot visitor and verifies the return page the customer lands on afterwards. If that page fails, FunnelGuard re-checks from a second region before sending one alert with a screenshot and a likely cause.
Test traffic is marked (utm_source=funnelguard, fg_test=1) and stops before payment unless your store's test mode is set up, so the return step is only exercised when a test payment is possible. FunnelGuard never enters real card details. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Frequently asked
Questions people ask
Why does my site show a 404 after payment?
The payment provider is redirecting to a URL that no longer exists. This often happens after a page is renamed or deleted, a domain changes, or a redirect rule catches the path. Update the success URL in the provider settings or restore the page.
Where do I change the return URL in Stripe?
For Stripe Checkout, the success_url and cancel_url are set when you create the session in code, or in the Payment Link settings if you use payment links. Update them to live HTTPS pages on your domain.
Why is my purchase conversion not tracked after a redirect from the payment page?
Purchase tags usually fire on the thank-you page. If customers never reach it because the return URL is broken, or they close the tab before the redirect, the event never fires. Fix the return page and test a purchase.
Is the customer charged if the return page shows an error?
Usually yes. The payment completes with the provider before the redirect happens. Check your payment dashboard and webhooks to see the order, and contact affected customers.
How do I test a payment return URL without paying?
Use the provider's test mode with test card numbers, or the store's test mode, and complete a test order. Then check the final URL, page content and tracking events.
Should I use webhooks as well as a return URL?
Yes. Webhooks confirm payments server to server, even if the customer closes the tab. The return URL is for the customer experience and for browser-side tracking.
Can FunnelGuard tell me when my payment return page breaks?
Yes. FunnelGuard runs a test purchase check on a schedule and alerts you if the return page fails, with a screenshot and a likely cause. It stops before payment unless your test mode is set up.
Related issues
- CNV-361Handoff to checkout/booking domain loses UTMsFix guide
- CNV-362Cross-domain linker (_gl) missingFix guide
- CNV-365Third-party domain SSL invalidFix guide
- CNV-366Funnel builder custom domain disconnectedFix guide
- CNV-367Mixed brand domain confuses users (phishing look)Fix guide
- CNV-364Subdomain cookie not shared, user logged outFix guide