Meregate.com
Friday, November 20, 2026
Home › SEO › What Is a Canonical Tag? A Simple Guide for Beginners (2026)

What Is a Canonical Tag? A Simple Guide for Beginners (2026)

What Is a Canonical Tag? A Simple Guide for Beginners (2026)

A canonical tag is a small piece of code that tells Google which version of a page is the main one. If two or more pages on your site look the same, or nearly the same, Google can get confused about which one to show in search results. A canonical tag points Google to the version you want ranked. It takes one line of code, it costs nothing, and it can save a small business site from splitting its ranking power across duplicate pages.

What Is a Canonical Tag?

A canonical tag is an HTML link element that sits in the <head> section of a web page. It looks like this:

<link rel="canonical" href="https://example.com/blue-shoes/" />

That one line says: “Of all the pages that look like this one, treat https://example.com/blue-shoes/ as the real page.” The word “canonical” just means the official or main version.

Here is a simple way to think about it. Imagine you own a shoe shop and you print the same flyer in three colors. A customer asks which flyer is the real one. A canonical tag is you pointing at one flyer and saying, “This is the one. The others are copies.” Google then sends ranking credit to the page you pointed at, instead of spreading it across all three.

Two things to know from the start:

  • A canonical tag is a hint, not an order. Google usually follows it, but it can pick a different page if it thinks another version fits the search better.
  • A canonical tag does not move visitors. People who open a duplicate page stay on that page. Only search engines read the tag.

Why Canonical Tags Matter for SEO

Most small business sites create duplicate pages without meaning to. A product page can load under several web addresses at once:

  • https://example.com/blue-shoes/
  • https://example.com/blue-shoes/?color=blue
  • https://example.com/blue-shoes/?utm_source=facebook
  • https://example.com/blue-shoes (no trailing slash)
  • http://www.example.com/blue-shoes/ (old http and www version)

To a visitor, these are all the same page. To Google, each web address can look like a separate page. That causes three problems:

1. Split ranking power. If five other sites link to five different versions of your page, each version gets a small share of the credit. With a canonical tag, the credit flows to one page, and that page ranks higher.

2. Wasted crawl time. Google only spends so much time crawling a site. On a small site this rarely matters, but on a shop with hundreds of filtered product pages, Google can waste crawl time on copies instead of finding your new pages.

3. The wrong page in search results. Without a canonical tag, Google might show the version with tracking code in the address (?utm_source=facebook) instead of the clean version. That looks messy in search results and can cost you clicks.

A Worked Example: A Small Shoe Shop

Let us walk through one real case from start to finish, because this is the case most small shops actually face.

Sara runs an online shoe shop. Her best seller is a blue running shoe. The product page lives at https://sarashoes.com/blue-running-shoes/. Over time, four more addresses lead to the same page:

  • https://sarashoes.com/blue-running-shoes/?color=blue — a shopper filtered by color
  • https://sarashoes.com/blue-running-shoes/?sort=price-low — a shopper sorted by price
  • https://sarashoes.com/blue-running-shoes/?utm_source=instagram — a visitor from an Instagram ad
  • https://sarashoes.com/blue-running-shoes — the same page without the trailing slash

Sara picks the clean address as her canonical page: https://sarashoes.com/blue-running-shoes/. Then she makes sure every copy of the page carries this tag in its <head>:

<link rel="canonical" href="https://sarashoes.com/blue-running-shoes/" />

She does not delete the filtered or tracked versions. Shoppers still use them, and the links still work. She only tells Google which version counts. After a few weeks, Google shows the clean address in search results, and the links pointing at the copies start helping the main page instead of splitting the credit.

That is the whole job for most small sites: pick one main address per page, and point every copy at it.

Computer code on a screen in a code editor
Source: Pexels

Canonical Tag vs 301 Redirect: What Is the Difference?

Beginners mix these two up. They solve different problems. Here is the short version:

Canonical tag301 redirect
Who sees it?Only search enginesSearch engines and visitors
What happens to the visitor?Nothing. They stay on the page they opened.They are moved to the new page.
What gets indexed?The canonical page. The copy may stay indexed too.Only the new page. The old address drops out of search.
When to use itTwo or more live pages need to stay live, but one should rank.A page is gone for good, or it moved to a new address.
Ranking creditMostly passed to the canonical page, but Google treats it as a hint.Passed to the new page. This is the stronger signal.

The decision rule is simple. If the page should stay live for visitors, use a canonical tag. If the page is gone or has moved for good, use a 301 redirect. Never use both on the same page pointing at different addresses. That sends Google two opposite messages, and it will trust neither.

When Should You Use a Canonical Tag?

You need a canonical tag when the same content, or nearly the same content, can be reached at more than one address. The common cases for small business sites are:

  • Product filters and sorting. A shop page with ?color=, ?size=, or ?sort= at the end of the address. Canonicalize each filtered version back to the plain product or category page.
  • Tracking codes. Addresses with ?utm_source=, ?fbclid=, or ?gclid= added by ads and social posts. These copies should point at the clean page.
  • Print and PDF versions. A print-friendly page or a PDF copy of a page should point at the normal web page.
  • HTTP vs HTTPS and www vs non-www. If both versions of your site still load, the secure version (https, your chosen www form) should be the canonical one. This is usually handled by a redirect, but a canonical tag is a good backup.
  • Syndicated content. If another site republishes your article, the copy should carry a canonical tag pointing back to your original. See the cross-domain section below.
  • Similar landing pages. Two service pages for nearby towns that share most of their text. If the pages are near-duplicates, pick the main one. Better still, rewrite them so each page has its own useful content, and skip the canonical tag.

How to Add a Canonical Tag

Option 1: Add it in HTML

If you edit your site code by hand, add this line inside the <head> section of each duplicate page, with the full address of the main page:

<link rel="canonical" href="https://example.com/main-page/" />

Use the full address, starting with https://, not a short form like /main-page/. Keep the address in lower case, and keep the trailing slash the same on every page. One tag per page, and it must sit in the <head>, not the <body>. A canonical tag in the body is ignored by Google.

Option 2: WordPress with Rank Math

WordPress already adds a self-referencing canonical tag to every page, which means each page points at itself by default. That is fine for most pages. You only need to change it when a page should point at a different page.

To set a custom canonical URL in Rank Math:

  1. Open the post or page in the WordPress editor.
  2. Click the Rank Math SEO box (below the editor, or in the right sidebar).
  3. Open the Advanced tab.
  4. Find the Canonical URL field and paste the full address of the main page.
  5. Update the post.

To check what Rank Math is doing, view the page source in your browser (right-click, then View Page Source) and search for “canonical”. You should see one tag with the right address.

Option 3: WordPress with Yoast SEO

Yoast SEO also adds self-referencing canonical tags by default. To change one, open the post, open the Yoast SEO panel, go to the Advanced settings, and paste the full address into the Canonical URL field. Yoast has a help page on canonical URLs that walks through the same steps with screenshots.

Option 4: WordPress with AIOSEO

In AIOSEO, open the post or page, find the AIOSEO Settings box, open the Advanced tab, and paste the full address into the Canonical URL field. The steps are nearly the same as Rank Math and Yoast. Pick one plugin and stick with it. Running two SEO plugins at once can add two different canonical tags to the same page, and that is one of the mistakes in the checklist below.

Other platforms

Shopify adds self-referencing canonical tags to product and collection pages on its own. Wix and Squarespace do the same. On these platforms you rarely need to touch canonical tags unless you sell the same product under several addresses or you syndicate content. Check your platform help pages before installing a third-party app to manage canonical tags.

What Is a Self-Referencing Canonical Tag?

A self-referencing canonical tag is a tag that points at the page it sits on. The page at https://example.com/about/ carries a tag that says the canonical page is https://example.com/about/.

It sounds pointless, but it has a real job. It protects the page from its own copies. If someone links to your page with a tracking code, or Google finds the page with and without a trailing slash, the self-referencing tag tells Google which exact address is the real one. That is why WordPress, Shopify, Wix, and Squarespace all add self-referencing canonical tags by default.

For a normal page with no duplicates, a self-referencing tag is all you need. You only write a different canonical address when the page is a copy of another page.

Cross-Domain Canonical Tags and Syndicated Content

A canonical tag can point to a page on a different website. This is called a cross-domain canonical, and it matters when your content is republished somewhere else.

Say you write a guide on your site, and a bigger publication republishes it. Without a canonical tag, Google may show the bigger site’s copy in search results instead of yours, even though you wrote it first. If the republished copy carries a canonical tag pointing back to your original, Google knows which one is the source.

How to handle it in practice:

  • When you agree to syndication, ask the publisher to add a canonical tag on their copy pointing to your original page. Put it in writing before the article goes live.
  • If they refuse, ask for a plain link back to your original instead. A link helps, though it is weaker than a canonical tag.
  • If they do neither, accept that the bigger site may outrank your original for that article. Decide before you syndicate whether the extra readers are worth that trade.
  • Never point a canonical tag at another site unless that site actually carries your content. Pointing your page at a different site tells Google your page is a copy, and your page will not rank.

How to Check Your Canonical Tags

You do not need paid tools to check canonical tags. Two free checks cover most cases.

Check one page by hand. Open the page in your browser, right-click, and pick View Page Source. Press Ctrl+F (or Cmd+F on a Mac) and search for “canonical”. You should find exactly one tag, in the <head> section, pointing at the address you expect. If you find none, or two, or one pointing at the wrong page, you have a problem to fix.

Check the whole site in Google Search Console. Search Console is free, and it shows you what Google actually did with your canonical tags:

  • Open the URL Inspection tool, paste a page address, and look at the “User-declared canonical” and “Google-selected canonical” lines. If they match, your tag is working.
  • Open the Pages report and look for “Duplicate without user-selected canonical”. Those are pages Google found as duplicates where you set no canonical tag. Add one, or let Google keep picking.
  • “Alternate page with proper canonical tag” is good news. It means Google found the copy, read your tag, and indexed the main page instead.
  • “Google chose different canonical than user” means Google ignored your tag. See the next section.

After you fix a canonical tag, go back to the URL Inspection tool and click Request Indexing. Google still needs time to re-crawl the page, often a few days and sometimes a few weeks. A fix is not instant, so check again after a week instead of the same day.

Hands typing on a laptop keyboard with code on screen
Source: Pexels

Google Ignored My Canonical Tag: What to Do

Google treats a canonical tag as a hint, so it sometimes picks a different page. Work through this list in order before you change anything else:

  1. Check the content. If the two pages are too different, Google will not treat them as duplicates. A canonical tag only works when the pages are the same or nearly the same. If the content has grown apart, either make the pages match or drop the tag.
  2. Check the address the tag points at. Open it in your browser. If it returns a 404 error, redirects somewhere else, or is blocked by robots.txt, Google will ignore it. A canonical tag must point at a live, working page.
  3. Check for a noindex tag. A page cannot be both canonical and noindexed. If the main page carries a noindex tag, Google will not index it, and your canonical tag is pointless. Remove one of the two.
  4. Check for chains and loops. Page A should point straight at page C, not at page B which points at page C. And page A must never point at page B while page B points back at page A. Keep every canonical tag to one step.
  5. Check your own links. If every link on your site points at the duplicate address instead of the main address, Google takes that as a vote for the duplicate. Fix your internal links to point at the canonical page.
  6. Check the sitemap. Your sitemap should list only canonical pages. If it lists the duplicates too, Google gets mixed signals.
  7. Wait. If everything above is clean, give Google time. Re-request indexing in Search Console and check again in one to two weeks.

Common Canonical Tag Mistakes

Most canonical tag problems come from a short list of beginner errors. Check your site against this list:

  • Pointing every page at the homepage. A canonical tag is not a way to push all your pages to the homepage. Each page should point at itself, or at its real duplicate. Pointing everything at the homepage tells Google your other pages do not exist.
  • Two canonical tags on one page. This happens when two SEO plugins run at once, or when a theme and a plugin both add tags. Google may follow the wrong one. Use one plugin only.
  • Relative addresses. Use the full address (https://example.com/page/), not a short form like /page/. Short forms can be read the wrong way.
  • HTTP instead of HTTPS. If your site runs on HTTPS, the canonical tag must use https:// too. An http:// canonical on a secure site is a mixed signal.
  • www and non-www mix-ups. Pick one version of your site address and use it everywhere, in the tag, in your links, and in your sitemap.
  • Trailing slash differences. /page/ and /page are different addresses. Keep the slash the same in the tag as in the real address.
  • Canonicalizing filtered pages to page 1. On a shop, page 2 of a category is not a copy of page 1. Each paginated page should point at itself. Only exact or near-exact copies should point elsewhere.
  • Canonical tag in the body. The tag only works in the <head>. A tag placed in the body of the page is ignored.
  • Blocking the canonical page. A canonical tag that points at a page blocked by robots.txt, or at a page that needs a login, will be ignored.

Do Small Sites Even Need Canonical Tags?

Probably not much, and that is fine. Google itself has said a small site will likely do just fine without setting canonical tags by hand, because most platforms add them for you.

Here is a quick way to decide:

  • A 5-page brochure site with no shop, no blog filters, and no tracking codes: you can ignore canonical tags. WordPress or your site builder already adds self-referencing tags for you.
  • A blog that gets syndicated on other sites: ask for a cross-domain canonical tag on each republished copy. That one step protects your ranking.
  • An online shop with filters, sorting, and ads: canonical tags matter. Set them on product and category pages, and check them in Search Console once a month.

If you hire someone to fix this, it is a small job. A developer can audit and set canonical tags on a small site in an hour or two. You do not need a monthly plan for it. Set it up once, then check it when you add new page types, change your shop filters, or start running ads with tracking codes.

Frequently Asked Questions

What is a canonical tag example?

A real example looks like this, placed in the <head> of a duplicate page: <link rel="canonical" href="https://example.com/blue-shoes/" />. It tells Google that the blue shoes page at that address is the main version, and any copies should pass their ranking credit to it.

What does “canonical” mean in simple terms?

Canonical means the official or main version. A canonical tag names the one official version of a page when several copies exist, so Google knows which one to show in search results.

How do I check canonical tags by hand?

Open the page, right-click, and pick View Page Source. Search the page for “canonical”. You should see one tag in the <head> section with the full address of the main page. If the address is wrong, or there are two tags, fix it in your SEO plugin or in the page code.

What is a self-referencing canonical tag?

It is a canonical tag that points at the page it sits on. It tells Google that this exact address is the real version of the page, which protects it from copies made by tracking codes, filters, or trailing-slash differences. Most platforms add one to every page by default.

Are canonical tags necessary?

For a tiny site with no duplicate pages, no. Your platform already adds self-referencing tags. For a shop with filters and tracking codes, or a blog that gets republished, yes. They stop your ranking power from splitting across copies of the same page.

What is the difference between a URL and a canonical URL?

A URL is the address of any page. A canonical URL is the one address you have chosen as the main version when several addresses lead to the same content. The canonical URL is the one Google should show in search results.

How long does it take for a canonical tag fix to work?

Usually a few days to a few weeks after Google re-crawls the page. Use the URL Inspection tool in Search Console to ask Google to re-crawl the page, then check again after a week. If nothing changed, work through the checklist in the “Google ignored my canonical tag” section above.

Last updated: November 2026

Taylor Orlando

Taylor Orlando is a content writer at Meregate covering websites, SEO, and AI. Taylor breaks down complex topics into simple, practical guides that help small businesses build better websites, rank higher on Google, and get real value from AI tools — no jargon, no fluff.

Related Articles

How to Verify Website in Google Search Console (2026)
SEO

How to Verify Website in Google Search Console (2026)

Verification proves to Google that you own your site. This guide walks through the DNS record, HTML file, HTML tag, Analytics and Tag Manager methods, and what to do when verification fails.

November 20, 2026 · Taylor Orlando