ComboStrap Page Metadata - Canonical URL

Undraw My Documents

About

A canonical is a short unique path identifier for a page on your website.

Usage

The canonical is used to create a named permalink in order to get quickly to a page without knowing its full path

Example:

https://yourdomain.com/your/canonical

Canonical Url

The canonical path can be used as path in the canonical url.

Tracking Metrics

The canonical path can be used in your tracking metrics in order to aggregate the page view even if the page:

  • is accessed via different url
  • or has moved

You can:

Value

The canonical path should have a meaning and be understandable by humans.

The canonical value:

  • should be unique for all pages of your website (ie domain).
  • should be written as wiki path (ie with a : semi-colon as path separator)
  • does not need to be the page path
  • is always lowercase

Demo

This page has the canonical value set to canonical and therefore is also available at the following named permalink. https://combostrap.com/canonical

You can try it your self.

Navigate to this page via its canonical URL !

or

Navigate to this page via its standard URL !

How to set the canonical value ?

Manually

To set the canonical value, uses the metadata manager and set the canonical property in a wiki path format (ie the path separator should be a colon)

Example:

my:path

Automatically

You can also create a canonical value based on the last parts of a page path. See Automatic Canonical Path

Javascript Example

If you want to retrieve the canonical value to add it to your tracking_metrics, you can access it via the JSINFO javascript variable.

Example:

console.log(`The canonical for this page is '${window.parent.JSINFO["canonical"]}'`);

Configuration

Google Analytics

You can send the canonical path as page identifier to Google Analytics.

For further information, see the Google Analytics Pageview section




Showcase yourself and your brand

Get free news, tips, and tricks
to create a remarkable experience for your readers.




Recommended Pages
Undraw File Analysis 8k9b
All the metadatas that you can set for your pages

ComboStrap - Metadata Page Metadata are page configuration. They are also known as: semantic data. or structured data The metadata can be seen and modified via the Metadata Manager. There...
Undraw My Documents
Automatic Canonical Path

This feature provides a default value to the router for the canonical path based on the last parts of the page path. It allows therefore a named permalink redirect based on the canonical. slots For...
Undraw My Documents
ComboStrap Analytics - Database

All ComboStrap data are stored in a Sqlite Database that you can query online The database schema has the following tables: pages - data on pages: page_id: the page id canonical: the canonical...
Redirection Actions
ComboStrap URL Management - Redirection Actions

The redirection actions takes place in the redirection processing when: the missing page: is not a canonical is not a alias does not have any page rules that applies for redirection the user...
Undraw My Documents
ComboStrap UI - Disqus

The disqus component will add a disqus forum to your page. At the end of your page: Attributes Default to Description shortname the configuration It's the forum's shortname. It's the unique...
Undraw My Documents
Google Analytics

combostrap supports the plugin:googleanalytics plugin as third party plugin. With ComboStrap , you can report your page view...
Nice Url Parameters
How to configure nice URL ?

This article shows you how to configure your installation to show nice url to your users.
Undraw Through The Park
How to create a Permalink ?

Permalinks are short links that will be permanently accessible even if the page is moved.
Undraw My Documents
ComboStrap Page Metadata - Canonical URL

A canonical is a short unique path identifier for a page on your website. The canonical is used to create a named permalink in order to get quickly to a page without knowing its full path Example:...
Undraw My Documents
Page URL (canonical URL )

The page url is the unique official URL of a page and is also known in the SEO world as the canonical url. This url: is created via the link component is in the sitemap is used when users bookmark...



Task Runner