An XML sitemap is a file that lists the pages on your website you want search engines to find, such as products, categories and blog posts. It does not make Google rank you higher, but it helps Google discover new and updated pages faster, which matters for online shops with thousands of products. Shopify and most WordPress SEO plugins create one for you automatically, so for most sites the job is to check it is correct and submit it in Google Search Console. If your shop has indexing problems you cannot fix yourself, our ecommerce SEO agency can help.

This guide covers Google's rules and limits, sitemap index files, image and video sitemaps, how Shopify, Yoast and Rank Math build sitemaps, how to submit one, and how to fix the common errors. A sitemap is one item on a wider list, so also see our technical SEO checklist. Rules here come from Google Search Central, checked November 2026.

Quick Answer

An XML sitemap lists the URLs you want Google to crawl. Each file can hold up to 50,000 URLs or 50MB uncompressed; bigger sites use a sitemap index. Google ignores priority and changefreq, and uses lastmod only when it is accurate. Shopify creates /sitemap.xml automatically. Submit the sitemap in Search Console and add it to robots.txt.

Products not showing in Google?

We check sitemaps, indexing and crawl issues for UK online shops and tell you what is blocking your pages. Tell us about your site.

Get in touch

What an XML sitemap is

A sitemap is a plain file, usually at yourdomain.co.uk/sitemap.xml, that lists URLs in a format search engines read. A very small sitemap looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.co.uk/collections/candles/</loc>
    <lastmod>2026-11-20</lastmod>
  </url>
</urlset>

Each <url> entry holds the page address in <loc> and, optionally, the date it last changed in <lastmod>. That is all most sites need.

Do you need one?

Google can find pages by following links, so a small, well-linked site can manage without one. A sitemap is most useful when:

  • your site is large, such as a shop with hundreds or thousands of products;
  • your site is new and has few links from other websites;
  • you add or change pages often, for example new stock every week;
  • some pages are not well linked from your menus.

Submitting a sitemap is a hint, not a promise. Google's build and submit a sitemap page says submission does not guarantee that Google will crawl or index every URL.

Google's sitemap rules

These are the rules from Google's sitemap documentation:

RuleWhat Google says
Size limit50,000 URLs or 50MB uncompressed per sitemap file. Split larger sitemaps
URLsUse full, absolute URLs (https://www.example.co.uk/page/), not relative paths
EncodingThe file must be UTF-8
LocationGoogle recommends the site root, so the sitemap can cover the whole site
lastmodShould show the last significant update to the page. Google uses it only if it is consistently accurate
priority and changefreqGoogle ignores both

On lastmod, Google's 2023 announcement (reported by Search Engine Land) explained that changes to the main text, structured data or links count as significant. Changing a footer, sidebar or copyright date does not. If your platform updates lastmod on every page every day, Google learns to ignore it.

Which URLs to include

Only list pages you want in Google's results:

  • Include: the canonical version of each product, category, blog post and key page. Our canonical tags guide explains what "canonical" means.
  • Leave out: redirected URLs, pages that return 404, pages marked noindex, filtered or sorted duplicates, basket, checkout and account pages.

Ping is gone: Google used to accept a "ping" to tell it a sitemap had changed. Google announced in June 2023 that the ping endpoint would stop working by the end of that year, and recommends submitting through Search Console or listing the sitemap in robots.txt instead (source: Google Search Central blog).

Sitemap index files

When a site has more URLs than one file can hold, or you want separate files for products, categories and posts, you use a sitemap index. This is a sitemap that lists other sitemaps. You submit the index once, and Google finds the rest.

Google's page on managing large sitemaps sets these limits:

  • One sitemap index can list up to 50,000 sitemaps.
  • The sitemaps it lists must be on the same host and in the same directory as the index, or lower.
  • You can submit up to 500 sitemap index files per site in Search Console.

Shopify, Yoast and Rank Math all produce a sitemap index by default, so most shops never need to build one by hand.

Image and video sitemaps

You can add image and video details inside your normal sitemap entries.

Images

Google's image sitemap guide says each <url> can contain up to 1,000 images, using <image:image> and <image:loc>. Google has removed the old caption, title, geo location and licence tags from its documentation, so you do not need them. For shops, product images usually get found anyway, but an image sitemap helps when images load through JavaScript.

Videos

Google's video sitemap guide lists the required tags: <video:thumbnail_loc>, <video:title>, <video:description> (up to 2,048 characters), and either <video:content_loc> or <video:player_loc>. This is worth doing if you host product or how-to videos on your own site.

Shopify and WordPress sitemaps

PlatformSitemap addressWhat you control
Shopify/sitemap.xmlCreated and updated automatically. You cannot edit it directly
WordPress (no SEO plugin)/wp-sitemap.xmlBuilt into WordPress since version 5.5. Up to 2,000 URLs per sitemap by default
WordPress + Yoast SEOShown under "View the XML sitemap"Turn on in Yoast SEO, Settings, Site features
WordPress + Rank Math/sitemap_index.xmlChoose post types and taxonomies; 200 links per sitemap recommended

Shopify

Shopify's help page on finding your sitemap says every store generates sitemap.xml automatically, with child sitemaps for products, collections, blogs and pages, and updates it when you add content. Two points catch UK merchants out:

  • Password-protected stores: Google cannot read the sitemap until you turn off the password page.
  • International domains: with Shopify Markets, each extra domain gets its own sitemap. Domains not used for international targeting should redirect to your primary domain.

To keep a page out of Shopify's sitemap, you usually need a noindex setting in the theme or an app, because the sitemap itself cannot be edited. Our Shopify SEO guide covers this.

WordPress

WordPress itself has created a sitemap at /wp-sitemap.xml since version 5.5, according to the WordPress core announcement. Most sites use an SEO plugin's sitemap instead:

  • Yoast SEO: Yoast's sitemap help page says to go to Yoast SEO, Settings, Site features and switch XML sitemaps on. Yoast recommends turning off other sitemap plugins first.
  • Rank Math: Rank Math's sitemap guide says it creates an index at /sitemap_index.xml, includes images by default, and now recommends 200 links per sitemap.

Use only one sitemap source. Two plugins, or a plugin plus an old sitemap.xml file in your web root, create confusion.

How to submit a sitemap, step by step

These steps follow Google's Sitemaps report help page. You need owner access to the Search Console property. New to Search Console? Start with our Google Search Console guide.

  1. Find your sitemap address. For Shopify, it is yourdomain.co.uk/sitemap.xml. For WordPress, check your SEO plugin.
  2. Open it in a browser. You should see a list of sitemaps or URLs, not an error page.
  3. Test it with URL Inspection. In Search Console, paste the sitemap URL into the URL Inspection bar and run a live test. Check that Page fetch is Successful.
  4. Open the Sitemaps report in Search Console.
  5. Paste the sitemap URL into the Add a new sitemap box and click Submit.
  6. Add it to robots.txt. Add a line such as Sitemap: https://www.example.co.uk/sitemap.xml. Shopify already does this for you. See our robots.txt guide.
  7. Check the status after a few days. Look for Success, then check the Page indexing report to see which URLs are indexed.

Fixing "Couldn't fetch" and other errors

The Sitemaps report shows one of three statuses: Success, Has errors (Google read the file but some parts are wrong) or Couldn't fetch (Google could not get the file at all).

"Couldn't fetch"

Google's help page lists these causes and fixes:

  • Blocked by robots.txt: remove the rule that blocks the sitemap.
  • Wrong URL (404): open the URL in a browser and correct it.
  • Open manual action: Google does not read sitemaps while a manual action is unresolved. Fix it first.
  • Server or temporary errors: these can clear on their own. Wait and see whether they repeat.

Use a live URL Inspection test on the sitemap URL: Crawl allowed should be Yes and Page fetch should be Successful.

Other common errors

ErrorUsual causeFix
Too many URLs / file size errorOver 50,000 URLs or 50MBSplit the file and use a sitemap index
Parsing errorBroken XML, often an unescaped & in a URLEscape special characters or fix the generator
Invalid datelastmod not in W3C date formatUse a format such as 2026-11-20
URL not allowedURLs on another domain, protocol or above the sitemap's folderList only URLs on the same host and path
Path mismatch (www)Sitemap on www, URLs without www, or the other way roundUse the same version everywhere
URLs not followedRedirect chains or relative URLsList final, absolute URLs
Blocked by robots.txtListed pages are disallowedAllow them, or remove them from the sitemap

Source: Google's Sitemaps report help page, checked November 2026.

Common mistakes

Common mistake: Listing URLs that redirect, return 404 or are set to noindex. This sends mixed signals and wastes crawling. Your sitemap should only hold live, canonical, indexable pages.

Common mistake: Setting every page's lastmod to today. Google uses lastmod only when it is accurate, so a date that changes every day gets ignored.

Common mistake: Spending time on priority and changefreq values. Google ignores both.

Common mistake: Running two sitemap sources, such as Yoast plus another plugin, or an old static sitemap.xml left in the web root. Pick one.

Common mistake: Forgetting the sitemap after a site move. After a migration, submit the new sitemap and check old URLs redirect. Our website migration SEO guide covers the full checklist.

When to get help

For most Shopify and WordPress sites, sitemaps take ten minutes: confirm it exists, submit it and check the status. Get help when the Sitemaps report shows errors you cannot explain, when many submitted pages are "discovered but not indexed", or after a migration or platform change. Our ecommerce SEO service includes technical checks like these as part of ongoing SEO, from £1,500 a month.

Frequently Asked Questions

What is an XML sitemap?

An XML sitemap is a file that lists the URLs on your website you want search engines to crawl and index, with optional details such as the date each page last changed.

Does an XML sitemap help SEO?

It helps Google find and recrawl your pages, especially on large or new sites. It does not raise rankings by itself, and Google does not promise to index every URL you submit.

How many URLs can an XML sitemap have?

Up to 50,000 URLs or 50MB uncompressed per file. For more, split the URLs across several sitemaps and list them in a sitemap index.

Where is my Shopify sitemap?

At yourdomain/sitemap.xml. Shopify creates and updates it automatically, with child sitemaps for products, collections, blogs and pages. It is not readable by Google while your store is password protected.

Does Google use priority and changefreq?

No. Google says it ignores both. It uses lastmod only when the dates are consistently accurate.

What does "Couldn't fetch" mean in Search Console?

Google could not download the sitemap file. Common causes are a wrong URL, a robots.txt block, an open manual action or a temporary server error. Check the URL in a browser and run a live URL Inspection test.

Want your indexing problems found and fixed?

We check sitemaps, crawl settings and indexing for UK online shops as part of our SEO work. Ask us for a quote.

Ask for a quote

Dirk van Greuning — Founder, Growth Pulse Media
Dirk van Greuning Founder, Growth Pulse Media

Dirk has worked in digital marketing since 2016. He built and scaled an ecommerce business before starting Growth Pulse Media, and now runs SEO, Google Ads, Meta ads and email for ecommerce brands. Growth Pulse Media is a Shopify Partner and a Premium Omnisend Partner.

Connect on LinkedIn