Magento Open Source 2.2.x
Canonical Meta Tag

Some search engines penalize websites that have multiple URLs that point to the same content. The canonical meta tag tells search engines which page to index when multiple URLs have identical or very similar content. Using the canonical meta tag can improve your site ranking and aggregate pageviews. The canonical meta tag is placed in the <head> block of a product or categoryA set of products that share particular characteristics or attributes. page. It provides a link to your preferred URLUniform Resource Locator: The unique address of a page on the internet., so search engines will give it greater weight.

You can avoid being penalized by search engines by omitting the category from the URL, or by using the canonical meta tag to direct search engines to index either by product or category. As a best practice, it is recommended that you enable canonical meta tags for both categories and products.

To enable the canonical meta tag:

1. On the Admin sidebar, tap Stores. Then under Settings, choose elect Configuration.
2. In the panel on the left under Catalog, choose Catalog.
3. Expand the Search Engine Optimization section.

To change any field values, you must first clear the Use system value checkbox after each field.

4. If want search engines to index only category pages using the full category path, do the following:
a. Set Use Canonical Link Meta Tag for Categories to “Yes.”
b. Set Use Canonical Link Meta Tag for Products to “No.”
5. If you want search engines to index product pages only using the domain-name/product-url-key format, do the following:
a. Set Use Canonical Link Meta Tag for Products to “Yes.”
b. Set Use Canonical Link Meta Tag for Categories to “No.”
6. When complete, tap Save Config .