RankpediaA plain-English encyclopedia of search

SEO Magento 2

Configuring and optimising a Magento 2 store so search engines can crawl, index, and rank product, category, and content pages effectively.

If you treat Magento 2 SEO as a one-time setup, you will miss the ongoing adjustments needed for algorithm changes, speed updates, and faceted navigation.

Key points

  • Enable canonical tags in Catalogue SEO settings to prevent duplicate content across product and category pages.
  • Set 301 redirects whenever you change a URL key so existing rankings and backlinks are preserved.
  • Keep XML sitemaps under 50,000 URLs or 50 MB and split large stores into multiple sitemap files.
  • Block non-essential pages in robots.txt, but never list a blocked page in your XML sitemap.
  • Focus each page on one primary keyword and use long-tail variations naturally in titles and body copy.

A store enabled canonical tags late

A Magento 2 store with 500 products left canonical tags disabled for six months. Google indexed 1,200 URLs from filtered category pages, all with the same content as the parent category. Organic traffic for 20 key terms dropped by 35%. Enabling canonical tags and submitting a clean XML sitemap took three weeks to recover lost rankings. A magento seo agency later found that the same problem had been hiding in faceted navigation URLs.

Three settings that affect indexation

  • Canonical tags Enable them under Catalogue > SEO to tell search engines which URL is the master copy. This prevents duplicate content from filtered and parameter-laden URLs.
  • URL key changes Always create a 301 redirect from the old URL to the new one. Without it, link equity evaporates and existing backlinks break.
  • Robots.txt Use it to block non-essential pages like checkout or customer account pages. Keep blocked pages out of your XML sitemap to avoid confusion.

Three ways Magento 2 SEO goes wrong

  • Canonical tags disabled This is the most common mistake. It lets duplicate content from filtered and paginated pages compete for the same keywords.
  • URL changes without redirects Changing product or category URL keys without 301 redirects loses rankings and backlinks built over time, often requiring a magento seo consultant to fix the damage.
  • Overusing robots.txt Blocking pages that should be crawlable, such as faceted navigation SEO pages, can prevent indexation of important content.

Common questions

What are the best practices for Magento 2 SEO?

Enable canonical tags, set 301 redirects, optimise XML sitemaps, use robots.txt carefully, and focus on one primary keyword per page.

What is the most common mistake in Magento 2 SEO?

Leaving canonical tags disabled increases duplicate content risk across category, product, and filtered URLs.

How often should I update Magento 2 SEO settings?

Re-check canonical, sitemap, robots, and schema settings after platform upgrades, theme changes, extension installs, or URL restructuring.

Sources

  1. Google Search Central: SEO Starter Guide Foundation of SEO best practices for any site, including Magento 2.
  2. Google Search Central: Sitemaps Guidelines for creating and submitting XML sitemaps, applicable to Magento 2 stores.
  3. Google Search Central: Canonicalization How to use canonical tags to consolidate duplicate URLs, critical for Magento 2.