Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Unknown third-party domain on checkout: how to find and fix it

OPS-196High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Your checkout page is built from your own files plus resources from other companies: analytics, ad pixels, payment widgets, chat, fonts, reviews. Each one loads from a third-party domain (a domain that is not yours). An *unknown* domain is one nobody on your team can name or justify.

Common sources are a plugin update that added a new vendor, a tag manager container edited by someone else, an old tool nobody removed, or a malicious script added by an attacker. The domain alone does not tell you which. That is why you need to check it.

Why it costs you leads or sales

Any script on a checkout page can read what customers type, including names, addresses and card details, unless the card fields sit inside a payment provider's own frame. A hostile script can also redirect buyers, slow the page or break the pay button.

The costs are lost orders from a slow or broken page, card data theft, chargebacks, possible payment provider and data protection consequences, and lost customer trust. Even a harmless unknown domain is a risk, because it can change what it serves at any time without you knowing.

How an unknown domain turns into lost sales
  1. CartBuyer reviews items
  2. Checkout loadsUnknown domain script is fetched
  3. Buyer enters detailsScript can read or alter the form
  4. OrderFails, is redirected, or data is stolen

The unknown script runs inside the buyer's browser, so the damage happens after the page looks normal.

How to check if your site has it

You need a full list of the domains your checkout contacts. Do this in a clean browser profile with no extensions, because extensions add their own requests. Do not enter real card details while testing.

List every domain your checkout loads
  1. Open the checkout page

    Add a product to the cart and go to the checkout step. Use a private window with extensions off.

  2. Open DevTools Network tab

    Press F12 (or Cmd+Option+I on Mac), choose Network, tick Disable cache, then reload the page.

  3. Group by domain

    In Chrome, use the Domain column (right-click the column header, enable Domain), or sort by it. Note every domain that is not yours or your platform's.

  4. Export a HAR file

    Right-click the request list and choose Save all as HAR with content. A HAR file is a saved record of every request, handy for sharing and comparing later.

  5. Compare against your allowlist

    Mark each domain as approved, unknown or suspicious. For unknown ones, look at the Initiator column to see which script loaded them.

Paste in the DevTools console to list script, frame and image domainsjavascript
const hosts = new Set();
performance.getEntriesByType('resource').forEach(r => {
  try { hosts.add(new URL(r.name).hostname); } catch (e) {}
});
console.table([...hosts].sort());

How to fix it

Treat each unknown domain as guilty until proven harmless. Work out who added it, whether you need it, and then remove or approve it.

Investigate and remove an unknown domain
  1. Find what loads it

    In the Network tab, click the request and read the Initiator tab. It shows the script or tag that triggered it.

  2. Identify the owner

    Search the domain name, check your vendor list and ask your team and agency. Be wary of domains that imitate well-known names, such as slightly misspelled analytics or payment brands.

  3. Decide: needed or not

    If a known vendor and you still use it, add it to your allowlist with the owner and reason. If nobody can explain it, remove it.

  4. If it looks malicious, act at once

    Remove the script, change passwords and API keys for your site admin, tag manager and hosting, restore from a clean backup if files were changed, and contact your payment provider and host.

  5. Add a Content Security Policy

    Start in report-only mode, then enforce. See the snippet below.

Where to remove the script on your platform
  1. Find the source

    Deactivate plugins one at a time on a staging copy and reload checkout to see which one loads the domain. Also check Appearance > Theme File Editor and any header/footer script plugin.

  2. Scan files

    Search the theme and wp-content folders for the domain name. Update or delete the plugin, and replace any modified core or theme files with clean copies.

CSP in report-only mode (example allowlist, edit for your real vendors)html
<meta http-equiv="Content-Security-Policy-Report-Only" content="script-src 'self' https://www.googletagmanager.com https://js.stripe.com; frame-src https://js.stripe.com;">

The meta tag form cannot send violation reports. Where you can set HTTP headers (nginx, Apache, a CDN), use the header form with a report-uri or report-to endpoint so you see what would be blocked. Once the reports are clean, switch to the enforcing Content-Security-Policy header.

nginx: CSP header with reporting (example, replace domains and endpoint)nginx
add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' https://www.googletagmanager.com https://js.stripe.com; frame-src https://js.stripe.com; report-uri https://example.com/csp-report" always;
Checkout domains before and after cleanup

Before

  • Domains loaded are not written down anywhere
  • Unknown scripts load from a tag manager or old plugin
  • No policy limits what can run

After

  • Every domain has an owner and a reason
  • Unknown scripts removed
  • CSP restricts scripts to the allowlist and reports the rest

How to confirm it's fixed

Confirmation checklist
  • Reload checkout in a clean private window and re-run the domain list
  • Every remaining domain is on your allowlist
  • Export a new HAR file and compare it with the old one
  • Check mobile and a second browser
  • Complete a test order in your payment provider's test mode
  • Confirm CSP reports show no unexpected violations
  • Confirm your ad and analytics tags still fire

How to prevent it happening again

Keep a written allowlist of approved checkout domains, with the owner and purpose for each. Re-run the domain list after every plugin update, theme change, tag manager publish or new marketing tool. Limit who can edit code and tag containers, and turn on two-factor sign-in for them.

Example allowlist layout
DomainPurposeOwnerLast reviewed
js.stripe.comPayment fieldsDev teamExample: 2025-01-15
www.googletagmanager.comTag managerMarketingExample: 2025-01-15
fonts.gstatic.comWeb fontsDev teamExample: 2025-01-15
How an unnoticed script can unfold (example)
  1. Day 1

    A tag is added to the container for a short campaign.

  2. Day 30

    The campaign ends but the tag stays. The vendor changes what the script does.

  3. Day 60

    Checkout slows and a customer reports a strange redirect.

  4. Day 61

    You list domains, spot the unknown one and remove it.

How FunnelGuard handles this

FunnelGuard does not check for unknown third-party domains on your checkout yet. It is a possible future check. FunnelGuard does not compare your checkout's loaded domains against an allowlist today.

What it does cover nearby: a robot visitor runs your checkout journey on a schedule from the EU or the US, checks each step, checks the tracking hits sent to ad and analytics platforms, and sends one alert with a screenshot and likely cause if a step breaks, after re-checking from a second region. So a script that breaks your checkout or stops a tracking hit may show up as a failed step, but that is not the same as spotting a new domain.

To watch for this today, repeat the domain list above on a schedule (for example monthly and after every release), save a HAR file each time and compare domains, and use a CSP with reporting. FunnelGuard's Free plan (1 site, 2 journeys, daily checks, no card) can monitor the checkout journey itself.

Questions people ask

Why is there an unknown domain on my checkout page?

It usually comes from a plugin, app, tag manager tag or old tool that loads code from another company. It can also be a malicious script added after a site compromise. Find the request in your browser's Network tab, read its Initiator, and trace it to its source before deciding.

How do I see which third-party domains load on my checkout page?

Open your checkout in a private window, press F12, go to the Network tab, reload, and sort or group requests by domain. You can also run a short script using performance.getEntriesByType('resource') in the console. Exporting a HAR file saves the list for later comparison.

Is an unknown domain on checkout always a card skimmer?

No. Many are forgotten analytics, ad or chat tools. But a skimmer looks the same at first glance, so treat any domain you cannot explain as risky until you verify it and its owner.

How do I block unknown scripts on my checkout page?

Add a Content Security Policy that lists the domains allowed to run scripts. Start with the Content-Security-Policy-Report-Only header to see what would be blocked, fix your allowlist, then enforce it. Test a full checkout in test mode before enforcing.

What should I do if I find a suspicious script on my checkout?

Remove it, then change passwords and API keys for your site admin, tag manager and hosting. Restore changed files from a clean backup and contact your payment provider and host. Review who has access and turn on two-factor sign-in.

How often should I check third-party domains on checkout?

Check after every plugin, theme or tag manager change, and at least monthly otherwise. Save a HAR file each time so you can compare domains between checks.

Does FunnelGuard detect unknown third-party domains on checkout?

Not yet. It is a possible future check. FunnelGuard does run your checkout journey on a schedule and checks steps and tracking hits, so it can show when checkout breaks, but you need a manual review or a CSP to watch for new domains.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.