On This Page
What a Canonical Tag Does
A canonical tag is a line in a page's head that names the main URL for that content. When Google finds several URLs with the same or very similar content, it picks one to show in search and treats the rest as duplicates. The canonical tag is your vote. Google calls it a strong signal, not a rule.
The tag looks like this:
<link rel="canonical" href="https://www.example.co.za/services/plumbing/">
Duplicates are not a penalty. Google does not punish a site because a product appears at two URLs. The cost is quieter: links, clicks and other signals get split across versions, Google may show the version you like least, and crawling time goes to copies instead of new pages.
Because the tag is a hint, Google weighs it against other signals. Its own guide to consolidating duplicate URLs ranks them: redirects and canonical tags are strong signals, inclusion in a sitemap is a weak one. When all three agree, you give Google no reason to pick another URL.
Where Duplicate URLs Come From on South African Sites
Most duplicate URLs are created by the website itself, not by copied content. The usual sources are www and non-www versions, http and https, trailing slashes, tracking and filter parameters, print or sort views, and eCommerce products that sit in more than one category. A typical small business site can have several of these at once.
- www vs non-www.
example.co.zaandwww.example.co.zaare different URLs to Google. Pick one and 301-redirect the other. - http vs https. Old links and some hosting setups still serve the http version. Redirect it to https.
- Trailing slashes.
/contactand/contact/can both load. Choose one form and redirect the other. - Tracking parameters. Links from WhatsApp campaigns, newsletters and ads often carry
?utm_source=tags. Each tagged URL can be crawled as a separate page unless it points back to the clean URL. - Filters and sorting. Online stores create URLs such as
?colour=black&sort=price. Most of these should canonicalise to the main category page. Our guide to category page SEO covers faceted navigation in detail. - Products in several categories. Shopify can show a product at
/collections/shoes/products/runnerand at/products/runner; its themes point the canonical to the/products/version by default. WooCommerce sites with category-based product permalinks need the same check. - Printer-friendly and AMP versions, plus staging copies of the site that were left open to crawlers.
How to Set a Canonical Tag Correctly
Put one canonical tag in the head of every indexable page. Use the full absolute URL with https and your chosen host. Point each page to itself unless it is a true duplicate. Make sure the canonical URL returns a 200 status, is not noindexed, and is the same URL you list in your XML sitemap and internal links.
- Self-referencing by default. Google recommends a canonical on the canonical page itself. It protects you from parameter copies you never created.
- Absolute, not relative. Write
https://www.example.co.za/page/, not/page/. - One per page. Two different canonical tags cancel each other out. This often happens when a theme and an SEO plugin both add one.
- Consistent everywhere. The canonical URL, the sitemap entry and your internal links should all use the same form, including the trailing slash.
- Pointing to a live page. A canonical that points to a redirect, a 404 or a noindexed page sends Google a contradiction.
On WordPress, Yoast SEO and Rank Math add self-referencing canonicals automatically and let you override them per page. On Wix and Shopify the platform sets them for you. Check the page source to confirm only one appears.
Canonical vs 301 Redirect vs noindex: Which to Use
Use a 301 redirect when nobody needs the duplicate URL, such as http, non-www or an old page. Use a canonical tag when the duplicate must stay reachable, such as a filtered or tracked URL. Use noindex only for pages that should never appear in search. Never use robots.txt to choose a canonical.
| Situation | Best tool | Why |
|---|---|---|
| http, non-www or trailing-slash variants | 301 redirect | Visitors and Google land on one version. Redirects are the strongest signal. |
| Old URL after a redesign | 301 redirect | Passes signals to the new page. See our migration guide. |
Tracking parameters (?utm_) | Canonical tag | The tagged link must still work for the campaign. |
| Store filters and sort orders | Canonical tag | Shoppers need the filtered view; Google needs one main page. |
| Thank-you pages, internal search results | noindex | The page should not appear in search at all. |
| Paginated category pages (page 2, 3) | Self-referencing canonical on each page | Google advises against pointing page 2 to page 1. |
Two rules from Google are worth remembering. Do not block duplicates in robots.txt, because Google then cannot see the canonical tag on them. And do not use noindex to pick a canonical within your own site, because it removes the page from search completely. Google's guidance on pagination covers the page 2 rule.
Reading the Canonical Reports in Search Console
Search Console's Page indexing report shows two canonical statuses. "Alternate page with proper canonical tag" is normal: Google found a duplicate and followed your tag. "Duplicate, Google chose different canonical than user" means Google disagreed with your tag. Use URL Inspection to see which URL Google picked, then make your signals agree.
When Google overrides you, the cause is usually one of these:
- Your internal links or sitemap point to a different version than the canonical tag.
- The two pages are not true duplicates, so Google treats them as separate pages and picks the stronger one.
- The canonical URL redirects, returns an error or is blocked.
- Another version has more links pointing to it from other sites.
Fix the inconsistency, then request a recrawl in URL Inspection. Our indexing and crawl budget guide explains the other Page indexing statuses.
Six Common Canonical Tag Mistakes
The most common mistakes are canonicals that point every page to the homepage, conflicting tags from a theme and a plugin, relative URLs, canonicals to redirected or http URLs, page 2 pointing to page 1, and a staging domain left in the tag after launch. Each one tells Google to ignore pages you want ranked.
- Every page canonicalised to the homepage. A template bug can do this site-wide, and Google may drop your inner pages from search.
- Two tags with different URLs. Check the source after installing any SEO plugin.
- Relative URLs. They can resolve to the wrong host or protocol.
- Canonical to an http or redirected URL. Update tags after every move to https or a new domain.
- Pagination pointed to page 1. Products on page 2 and beyond can then drop out of Google's view.
- A staging domain in the tag. Developers sometimes launch with canonicals still pointing to
staging.example.co.za. Check it on launch day.
Canonicals are one part of the crawl and indexing layer. Our technical SEO guide for South Africa covers the rest, and an SEO audit will flag canonical conflicts across a whole site.
Frequently Asked Questions
Is a canonical tag a directive or a hint?
A hint. Google calls rel="canonical" a strong signal, but it can choose a different URL if other signals disagree, such as internal links, sitemaps or redirects. Make all of your signals point to the same URL.
Should every page have a self-referencing canonical?
Yes. Google recommends a canonical on the canonical page itself. It protects you from duplicate versions created by tracking parameters, filters or other links you do not control.
Does duplicate content cause a Google penalty?
No. Normal technical duplicates are not penalised. Google picks one version to show. The cost is split signals and wasted crawling, and Google may show the version you would not choose.
Should I use a canonical tag or a 301 redirect?
Use a 301 redirect when the duplicate URL does not need to work for visitors, such as http or non-www versions and old pages. Use a canonical tag when the duplicate must stay reachable, such as tracked campaign links or store filters.
Can I canonicalise page 2 of a category to page 1?
No. Google advises giving each paginated page its own self-referencing canonical. Pointing page 2 to page 1 can stop Google from finding the products listed on later pages.
Not Sure Which URL Google Is Showing?
An SEO audit checks canonicals, redirects and indexing across your whole site and gives you a clear fix list. Book a free consultation and we will reply within 1 business day.
Book a Free Consultation →