Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Cross-domain canonical to the wrong site: how to find and fix it

SEO-050High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A canonical tag is a line in the <head> of a page that says which URL is the main version. Search engines use it to pick one URL when several pages show the same content. It looks like <link rel="canonical" href="https://example.com/page/">.

A cross-domain canonical points to a different domain from the one the page lives on. This is valid when you really do republish content on purpose, for example a syndicated article. It is a mistake when the target is an old domain, a partner or agency site, a reseller, or a template you copied from another project.

Common causes: a site migration where the old domain's canonicals were copied over, a theme or landing page cloned from a partner's site, a white-label page that still carries the supplier's tag, and an SEO plugin with a hard-coded 'canonical URL' field.

Why it costs you leads or sales

Google treats the canonical as a strong hint, not a command. When it follows the hint, your page is folded into the other domain's page. Your URL can fall out of search results, and the traffic, and the leads it would have brought, go to someone else or to nobody.

The damage is often silent. The page still loads, the form still works and tests look fine. You only see it as a slow drop in organic visits to the affected pages, and the pages affected are often your best landing pages.

How a wrong canonical sends visitors elsewhere
  1. Page publishedYour landing page goes live
  2. Canonical points to other domainTag names partner or old site
  3. Google picks other URLYour URL is dropped from the index
  4. SearchersSee the other site, not yours
  5. LeadsGo elsewhere

The page works, but search results point away from it.

Organic visits to an affected landing pageExample numbers
Organic visits to an affected landing page (example)Week 1: 400 visits per week; Week 2: 410 visits per week; Week 3: 390 visits per week; Week 4: 220 visits per week; Week 5: 90 visits per week; Week 6: 30 visits per week01573144004103902209030Week 1Week 2Week 3Week 4Week 5Week 6visits per week

Example: illustrative numbers showing traffic falling after a canonical to another domain goes live in week 3.

How to check if your site has it

Find canonicals that point to another domain
  1. View the page source

    Open the page, press Ctrl+U (Cmd+Option+U on Mac) and search for canonical. Check that the domain in href is your own.

  2. Use Google Search Console URL Inspection

    Paste the URL. Under Page indexing, compare 'User-declared canonical' with 'Google-selected canonical'. If either shows another domain, you have found it.

  3. Check the Pages report

    In Search Console, open Indexing > Pages and look for 'Alternate page with proper canonical tag' or 'Duplicate, Google chose different canonical than user'. Open examples and look at the canonical.

  4. Crawl the whole site

    Run a crawler such as Screaming Frog (its Canonicals tab and filters for canonicalised and non-indexable URLs) and sort by canonical host. Any host that is not yours needs a reason.

  5. Check by command line

    Fetch the raw HTML and pull out the tag, as in the snippet below. Also check the HTTP Link header, which can carry a canonical too.

Print the canonical and any Link header for a URLbash
curl -s https://www.example.com/landing/ | grep -io '<link[^>]*rel="canonical"[^>]*>'
curl -sI https://www.example.com/landing/ | grep -i '^link:'

How to fix it

The target is a self-referencing canonical: each page names its own full URL on your preferred domain, with https. First find where the tag is generated, because fixing the output without fixing the source means it comes back.

Fix the canonical by platform
  1. Check the SEO plugin

    Edit the page. In Yoast SEO, open Advanced > Canonical URL. In Rank Math, open Advanced > Canonical URL. Clear any value that points to another domain.

  2. Check Settings > General

    Make sure WordPress Address and Site Address use your current domain.

  3. Search the theme

    Look in header.php and functions.php for rel="canonical" or rel_canonical and remove hard-coded old domains.

Correct self-referencing canonicalhtml
<link rel="canonical" href="https://www.example.com/landing/">
Canonical before and after

Broken

  • Canonical names old-example.com or a partner site
  • Google may show the other domain
  • Your page loses organic traffic

Fixed

  • Canonical names the page's own https URL
  • Google indexes your page
  • Rankings and leads return over time

How to confirm it's fixed

Confirmation checklist
  • View source shows one canonical, on your own domain, using https
  • The raw HTML and the rendered page show the same canonical
  • No Link HTTP header names another domain
  • URL Inspection shows your URL as both user-declared and Google-selected canonical
  • You requested indexing for key pages in Search Console
  • A fresh crawl lists no canonicals to foreign hosts

Google needs to recrawl the pages, so recovery is not instant. Request indexing for your most important URLs and watch the Pages report over the following weeks.

How to prevent it happening again

Prevention habits
  • After any migration, crawl the new site and sort canonicals by host
  • Never copy pages or templates from a partner site without clearing the head code
  • Keep canonical generation in one place, using one configured base URL
  • Review SEO plugin canonical fields when handing a site between agencies
  • Re-crawl monthly and after major theme or plugin updates
  • Set an alert in your crawler or SEO tool for canonicals pointing off-domain

How FunnelGuard handles this

FunnelGuard does not check canonical tags yet. A cross-domain canonical check is a possible future addition, not something you can rely on today.

What FunnelGuard does cover nearby: it runs your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and checks each step, the tracking hits sent to platforms like GA4 and Google Ads, and whether test leads arrive. That tells you whether visitors who do reach your site can convert. It will not tell you whether search engines are sending them.

To watch for this issue today, use Google Search Console (the Pages report and URL Inspection), a scheduled crawl in a tool such as Screaming Frog, or a small script that runs the curl check above on your key landing pages and compares the canonical host with your own.

How the problem usually unfolds
  1. Day 0

    Site migrated or page cloned, old canonical left in place

  2. Week 1-2

    Google recrawls and starts treating the other domain as the main version

  3. Week 3-6

    Your pages drop out of results and organic leads fall

  4. After fix

    Canonical corrected, indexing requested, pages return gradually

Questions people ask

Why is my page not showing in Google when it is indexable?

One cause is a canonical tag pointing to another domain. Google then treats the other URL as the main version and may leave yours out. Inspect the URL in Search Console and compare the user-declared and Google-selected canonical.

Can a canonical tag point to a different domain?

Yes, it is allowed and Google supports it. It is meant for content you deliberately republish on another site. If you did not plan it, it is a mistake that can remove your page from results.

How do I find out which domain my canonical points to?

View the page source and search for rel="canonical", then read the href. You can also run curl on the URL or use URL Inspection in Google Search Console. Check the HTTP Link header too.

Why does my canonical still point to my old domain after a migration?

The old value is usually hard-coded in a theme, an SEO plugin field, a database setting or a template that was copied across. Changing the domain in redirects does not rewrite it. Search your templates and plugin settings for the old domain.

How long does it take to recover after fixing a wrong canonical?

It depends on how often Google recrawls your pages. It can take days to several weeks. Requesting indexing for key URLs in Search Console can speed this up.

Does Google always obey the canonical tag?

No. It is a strong hint, and Google may pick a different URL if other signals disagree. A cross-domain canonical is still a powerful signal, so fix it rather than hoping it is ignored.

Does FunnelGuard detect wrong canonical tags?

Not yet. A canonical check is a possible future addition. Today, use Google Search Console or a site crawler to watch for canonicals pointing to other domains.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

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.