SEO Canonical Tags
A canonical tag is a line of HTML code that tells search engines which version of a page is the "official" one when multiple URLs show the same or very similar content. Without canonical tags, duplicate content splits your ranking signals across multiple URLs, weakening each one.
The Duplicate Content Problem
Duplicate content happens when the same (or nearly identical) content appears at more than one URL. This confuses Google — it does not know which version to index, which to rank, or which URL to display in search results. The result is that your ranking signals get diluted across multiple competing URLs.
Diagram: How Duplicate URLs Dilute Authority
WITHOUT CANONICAL TAGS: https://yoursite.com/best-laptops (Original) https://yoursite.com/best-laptops?sort=new (Filtered URL) https://yoursite.com/best-laptops?ref=ad (Tracking URL) https://www.yoursite.com/best-laptops (www version) Google sees FOUR pages with the same content. It splits the ranking signal between all four. Each page ranks weakly instead of one page ranking strongly. WITH CANONICAL TAG on all four URLs pointing to: https://yoursite.com/best-laptops Google consolidates ALL authority to one URL. That one URL ranks with full strength.
What a Canonical Tag Looks Like
The canonical tag goes in the <head> section of your page's HTML:
<link rel="canonical" href="https://yoursite.com/best-laptops/" />
This tells Google: "Regardless of which URL was used to reach this page, treat https://yoursite.com/best-laptops/ as the one true version."
Common Causes of Duplicate Content
1. URL Parameters
E-commerce and filter-heavy websites generate different URLs for the same products based on sort order, filter selections, and tracking codes. Each variation is a duplicate.
2. HTTP vs HTTPS
yoursite.com and https://yoursite.com are technically two different URLs. A canonical tag (or a 301 redirect) ensures all authority flows to your preferred version.
3. www vs non-www
www.yoursite.com and yoursite.com are different URLs. Choose one and canonicalize all traffic to it.
4. Trailing Slash Variations
yoursite.com/page/ and yoursite.com/page are different URLs to Google. Pick one version and stay consistent.
5. Print-Friendly Pages
Some sites generate a separate print version of each article at a different URL. These are duplicates that need canonicalization.
6. Syndicated Content
If you republish your article on another website (Medium, a partner site), the syndicated copy should carry a canonical tag pointing back to your original article on your website. This ensures you receive the SEO credit.
Diagram: Syndicated Content Canonicalization
Original article: yoursite.com/best-yoga-mats Republished on: partnersite.com/guest/best-yoga-mats --> Canonical tag on the partner page points to: yoursite.com/best-yoga-mats Result: Google credits your site, not the partner site.
Self-Referencing Canonical Tags
Every page should have a canonical tag pointing to itself — even if it has no duplicate versions. This is called a self-referencing canonical. It proactively prevents any URL variations (from query strings, tracking parameters) from splitting authority. WordPress SEO plugins add these automatically.
Canonical Tag vs 301 Redirect
CANONICAL TAG:
- Signals the preferred URL without moving the user.
- Both URLs remain accessible.
- Best for pages where both versions serve a purpose.
- Example: filter pages on an e-commerce site.
301 REDIRECT:
- Permanently redirects users and bots from old to new URL.
- The old URL becomes inaccessible.
- Best when the old page no longer needs to exist.
- Example: after changing a page's URL slug.
Rule of thumb: Use canonical when both URLs need to stay live.
Use 301 redirect when the old URL is obsolete.
How to Add Canonical Tags in WordPress
Both Yoast SEO and Rank Math automatically generate self-referencing canonical tags for every page. To manually set a canonical for a specific page, open the page editor, go to the SEO plugin's Advanced settings, and enter the canonical URL in the "Canonical URL" field.
Canonical Tag Common Mistakes
- Pointing a canonical to a redirecting page: The canonical URL must be a live, accessible page — not a page that redirects elsewhere.
- Canonical to a noindex page: If the canonical destination has a noindex tag, the whole arrangement breaks.
- Using canonical when you mean redirect: If you changed a page's URL permanently, a canonical is not enough. Use a 301 redirect plus update your sitemap.
- Inconsistent self-canonicals: All variations of a URL should point to the same canonical URL consistently.
Key Takeaway
Canonical tags solve duplicate content by telling Google which version of a page is the official one. Set self-referencing canonicals on every page by default, use explicit canonicals when the same content appears at multiple URLs, and apply them to any syndicated or republished content. This keeps your ranking signals focused and strong.
