Canonical tag checker

Canonical checks run per page and as a graph over a whole crawl: chains, canonicals that point to redirects or errors, relative, fragment or multiple canonicals, and targets that nobody links to.

What it does

Per-page tags

Each page's canonical is read and tested on its own. A missing, relative, multiple or fragment value is reported, and so is a canonical link placed outside the head or carrying attributes that do not belong there. A canonical that points to another URL, to another host, or to a non-indexable page is reported as its own finding, so you can judge which ones are intended.

  • Missing, multiple, relative and fragment canonicals
  • Canonical outside the head, or with invalid attributes
  • Cross-host and non-indexable targets

Canonical graph

The canonical targets of the whole crawl form a graph. That shows chains where the target canonicalises elsewhere, canonicals that point to a redirect or an error, and groups of pages in different sections that all canonicalise to the home page. A target that no internal link points to is reported too.

  • Chains of two or more steps
  • Canonical to a 3xx, 4xx or 5xx URL
  • Pages from several sections canonicalised to the home page
  • Targets without any internal link

Policies

Pagination and filter pages need their own rule, because a canonical to the first page is right for one site and wrong for another. The project policy sets what is expected, and each finding shows the expected target next to the actual one.

  • Pagination canonical policy
  • Filter canonical policy
  • Expected target shown in the evidence

Three steps, one saved scan

  1. Read every canonical tag

    Each page's canonical is read and checked for a missing, multiple, relative or #fragment value.

  2. Map the canonical graph

    Canonical targets from the whole crawl form a graph, so chains and loops show up as paths between pages.

  3. Test each target

    Each target is checked for redirects, 4xx or 5xx errors, and whether any internal link points to it.

Checks in this feature

CheckWhat it meansSeverityEvidence
CANONICAL_MISSINGIndexable page has no canonical URLImportantPage URL
CANONICAL_MULTIPLEPage declares more than one canonical URLImportantPage URL and every canonical value
CANONICAL_CHAINThe canonical target canonicalizes to another URL, two or more stepsImportantFull chain of canonical URLs
CANONICAL_TO_REDIRECTCanonical points to a URL that answers with a 3xx redirectImportantCanonical target and its redirect status
CANONICAL_TARGET_ERRORCanonical points to a URL that returns 4xx or 5xxImportantCanonical target and its status code
CANONICAL_HOMEPAGE_GROUPDistinct indexable pages in several sections all canonicalize to the home pageImportantList of pages that point to the home page
UNLINKED_CANONICALCanonical target has no internal link pointing to it anywhere in the crawlImportantCanonical target URL
Also in the check registry
CANONICAL_RELATIVECANONICAL_FRAGMENTPAGINATION_CANONICAL_POLICYFILTER_CANONICAL_POLICY

One command

bash
spiderhead parse --url https://example.com/page

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • One URL for parse, to read its canonical
  • A crawl or external crawl Internal:All exports for the graph checks
  • Optional project policy for pagination and filter pages

Limits

  • One URL cannot show chains, error targets or the home-page group: those need the crawl graph
  • A canonical is a hint for search engines, so the checks show what is declared, not which URL Google chose
  • Policy checks need the policy configured in the project
  • Pages not in the crawl cannot be checked as targets

Questions

Is one URL enough to find problems?
One URL with spiderhead parse shows its canonical value. Chain, redirect-target, error-target and home-page-group checks need the graph built from the whole crawl.
Does it change anything on my site?
No. The checks only read pages. You edit the canonical tags yourself.
Do I need another tool for the graph checks?
No. The graph is built from the crawl itself: crawl-site collects it natively, and an imported export (sf run --exports-dir) is an alternative source.
What about pagination and filter pages?
Two checks, PAGINATION_CANONICAL_POLICY and FILTER_CANONICAL_POLICY, compare each canonical with the project's policy and show the expected target.
Does it tell me which canonical Google chose?
Only when Search Console is connected: GSC_USER_CANONICAL_NOT_SELECTED compares the declared canonical with the one Google selected through URL Inspection. Without that, the checks show what the page declares.

Try it on your own site