Indexation Commercial BOFU

How to detect canonical tag errors site-wide

Detect canonical loops, cross-domain canonicals, non-200 canonicals, and self-conflicting canonicals — in one crawl.

Canonical tag diagram with a correct self canonical arrow and an incorrect cross domain canonical arrow
Canonical audit visual showing correct self-references versus risky cross-domain signals.

A wrong canonical tag is a self-inflicted deindex. The classic disaster: a staging deployment ships canonicals pointing to staging.example.com. Within a day, your entire production site can fall out of the index. Auditing canonicals takes one crawl; recovering from a canonical incident can take months.

Step 1. Crawl with canonical extraction

The 2-UA parser captures canonicals from both <link rel="canonical"> tags and HTTP Link: rel="canonical" headers by default.

Step 2. Six canonical patterns to filter

PatternFilterSeverity
Missing canonicalcanonical IS EMPTYMedium
Canonical target returns non-200canonical_url status != 200High
Cross-domain canonicalcanonical_host != site_hostCritical
Canonical to a redirectcanonical_url is redirectHigh
Self-canonical but blocked by robotscanonical == url AND robots disallowsHigh
Multiple canonical tags on one pagecanonical_count > 1Critical

Step 3. Investigate every cross-domain canonical

Legitimate reasons exist — syndicated content, AMP pairings — but the majority of cross-domain canonicals on commercial sites are mistakes. Treat every one as guilty until proven innocent.

Step 4. Lock canonicals on your top revenue pages

Add the top twenty revenue pages to Tracked URLs with Field tracking: canonical and Alert: canonical changed. You catch the next deployment disaster the same minute it ships.

Most common canonical mistakes in 2026

  • Trailing-slash mismatch/foo vs /foo/ on the same page.
  • HTTP canonical on HTTPS pages — old templates often leak this.
  • HTTP header and HTML tag disagreeing — both signals must match, or Google may pick the wrong one.
  • Pagination canonicaling page 2+ to page 1 — Google deprecated rel="prev/next" but still penalizes broken pagination canonicals.

Defensive default: self-referencing canonical everywhere

Every indexable page should carry a self-referencing canonical pointing to its own URL. It costs nothing, prevents accidental dupes, and tells search engines exactly which version of a URL is authoritative even when tracking parameters or session IDs leak into the URL.

Run the free SEO page audit to inspect one URL's canonical instantly. Continuous site-wide canonical monitoring is included in every 2-UA project.