π― Whatβs the goal? To set up your website Sitemap and add it to Google Search Console. | β οΈ Why does it matter? Having a sitemap added to Google Search Console helps search engine crawlers to find more easily the content you want them to index, and to understand better how important each page of your website is. |
π Whatβs the result? Sitemap created and fetched by Google Search Console. | β When do you do this? After enabling Google Search Console for your website, ideally your sitemap should be automatically updated by your SEO Plugin so you no longer have to worry about it. |
β
Any special requirements? You need to have Google Search Console enabled for your website (SOP008). | πββοΈWho should do it? Owner of the website or the person in charge of analytics. |
π Where this is done: Google Search Console tool and Google Sheet to design your sitemap.
β³ How long will this take? about 60 minutes.
Letβs get started, in an hour your website maze will no longer have secrets for search engine crawlers.
Environment setup:
- We recommend that you use Google Chrome browser to navigate the web.
- Administrator access to your WordPress website,
- Access to Google Search Console tool.
To design your sitemap you can use the Sitemap Designer Spreadsheet provided with this SOP. Go to this Spreadsheet and make a copy (File > Make a Copy) to your own Google Drive.
Getting the list of all of your URLs
- Go to xml-sitemaps.com.
- Enter your website URL in the search box and click on βStartβ.
- XML Generator will crawl your website.
- After you see βCompleted!β status, click on βView Sitemap Detailsβ.
- Choose βDownload All Sitemaps in a Zip Fileβ under βOther Downloadsβ section.
- A βsitemaps.zipβ file should be downloaded.
- Unzip the file and open the βurllistβ txt file in any text editor.
- There you will see a list of all of your website URLs. You can use it to create/design your ideal sitemap.xml file.
Designing your sitemap
You should use the list of URLs you get by conducting procedure from the previous chapter of this SOP. But keep in mind it would be much better to ask your website developer or the company in charge of managing it, to generate it automatically.
- Open βSitemap Designer Spreadsheetβ provided with this SOP.
- Paste all your URLs in the βURLβ column.
- Choose if an URL should be βInclude in Sitemapβ by selecting βYesβ or βNoβ from the list.
URLs should be excluded from the sitemap if they are blocked by robots.txt file. If you donβt have a robots.txt file you should check our SOP011 on how to do it. The sitemap also should not include any URLs pointing towards sensitive information such as password protected administrator area.
- If you selected βNoβ in the previous column, choose a βReason to excludeβ from the drop-down list.
- Assign βPriorityβ for each URL in a sitemap.Β
0.1 means low priority and 1 means the highest. Priority will determine the importance of each URL for search engines. This will help search engines to prioritize some URL above others.
- Select a βFrequencyβ for spiders to crawl your URL. This is not a command that will be followed by spiders. This is just a data-point they will use and take into consideration.
You should select a frequency that matches your URL updating. If your URL updates constantly (example: it shows the stock exchange rate) you should choose βAlwaysβ. Select βNeverβ only if your URL content is archived and will not be updated again. Select from: βHourlyβ, βDailyβ, βWeeklyβ, βMonthlyβ, βYearlyβ if your content is updated within one of those intervals. You should avoid selecting βYearlyβ even if that is the case. Choose βHourlyβ only if you update your content every hour.
- If you didnβt select any values for columns above you should see a dedicated notification in the βWarningsβ column.
- You can put any important notes for each URL in the βNotesβ column.
Generating your sitemap
- Open your Sitemap Designer Spreadsheet you have created.
- Filter all URLs that you selected to be included in the sitemap.
- Open Google Chrome and go to the sitemap generator page.
- Start copying and pasting URLs from your spreadsheet.
You can paste all URL that shares the same priority and frequency
You can easily use filters on your spreadsheet to find matching ones.
- Choose desired βPriorityβ and βFrequencyβ form the list in the Sitemap Generator Page.
- After you paste all URLs with the same βPriorityβ and βFrequencyβ, click on βAdd to Queueβ.
- Repeat the above steps until you add all the required URLs with their desired βFrequencyβ and βPriorityβ settings.
- After you add all URLs to the queue click on βExport queue as sitemap.xmlβ button.
- Your browser will start downloading your XML sitemap file.
Uploading sitemap.xml file to your site (Expert)
Now you should ask your website developer to upload your file to the root of your domain (eg: https://www.yourdomain.com/sitemap.xml). This process requires root access to your site.
After uploading your sitemap.xml file you can proceed to the next part of this SOP.
If you have a βrobots.txtβ file you should also add a new line to your sitemap.xml file. Simply open it with any text editor and add:
βSitemap: https://www.yourdomain.com/sitemap.xmlβ
Remember to replace βhttps://yourdomain.comβ with your actual domain name.
Adding a sitemap to Google Search Console
- Go to βyourdomainname.com/sitemap.xmlβ.
- Copy part of a web address after βyourdomainname.com/β. This is your sitemap URL.
In some cases, the end of the URL can appear as above (sitemap_index.xml)
- Go to βsearch.google.com/search-consoleβ.
- Click on βStart nowβ.
- Sign in with Google Account you used to enable GSC for your website.
- In the Google Search Console tool click on βSitemapsβ.
- Paste your sitemap URL.
- Then click on βSUBMITβ.
- Wait a moment for the process to finish.
- Now you should be able to see a confirmation message. Click on βGOT ITβ.
- In most cases after submitting a sitemap you will see Status: βCouldnβt fetchβ.
- You just need to refresh the page. Simply press βF5β on your keyboard.
This is it. You successfully created a sitemap and you added it to Google Search Console, making it easier for Google crawler to monitor the changes on your website.