How to generate sitemap in Magento 2

0

A XML Sitemap, usually called Sitemap, is a list of pages on your website. Creating and submitting Sitemap allows Search Engines to know about all the pages in your website including their URLs. It tells the search engines about all the content your website has got so that search engines can serve the information up in the search result. Therefore it is considered to be crucial for SEO. The chart below can serve as typical example of Sitemap’s effectiveness:

index status after submitting sitemap to google

As can be seen, submitting the Sitemap helps to improve the traffic to your website dramatically. Magento 2 store offer users this configuration.

This tutorial will show you how to generate Sitemap to your store in Magento 2 and how to submit your sitemap to Google webmaster tool.

Generate and config Sitemap

1. Login to the back-end of your Magento 2 store.

2. From the Admin sidebar, navigate to Stores > Configuration> Catalog.

access configuration

3. Explore the section of XML Sitemap

XML Sitemap section magento 2

4. Enter all the required information

config sitemap options

In the Category Option and Products Option, you have to enter the frequency and priority for each entry.

The similar process is applied for CMS Pages Options:

CMS Pages Options

A little different from the three above section, in Generation Setting, you have to choose to Enable the Sitemap and select time and date for it:

In the section of Sitemap File Limits, choose the limit for Maximum No of URLs Per File and the Maximum File Size. Select Yes in the Enable Submission to Robots.txt section to add reference of your Sitemap:

Click Save Config. to complete. Now you should see the generated sitemap URL here

The default URL to your Magento 2 website’s sitemap is: http://yourmagento2website.com/sitemap.xml

magento sitemap url

Submit sitemap to Google Webmaster tool

Now you should submit your newly created sitemap to google to tell google about the structure of your website.

Log in to Google webmaster tool and Add a sitemap at: Crawl > Sitemaps > ADD/TEST SITEMAP

submit a sitemap to google

  • Submitted: the number of URLs included in the submitted sitemap
  • Indexed: the number of URLs was indexed by Google

It takes time for Google to index all your URL in your submited sitemap

That comes to the end of the tutorial. Please comment to let us know if you have any further concern about this topic.

Rate this post

Share.

About Author

Daniel is a Magento developer with 5 years of experience with customizing Magento extensions, Magento templates. He's main author at Magento explorer

Leave A Reply