How to Setup a Sitemap in Magento 2

Introduction

A sitemap is a website’s content model created to make it easier for search engines to crawl and users to navigate the website. It is a URL inclusion protocol that complements the URL exclusion protocol; robots.txt. The feature is an important XML file that accommodates and organizes links to all pages on your website. The sitemap enables webmasters to add critical details about each URL such as when it was updated, its relevance in relation to other URLs, how often it changes, and much more. The additional information allows search engines to crawl your website more intelligently, thereby increasing chances of ranking higher.

Setting up a sitemap in your Magento 2 website allows you to implement the incredible tool with the document file that lists your website’s URLs. It offers the utility directions and allows your store visitor to locate a product with ease and aids search engines by pointing out the pages that are ready for crawling.

This tutorial will help you set up a sitemap in a Magento 2 website in four easy steps.

Prerequisites

  • Before configuring your sitemap in the Magento 2 store make sure that the feature is enabled.

If the above condition is met, then you are ready to go.

Step 1: Setting The Desired Frequency And Priority

The first thing when setting up a sitemap in Magento to is stipulating the desired content updates’ Frequency and Priority.

Log in to the Admin Panel and click Stores, then select Configuration.

How to Setup a Sitemap in Magento 2

Expand the Catalog section and select XML Sitemap

How to Setup a Sitemap in Magento 2

Next, click Categories Options and set the Frequency as desired.

How to Setup a Sitemap in Magento 2

The Frequency section gives you multiple options including Yearly,Monthly, Weekly, Daily, Hourly, Always, and Never. In addition, the Categories Options section gives you an option to enter a Priority value between 0 and 1 where 1 represents the highest priority.

Next, open the Products Options and set the ideal Frequency and Priority as required, then click the arrow on the Add Images into Sitemap. Select one of the available options (Base Only, None, and All). The options allow you to determine the degree that images are added to the sitemap.

How to Setup a Sitemap in Magento 2

Now, select and expand CMS Pages Options and set the desired  Frequency and Priority.

How to Setup a Sitemap in Magento 2

Click Save Config to implement the changes

How to Setup a Sitemap in Magento 2

Step 2: Completing The General Settings

Expand the General Settings section. Set the Enabled option to YES, then enter the remaining details as follows:

  • Start Time: Select the time, in the order Second,Minute, and Hour,when sitemap update should start.
  • Frequency: Select one option from Daily, Weekly, and Monthly
  • Error Email Recipient: Provide an email of the person to get notifications when errors occur during the Sitemap updates.
  • Error Email Sender: Customize the email sender by selecting one of the following options: General Contact, Sales Representative, Customer Support, or Custom email.
  • Error Email Template: Select a template for error notification email.

How to Setup a Sitemap in Magento 2

Step 3: Configuring The File Limits Of Your Sitemap

Next, click Sitemap File Limits section and set the options as follows:

  • Maximum No of URLs per File: Provide the number of the utmost files you want to be included in your sitemap. The default upper limit is 50000.
  • Maximum File Size: what is the largest acceptable size assigned to the sitemap. Enter the figure in bytes. By default, 10,485,760 bytes is the largest acceptable size.

How to Setup a Sitemap in Magento 2

Step 4: Configuring The Required Search Engine Submission Options

This is the final step to setting up a sitemap in Magento 2. Expand the Search Engine Submission Settings options. Set the Enable Submission to Robots.txt option to YES.

How to Setup a Sitemap in Magento 2

Click Save Config to implement the changes

How to Setup a Sitemap in Magento 2

Conclusion

That is it! You have successfully configured a sitemap in your Magento 2 store. We hope this tutorial was helpful and your sitemap is properly set up to boost the performance of your website on search engine rankings.

 

 

Check out the top 3 Magento hosting services:

Was this article helpful?