Page - Canonical Path


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


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:


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


This page has the canonical value set to canonical and therefore is also available at the following named permalink.

You can try it your self.

Navigate to this page via its canonical URL !


Navigate to this page via its standard URL !

How to set the canonical value ?


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)




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.


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


Google Analytics

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

For further information, see the Google Analytics Pageview section

Powered by ComboStrap