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.
- CartBuyer reviews items
- Checkout loadsUnknown domain script is fetched
- Buyer enters detailsScript can read or alter the form
- 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.
Open the checkout page
Add a product to the cart and go to the checkout step. Use a private window with extensions off.
Open DevTools Network tab
Press F12 (or Cmd+Option+I on Mac), choose Network, tick Disable cache, then reload the page.
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.
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.
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.
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.
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.
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.
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.
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.
Add a Content Security Policy
Start in report-only mode, then enforce. See the snippet below.
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.
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.
Check apps and theme code
Go to Settings > Apps and sales channels and remove apps you do not recognise. Then search the theme code (Online Store > Themes > Edit code) for the domain.
Check customer events
In Settings > Customer events, review custom pixels and remove any you did not add. Checkout scripts on Shopify are limited, so unknown ones usually come from pixels or apps.
Search the container
Use the search box in your workspace for the domain. Look at Custom HTML tags and custom templates.
Review the version history
Open Versions to see who published changes and when. Remove unknown tags, publish, and remove users you do not recognise under Admin > User Management.
Check custom code
In Site settings > Custom code, and in page settings for your checkout or cart page, look for scripts from the domain. Also check Apps and Integrations.
Publish
Remove the code and publish the site again so the change goes live.
Check tracking code
Open the funnel or website settings and review the header and footer tracking code, plus custom code elements on the order page.
Remove and save
Delete the unknown script, save and publish the funnel step, then check who has access under your sub-account team settings.
Review custom code
Go to Settings > Custom code (under Advanced) and check each snippet. Also review Marketing integrations and installed apps.
Remove and publish
Delete the unknown snippet or app, then publish.
Check code injection
Go to Settings > Developer tools > Code injection (naming varies by plan and version) and review header, footer and order confirmation code.
Check extensions
Review connected extensions and remove ones you do not use.
Search the repository
Search your code, templates and build output for the domain. Check recent commits and deployments for who added it.
Check dependencies
Review package lockfiles and any scripts pulled from a CDN. Pin versions and use Subresource Integrity where the vendor supports it.
<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.
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;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
- 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.
| Domain | Purpose | Owner | Last reviewed |
|---|---|---|---|
| js.stripe.com | Payment fields | Dev team | Example: 2025-01-15 |
| www.googletagmanager.com | Tag manager | Marketing | Example: 2025-01-15 |
| fonts.gstatic.com | Web fonts | Dev team | Example: 2025-01-15 |
Day 1
A tag is added to the container for a short campaign.
Day 30
The campaign ends but the tag stays. The vendor changes what the script does.
Day 60
Checkout slows and a customer reports a strange redirect.
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.
Related issues
- OPS-195Magecart / card skimmer script on checkoutFix guide
- OPS-197Compromised npm/CDN library serving malicious codeFix guide
- OPS-198Abandoned script domain re-registered by attackerFix guide
- OPS-199Tag manager container edited by unknown userFix guide
- OPS-200Too many third-party scripts (performance and risk)Fix guide
- OPS-205Third-party pixel collecting PII without consentFix guide