What Is The Best Way to Insert Canonical Tag in Magento 2?

What Is The Best Way to Insert Canonical Tag in Magento 2?

What is Canonical Tag

Having unique content is one of the key factors in SEO. Search engine crawlers take it low on site with duplicate content (multiple URLs pointing to the same or similar content).

To solve this, you should explicitly tell Google which URL is authoritative (canonical) for that page. If you do not do this explicitly, Google will choose for you or might consider them both of equal weight, which might lead to unwanted behavior.

That’s also the benefit of the canonical tag. The rel=canonical <link> tag can be added to the code for all duplicate pages, pointing to the canonical page.

READ NOW Magento 2 SEO Plugin to know how to eliminate duplicate content with canoncal tags.

Why Canonical Tag is important for SEO in Magento 2

If duplicate content is detected in your site at a high ratio, Google may give your domain a penalty and a decrease in ranking. For an e-commerce site like Magento 2, this is a common problem because of the high variation in URLs. With a suitable use of the canonical tag, you can instruct the crawlers which link should be the original and have all the ranking power. Some suggestion of where to put the tags are:

  • Product page: Product with variations such as size, colors, etc.. Product belonging to multiple categories

How Canonical Tag feature of BSS Magento 2 SEO Extension can help you

Magento 2 SEO extension helps you to place the canonical tag automatically without any help from the developer. You can choose to set the canonical tag as following

  • Canonical Tag for product page

Product page URL may have multiple variations. You can set the canonical to either one of these two options:

  • Short URL path: the shortest URL like  https://yoursite.com/
  • Long URL path: the longest URL, containing category
  • Canonical Tag for category page

For the category page, we use a specific tag name rel=next and rel=”prev” for the canonical purpose. When implementing this markup, we tell the crawlers to index links, from the component pages/URLs to the series as a whole (i.e., links should not remain dispersed between page-1.html, page-2.html, etc., but be grouped with the sequence)

  • Canonical Tag for Homepage

In case you want to use other URL for canonical of the homepage, admins can use freely to set one.

magento 2 seo extension

Write A Comment