# 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.

Canonical: https://scaplet.com/examples/canonical-tag

Examples Examples · Page markup

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

10 examples

## Real canonical tag examples, _fetched_.

Each one was fetched from the live site on the date shown, with a link to the source. Filter by pattern or industry.

Ahrefs [ahrefs.com/blog/canonical-tags/ ↗](https://ahrefs.com/blog/canonical-tags/) captured Nov 2, 2026

Excerpt
canonical tag

```
<link rel="canonical" href="https://ahrefs.com/blog/canonical-tags/" />
```

Numbers

Canonical

ahrefs.com/blog/canonical-tags/

Self-referencing

Yes

URL form

Absolute

- Uses an absolute URL
- Self-referencing: points at the page itself

**Why it works.** A self-referencing canonical on a blog post: the tag points to https://ahrefs.com/blog/canonical-tags/, the page's own address, as an absolute URL.

**Copy this.** Put an absolute self-referencing canonical on every indexable page.

- Seo
- Absolute
- Self referencing

BBC (tracking parameter) [bbc.com/news ↗](https://www.bbc.com/news?utm_source=example&utm_medium=test) captured Nov 2, 2026

Excerpt
canonical tag

```
<link rel="canonical" href="https://www.bbc.com/news" data-next-head=""/>
```

Numbers

Canonical

www.bbc.com/news

Self-referencing

No

URL form

Absolute

- Uses an absolute URL
- Points at a different URL than the one fetched
- Drops the query string from the requested URL

**Why it works.** Requested as /news?utm_source=example&utm_medium=test, the page answers with https://www.bbc.com/news: the query string is gone. The tag also has a framework attribute, data-next-head.

**Copy this.** Make parameter variants of a URL name the clean version as their canonical.

- Media
- Absolute
- Points elsewhere
- Parameter url

Google for Developers [developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls ↗](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) captured Nov 2, 2026

Excerpt
canonical tag

```
<link rel="canonical" href="https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls">
```

Numbers

Canonical

developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls

Self-referencing

Yes

URL form

Absolute

- Uses an absolute URL
- Self-referencing: points at the page itself

**Why it works.** Google's page on consolidating duplicate URLs carries a canonical pointing at itself, an absolute URL with no query string.

**Copy this.** Do what the docs describe: a self-referencing canonical on the canonical page.

- Developer
- Absolute
- Self referencing

HubSpot (tracking parameter) [hubspot.com/products/marketing ↗](https://www.hubspot.com/products/marketing?utm_source=example) captured Nov 2, 2026

Excerpt
canonical tag

```
<link rel="canonical" href="https://www.hubspot.com/products/marketing">
```

Numbers

Canonical

www.hubspot.com/products/marketing

Self-referencing

No

URL form

Absolute

- Uses an absolute URL
- Points at a different URL than the one fetched
- Drops the query string from the requested URL

**Why it works.** Requested with ?utm_source=example on /products/marketing, the canonical comes back as https://www.hubspot.com/products/marketing without it.

**Copy this.** Tracking parameters should never be part of the canonical URL.

- SaaS
- Absolute
- Points elsewhere
- Parameter url

MDN [developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link ↗](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link) captured Nov 2, 2026

Excerpt
canonical tag

```
<link rel="canonical" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link" />
```

Numbers

Canonical

developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link

Self-referencing

Yes

URL form

Absolute

- Uses an absolute URL
- Self-referencing: points at the page itself

**Why it works.** A self-referencing canonical with the attributes spread over several lines. The URL is the page's own absolute address.

**Copy this.** Formatting doesn't matter: a canonical on one line or many is the same tag.

- Developer
- Absolute
- Self referencing

Moz [moz.com/learn/seo/canonicalization ↗](https://moz.com/learn/seo/canonicalization) captured Nov 2, 2026

Excerpt
canonical tag

```
<link href="https://moz.com/learn/seo/canonicalization" rel="canonical">
```

Numbers

Canonical

moz.com/learn/seo/canonicalization

Self-referencing

Yes

URL form

Absolute

- Uses an absolute URL
- Self-referencing: points at the page itself

**Why it works.** A self-referencing canonical on a guide page. The attributes are in the order href then rel, which is still the same tag.

**Copy this.** Attribute order doesn't matter. What counts is that the href is absolute and correct.

- Seo
- Absolute
- Self referencing

Search Engine Journal [searchenginejournal.com/category/seo/ ↗](https://www.searchenginejournal.com/category/seo/?utm_source=example) captured Nov 2, 2026

Excerpt
canonical tag

```
<link rel="canonical" href="https://www.searchenginejournal.com/category/seo/" />
```

Numbers

Canonical

www.searchenginejournal.com/category/seo/

Self-referencing

No

URL form

Absolute

- Uses an absolute URL
- Points at a different URL than the one fetched
- Drops the query string from the requested URL

**Why it works.** Requested with a utm parameter on a category page, the canonical keeps the path and the trailing slash: /category/seo/.

**Copy this.** Keep your trailing-slash convention consistent between the canonical and your internal links.

- Seo
- Absolute
- Points elsewhere
- Parameter url

The Guardian (tracking parameter) [theguardian.com/international ↗](https://www.theguardian.com/international?utm_source=example) captured Nov 2, 2026

Excerpt
canonical tag

```
<link rel="canonical" href="https://www.theguardian.com" />
```

Numbers

Canonical

www.theguardian.com/

Self-referencing

No

URL form

Absolute

- Uses an absolute URL
- Points at a different URL than the one fetched
- Drops the query string from the requested URL

**Why it works.** We requested /international?utm_source=example and the canonical is https://www.theguardian.com, the site root, not the page we asked for.

**Copy this.** Test the edition or region pages on your own site: confirm each canonical points where you meant.

- Media
- Absolute
- Points elsewhere
- Parameter url

web.dev [web.dev/articles/vitals ↗](https://web.dev/articles/vitals?utm_source=example) captured Nov 2, 2026

Excerpt
canonical tag

```
<link rel="canonical" href="https://web.dev/articles/vitals">
```

Numbers

Canonical

web.dev/articles/vitals

Self-referencing

No

URL form

Absolute

- Uses an absolute URL
- Points at a different URL than the one fetched
- Drops the query string from the requested URL

**Why it works.** Requested as /articles/vitals?utm_source=example, the canonical is https://web.dev/articles/vitals, the same page without tracking.

**Copy this.** One clean URL per article, whatever campaign tags people add.

- Developer
- Absolute
- Points elsewhere
- Parameter url

WordPress.org [wordpress.org/plugins/ ↗](https://wordpress.org/plugins/?utm_source=example) captured Nov 2, 2026

Excerpt
canonical tag

```
<link rel="canonical" href="https://wordpress.org/plugins/">
```

Numbers

Canonical

wordpress.org/plugins/

Self-referencing

No

URL form

Absolute

- Uses an absolute URL
- Points at a different URL than the one fetched
- Drops the query string from the requested URL

**Why it works.** Requested as /plugins/ with a utm parameter, the canonical is https://wordpress.org/plugins/, the directory root without the query.

**Copy this.** Section landing pages need canonicals too, not only articles.

- Publisher
- Absolute
- Points elsewhere
- Parameter url

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

| Moz | HubSpot (tracking parameter) |
| Canonical | moz.com/learn/seo/canonicalization | www.hubspot.com/products/marketing |
| Self-referencing | Yes | No |
| URL form | Absolute | Absolute |

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}">
```

_01_Worth 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](/glossary/structured-data) 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](/glossary/url-parameters).

### 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
| Site | URL we fetched | Canonical returned | Self-referencing |
| ahrefs.com | /blog/canonical-tags/ | ahrefs.com/blog/canonical-tags/ | Yes |
| bbc.com | /news?utm_source=example&utm_medium=test | www.bbc.com/news | No |
| developer.mozilla.org | /en-US/docs/Web/HTML/Reference/Elements/link | same URL | Yes |
| developers.google.com | /search/docs/crawling-indexing/consolidate-duplicate-urls | same URL | Yes |
| hubspot.com | /products/marketing?utm_source=example | www.hubspot.com/products/marketing | No |
| moz.com | /learn/seo/canonicalization | same URL | Yes |
| searchenginejournal.com | /category/seo/?utm_source=example | www.searchenginejournal.com/category/seo/ | No |
| theguardian.com | /international?utm_source=example | www.theguardian.com | No |
| web.dev | /articles/vitals?utm_source=example | web.dev/articles/vitals | No |
| wordpress.org | /plugins/?utm_source=example | wordpress.org/plugins/ | No |

_02_Canonical methods in Google's guide

## What Google says about canonicals

Google's consolidation guide ranks the signals. A redirect is a strong signal that the target should become canonical. A `rel="canonical"` link annotation is also a strong signal. A sitemap is a weak signal. MDN describes the `canonical` value as defining the preferred URL for the current document, valid on `link`. Google accepts the link element only in the `head` of the HTML, and asks for absolute paths rather than relative ones.

Method

### Redirect

Strength

Strong

Notes

Use when you want to get rid of existing [duplicate pages](/glossary/duplicate-content)

Method

### rel="canonical" link element

Strength

Strong

Notes

In the head only; absolute URL; include one on the canonical page itself

Method

### rel="canonical" HTTP header

Strength

Not ranked in the guide

Notes

Google supports it for web [search results](/glossary/serp) only; useful for files such as PDFs

Method

### Sitemap

Strength

Weak

Notes

Submit the [canonical URL](/glossary/canonical-url) for each page

**Don't mix methods**Google recommends picking one method rather than combining the link element and the header, because using both is more error prone. It also says not to use [robots.txt](/glossary/robots-txt) or the [URL removal tool](/glossary/removals-tool) for canonicalization, not to specify a [URL fragment](/glossary/url-fragment) as canonical, and not to point different canonicals at the same page with different techniques.

When we checked Moz's response headers on 2 November 2026, it sent a `Link` header with `rel='canonical'` as well as the HTML tag. Both name the same URL, so there is no conflict, but it is the pattern Google calls more error prone.

Use a redirect
- The duplicate page should stop existing
- Users and crawlers should land on one URL

Use rel=canonical
- Both URLs must stay reachable, such as parameter or tracking variants
- You want a self-referencing tag on every indexable page

_03_How 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:'
```

**Audit canonicals at scale**The free audit at /site-audit reads canonicals together with redirects, status codes and sitemaps across your pages.

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. 01 [The rel attribute, canonical value (MDN)](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel) developer.mozilla.org · checked 2026-11-01
2. 02 [How to specify a canonical URL with rel="canonical" and other methods (Google Search Central)](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) developers.google.com · checked 2026-11-01
3. 03 [Ahrefs canonical tag](https://ahrefs.com/blog/canonical-tags/) ahrefs.com · checked 2026-11-02
4. 04 [BBC (tracking parameter) canonical tag](https://www.bbc.com/news?utm_source=example&utm_medium=test) bbc.com · checked 2026-11-02
5. 05 [Google for Developers canonical tag](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) developers.google.com · checked 2026-11-02
6. 06 [HubSpot (tracking parameter) canonical tag](https://www.hubspot.com/products/marketing?utm_source=example) hubspot.com · checked 2026-11-02
7. 07 [MDN canonical tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link) developer.mozilla.org · checked 2026-11-02
8. 08 [Moz canonical tag](https://moz.com/learn/seo/canonicalization) moz.com · checked 2026-11-02
9. 09 [Search Engine Journal canonical tag](https://www.searchenginejournal.com/category/seo/?utm_source=example) searchenginejournal.com · checked 2026-11-02
10. 10 [The Guardian (tracking parameter) canonical tag](https://www.theguardian.com/international?utm_source=example) theguardian.com · checked 2026-11-02
11. 11 [web.dev canonical tag](https://web.dev/articles/vitals?utm_source=example) web.dev · checked 2026-11-02
12. 12 [WordPress.org canonical tag](https://wordpress.org/plugins/?utm_source=example) wordpress.org · checked 2026-11-02

Questions

## Asked a lot.

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

_01_ Should 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.

_02_ Does 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.

_03_ Is 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.

_04_ Where 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.

## Keep learning

[All examples](/examples)

[Examples 404 page examples](/examples/404-page) [Examples Alt text examples](/examples/alt-text) [Examples Breadcrumb schema examples](/examples/breadcrumb-schema) [Examples FAQ schema examples](/examples/faq-schema)

Profiles of sites in this gallery
[HubSpot AI crawler access](/domains/hubspot.com)

More examples
[404 page examples](/examples/404-page) [Alt text examples](/examples/alt-text) [Breadcrumb schema examples](/examples/breadcrumb-schema) [Canonical tag examples](/examples/canonical-tag) [FAQ schema examples](/examples/faq-schema) [H1 tag examples](/examples/h1-tag) [Hreflang examples](/examples/hreflang) [llms.txt examples](/examples/llms-txt) [Meta description examples](/examples/meta-description) [Product schema examples](/examples/product-schema) [robots.txt examples](/examples/robots-txt) [Schema markup examples](/examples/schema-markup) [Sitemap examples](/examples/sitemap) [Title tag examples](/examples/title-tag)

Terms on this page
[Structured data](/glossary/structured-data) [URL parameters](/glossary/url-parameters) [Duplicate content](/glossary/duplicate-content) [SERP](/glossary/serp) [Canonical URL](/glossary/canonical-url) [robots.txt](/glossary/robots-txt) [Removals tool (Search Console)](/glossary/removals-tool) [URL fragment](/glossary/url-fragment)

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.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
