Insight

Canonical Tags Explained: Fixing Duplicate Pages

Published February 27, 2026

Short answer: A canonical tag is a line of code that tells search engines which version of a page is the main one when several URLs show the same or very similar content. It helps Google combine ranking signals into one URL instead of splitting them across duplicates. Most WordPress SEO plugins add canonical tags automatically, so your job is mainly to check that they point to the right place.

Duplicate content sounds like something only large online stores worry about, but it shows up on small business websites all the time. The same service page might be reachable with and without a trailing slash, with tracking codes added to the address, or through both an old and a new URL after a redesign. To a person these all look like the same page. To a search engine they can look like several separate pages competing with each other.

This guide explains how duplicates happen, what canonical tags do about them, and how to check your own site.

How duplicate pages happen

Most duplicates are created by accident. Common causes include the following.

  • Tracking parameters. Links from emails, ads or social posts often add codes to the end of the URL. Each variation can be treated as a separate address.
  • Protocol and domain versions. If your site loads at both the www and non www address, or both the secure and insecure versions, each page exists in several places unless redirects are set up.
  • Printer friendly or filtered versions. Some themes and plugins create alternate versions of pages.
  • Copied location pages. When the same service text is pasted onto several city pages with only the city name changed, those pages are near duplicates.
  • Category and tag archives. Blog archives can repeat the same post excerpts across many listing pages.

What a canonical tag does

A canonical tag lives in the head section of a page’s code. It says, in effect, this is the preferred address for this content. When Google finds several URLs with the same content and they all point to one canonical URL, it usually indexes that one and treats the others as copies.

What it does not do

A canonical tag is a strong hint, not a command. Google may choose a different canonical if other signals disagree, such as internal links pointing to a different version or a sitemap listing another URL. It also does not fix near duplicate pages that genuinely need different content. If two city pages are nearly identical, the real fix is to make each page useful on its own.

Canonical tags versus redirects

Both tools deal with duplicates, but they work differently.

Use a redirect when

The old URL should no longer be visited at all. For example, when you move a page to a new address or settle on one domain version, a permanent redirect sends both people and search engines to the right place.

Use a canonical tag when

Both versions need to stay reachable for practical reasons, such as tracking links, but you want search engines to focus on one.

How to check your canonical tags

You do not need special software to spot most problems.

  • Open a page, right click and choose to view the page source, then search for the word canonical. The URL listed should be the exact address you want to rank, including the correct domain and trailing slash.
  • In Google Search Console, use the URL Inspection tool on an important page. It shows the canonical you declared and the canonical Google selected. If they differ, investigate why.
  • Review the page indexing report for pages marked as duplicates. Many are harmless, such as tracking variations, but important pages should not appear there.

Signs of trouble

  • Every page on the site points its canonical to the homepage.
  • Canonical URLs use the insecure or wrong domain version.
  • Important service pages are listed as duplicates in Search Console.
  • Your sitemap lists URLs that do not match their own canonical tags.

Setting canonical tags in WordPress

WordPress and plugins such as Yoast SEO add a self referencing canonical tag to each page by default, which is the right setting for nearly every page. In the advanced section of the plugin panel you can set a different canonical URL for a specific page if needed. Use that option sparingly, and only when you are sure which version should rank.

If your site has deeper issues, such as several domain versions loading without redirects or copied city pages, a technical SEO audit will identify which fixes matter. You can also review the wider list of checks in our technical SEO checklist.

A short maintenance routine

  • Confirm your site loads on one domain version and the others redirect to it.
  • Spot check canonical tags on your homepage, top service pages and a few blog posts.
  • Check the duplicate entries in the Search Console page indexing report every few months.
  • Make sure your sitemap only lists canonical URLs.
  • Rewrite near duplicate location pages so each one has genuinely local content.

Frequently asked questions

Will duplicate content get my site penalized?

Ordinary duplicates caused by tracking codes or URL variations do not lead to a penalty. The real cost is diluted signals and Google indexing a version you did not intend.

Should every page have a canonical tag?

Yes. A self referencing canonical, where each page points to its own preferred address, is a sensible default and is what most SEO plugins set automatically.

Can a wrong canonical tag hurt rankings?

It can. A canonical that points to the wrong page can cause Google to drop the page you actually want in search results, so it is worth checking after any redesign or plugin change.

Next step

Want to know whether duplicate pages are splitting your rankings? Request a free audit and we will check your canonical tags, redirects and indexing.

Ready to apply this to your business?

Free audit. We'll tell you exactly where you stand. Websites start at $2,500.

Get a Free Audit
Check my site Call or Text