Skip to content
ZenoCloud Call

How to Add Canonical Tags in Magento 2?

Learn how to add canonical tags in Magento 2 to improve SEO and prevent duplicate content issues.

First written in 2020. Things may have changed since.

Canonical tags are essential for SEO in Magento 2 to handle duplicate content issues.

What are Canonical Tags?

Canonical tags tell search engines which version of a page is the preferred one when duplicate or similar content exists on your site.

Why Use Canonical Tags?

Benefits include:

  • Prevent duplicate content penalties
  • Consolidate ranking signals
  • Control which version appears in search results
  • Improve SEO performance

How to Add Canonical Tags in Magento 2

Follow these steps:

  • Log in to Magento admin
  • Navigate to Stores > Settings > Configuration
  • Go to Catalog > Catalog > SEO
  • Enable Canonical URLs
  • Save Configuration

For individual products or categories, edit the item and add a custom canonical URL in the SEO section.

Wrap Up

Proper canonical tag implementation is crucial for Magento SEO success.

Next step

Run Magento on infrastructure built for it.

See Magento hosting

Related services

Browse all field notes
Quote request

What should we quote?

Your name, number and what you need. We reply within one business day.