How Can I Generate Sitemaps Using Magento 2 SEO?

brown and white open signage on green grasses

Magento 2 is a powerful ecommerce platform but to get the most out of it, it is important to optimize your site for search engines. One of the key elements of search engine optimization (SEO) is creating an accurate sitemap. A sitemap is a file that lists all the pages on your site, making it easier for search engines to crawl and index your site. In this article, we will explore how to generate sitemaps using Magento 2 SEO.

Speed Up Your Magento Store by 300%

What is a Sitemap?

A sitemap is a file that lists all the pages on your website. It is an essential part of SEO as it helps search engines like Google and Bing understand the structure and content of your website. Sitemaps come in different formats, but the most common one is the XML sitemap. An XML sitemap is a file that uses XML tags to define the location and properties of each page on your site.

Why Use Sitemaps?

Sitemaps benefit both search engines and website owners. For search engines, sitemaps make it easier to crawl and index your site. By having a clear and concise sitemap, search engines can quickly find all the pages on your site and decide how to rank them in search results. For website owners, sitemaps provide insights into the performance of their site. You can use sitemaps to identify which pages are being crawled and which ones are not.

How to Generate Sitemaps Using Magento 2 SEO?

Magento 2 has built-in support for sitemaps that can be generated through its SEO settings. Here is a step-by-step guide on how to generate sitemaps using Magento 2 SEO:

Step 1 – Access Magento 2 SEO Settings

To access Magento 2 SEO settings, log in to your Magento 2 admin panel. Once logged in, navigate to the Stores menu and click on the Configuration option. From the Configuration page, select the Catalog option and then navigate to the XML Sitemap section.

Step 2 – Configure XML Sitemap Settings

In the XML Sitemap section, you will see various configuration options. The settings you choose will determine the contents of your XML sitemap.

The first setting is the Enable Submission to Robots field. If you want search engines to automatically discover your sitemap, then leave this option enabled.

The next field is the Sitemap Submission settings. In this field, you can specify the frequency and priority of the pages on your site. The frequency options include Always, Hourly, Daily, Weekly, Monthly, Yearly, and Never. The priority options range from 0.0 (lowest priority) to 1.0 (highest priority).

You should also check the appropriate boxes for product, category, and CMS pages that you want included in the sitemap.

Step 3 – Generate XML Sitemap

After configuring the XML sitemap settings, you can generate the sitemap by clicking on the Generate button. This will create an XML sitemap file that can be accessed at the location specified in the Sitemap File field.

Step 4 – Submit Sitemap to Search Engines

Once you have generated the sitemap, you can submit it to search engines like Google and Bing. To submit the sitemap to Google, log in to your Google Search Console account and add your sitemap URL. Bing also has a similar process for submitting sitemaps.


Sitemaps are an essential part of SEO, and Magento 2 makes it easy to generate sitemaps using its built-in SEO settings. By configuring your XML sitemap settings and generating a sitemap, you can ensure that search engines have a clear picture of the structure and content of your site. This can lead to improved search rankings and increased traffic to your site.

Scroll to Top