Free auditStart free
ExamplesExamples · Page markup

Canonical tag examples

Ten real rel=canonical tags from Google, MDN, HubSpot, the BBC and more, including six fetched with tracking parameters, with what each does and what to copy.

10
real examples
Nov 2, 2026
captured
4
templates
Scaplet Editorial Team
editor
In one line

A canonical tag is a link element in the head that names the preferred URL for a page. We fetched 10 real pages. All 10 use absolute URLs. Four point at themselves. The other six we requested with ?utm_source=example in the URL, and all six answered with a canonical that drops it. Five keep the same path; The Guardian's points at the site root.

Across 10 captures

Counted from the captured files
10 of 10
Absolute
6 of 10
Parameter url
6 of 10
Points elsewhere
4 of 10
Self referencing
Side by side

Moz vs HubSpot (tracking parameter).

Two captures that solve the same job differently. Numbers come from the captures.
Moz
moz.com
<link href="https://moz.com/learn/seo/canonicalization" rel="canonical">
  • Uses an absolute URL
  • Self-referencing: points at the page itself
HubSpot (tracking parameter)
hubspot.com
<link rel="canonical" href="https://www.hubspot.com/products/marketing">
  • Uses an absolute URL
  • Points at a different URL than the one fetched
  • Drops the query string from the requested URL
MozHubSpot (tracking parameter)
Canonicalmoz.com/learn/seo/canonicalizationwww.hubspot.com/products/marketing
Self-referencingYesNo
URL formAbsoluteAbsolute
Pattern library

4 patterns to copy.

Templates we wrote from what the examples have in common. Replace the placeholders in braces.
01

Self-referencing canonical

Every indexable page, so the page names its own preferred address.

Our template
<link rel="canonical" href="https://{your-domain}/{path}">
02

Parameter variants to the clean URL

Pages reachable with tracking, sort or session parameters that show the same content.

Our template
<!-- on /{path}?utm_source={source} -->
<link rel="canonical" href="https://{your-domain}/{path}">
03

HTTP header for files

PDFs and other non-HTML files, where there is no head to put a link element in.

Our template
Link: <https://{your-domain}/downloads/{file}.pdf>; rel="canonical"
04

Cross-domain canonical

A syndicated copy of a page, pointing at the original. Pick this deliberately.

Our template
<link rel="canonical" href="https://{original-domain}/{path}">
01Worth knowing

What 10 canonical tags do

We fetched each page on 2 November 2026 from India and read the canonical link element. Six URLs were requested with a tracking parameter on purpose, to see what the page says its preferred URL is. They are the US or global versions, and some sites vary markup by region.

All 10 are absolute URLs

None uses a relative path.

Parameters get stripped

Five of six parameter URLs return the same path without the query string.

One goes elsewhere

The Guardian's canonical for its /international URL is the site root. That may be intended for an edition front page, so test yours.

Canonicals as captured, 2026-11-02
SiteURL we fetchedCanonical returnedSelf-referencing
ahrefs.com/blog/canonical-tags/ahrefs.com/blog/canonical-tags/Yes
bbc.com/news?utm_source=example&utm_medium=testwww.bbc.com/newsNo
developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/linksame URLYes
developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urlssame URLYes
hubspot.com/products/marketing?utm_source=examplewww.hubspot.com/products/marketingNo
moz.com/learn/seo/canonicalizationsame URLYes
searchenginejournal.com/category/seo/?utm_source=examplewww.searchenginejournal.com/category/seo/No
theguardian.com/international?utm_source=examplewww.theguardian.comNo
web.dev/articles/vitals?utm_source=exampleweb.dev/articles/vitalsNo
wordpress.org/plugins/?utm_source=examplewordpress.org/plugins/No
03How it works

Check it on your own site

Fetch a page twice: once clean and once with a tracking parameter. The canonical in both responses should be the same clean URL. We ran the first command against HubSpot with a utm parameter and got the same canonical as the capture.
  1. 1

    Compare the two

    Run the first command on the clean URL and on the parameter URL. They should return the same href.

  2. 2

    Check it is absolute

    The href should start with https:// and include the host.

  3. 3

    Look for a second method

    If the header command prints a canonical too, make sure it matches the tag.

Run against your own URL
# canonical link element (works when the tag is on one line)
curl -sL 'https://example.com/page?utm_source=test' | grep -io '<link[^>]*rel="canonical"[^>]*>'

# canonical in an HTTP header
curl -sI https://example.com/page | grep -i '^link:'
Sources · 12

Every fact, linked and dated.

Official docs first, then every capture with the date we fetched it.
  • mozilla.org
  • google.com
  • ahrefs.com
  • bbc.com
  • hubspot.com
  • moz.com
  • searchenginejournal.com
  • theguardian.com
  1. 01The rel attribute, canonical value (MDN)developer.mozilla.org · checked 2026-11-01
  2. 02How to specify a canonical URL with rel="canonical" and other methods (Google Search Central)developers.google.com · checked 2026-11-01
  3. 03Ahrefs canonical tagahrefs.com · checked 2026-11-02
  4. 04BBC (tracking parameter) canonical tagbbc.com · checked 2026-11-02
  5. 05Google for Developers canonical tagdevelopers.google.com · checked 2026-11-02
  6. 06HubSpot (tracking parameter) canonical taghubspot.com · checked 2026-11-02
  7. 07MDN canonical tagdeveloper.mozilla.org · checked 2026-11-02
  8. 08Moz canonical tagmoz.com · checked 2026-11-02
  9. 09Search Engine Journal canonical tagsearchenginejournal.com · checked 2026-11-02
  10. 10The Guardian (tracking parameter) canonical tagtheguardian.com · checked 2026-11-02
  11. 11web.dev canonical tagweb.dev · checked 2026-11-02
  12. 12WordPress.org canonical tagwordpress.org · checked 2026-11-02
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Should every page have a self-referencing canonical?

Google's guide says to include a rel=canonical link on the canonical page itself, also known as a self-referential canonical. Four of our 10 captures do exactly that.

02Does the canonical URL have to be absolute?

Google says to use absolute paths rather than relative paths with the rel=canonical link element. All 10 captured tags use absolute URLs.

03Is a canonical tag the same as a redirect?

No. Google treats both as strong signals, but a redirect sends visitors to the target, while a canonical tag leaves both URLs reachable and states the preferred one.

04Where does the canonical tag go?

In the head section of the HTML. Google says the link element is only accepted there. For non-HTML files, send a rel=canonical HTTP header instead.

Free · 2 minutes

Seen the examples? Now check your own site.

The free audit reads your robots.txt, title tags, meta descriptions, structured data and status codes, and lists what to fix.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly