Finding and submitting your sitemap

All Shopify stores automatically generate a sitemap.xml file that contains links to all your products, product images, pages, collections, and blog posts. This file is used by search engines like Google and Bing to index your site so that your store's pages appear in search results. Submitting your sitemap files to Google Search Console helps Google find and index pages on your site.

If you're on the Basic Shopify plan, then only your store's primary domain has a generated sitemap file and is discoverable by search engines.

If you're on the Shopify, Advanced Shopify, or Shopify Plus plan, then you can use the international domains feature to create region-specific or country-specific domains. When you use international domains, sitemap files are generated for all of your domains. All of your domains are discoverable by search engines, unless they redirect to your primary domain.

The process of crawling and indexing your site can take time, and Google doesn't guarantee how long it will take. Learn more about what to expect when your site is indexed from Google Search Console Help.

Find your sitemap file

Sitemap files are generated automatically. You can find them at the root directory of your Shopify store's domains, such as johns-apparel.com/sitemap.xml.

The generated sitemap files link to separate sitemaps for your products, collections, blogs, and webpages. Sitemap files are automatically updated when you add a new webpage, product, collection, image, or blog post to your Shopify online store.

If you're on the Shopify Basic plan, then you only have a sitemap for your store’s primary domain. If you are on the Shopify plan or higher, then you will also have sitemaps for every additional domain you are using for international domains. If you have multiple domains and aren’t using them for international targeting, then make sure all domains redirect to your primary domain.

Add domain properties and verify your site with Google

Before you submit your sitemap, you need to verify your domain with Google Search Console to confirm that you're the owner of your Shopify store. If you don't already have a Google Search Console account, then you need to create an account.

To verify your domain, you need to disable password protection for your online store. If you aren't ready to launch your store, you can disable password protection and then enable it again after verifying your domain.

Steps

  1. From your Google Search Console account, click and then select Add property from the drop down menu.

  2. On the Select property type dialog box, select URL prefix and then enter the domain you want to add as a property, including the https://.

  3. Click Continue.

  4. On the Verify ownership window, select HTML tag. Or if you're familiar with other verification methods, choose your preferred method.

  5. Highlight the full HTML tag and copy it to your clipboard with cmd + c on a Mac or ctrl + c on a PC. Make sure you select everything, including the < and >. For example:

    <meta name="google-site-verification" content="IV7BPLESttSpBdxSWN1s4zlr4HIcuHkGQYmE3wLG59w" />
  1. In the Layout section, click theme.liquid.

  2. Paste the meta tag that you copied in step 5 on a blank line directly below the opening <head> tag:

    The meta tag pasted below the opening HTML head tag

  3. Click Save.

  4. Return to Google Search Console and click Verify.

If you're on the Shopify plan or higher and using international domains, then repeat these steps to verify each domain that you’ve connected to your Shopify store. For every domain that you verify, paste each meta tag on a separate line in the same theme.liquid file.

Submit your sitemap file to Google Search Console

You can submit your sitemap file to Google Search Console to help Google find and index pages on your site.

Steps:

  1. After your site is verified, go to Google Search Console.

  2. Click Sitemaps.

  3. In the Add a new sitemap section, enter your domain's sitemap file name and then click SUBMIT. Your domain's sitemap needs to have a format similar to https://www.johns-apparel.com/sitemap.xml. If you don't include all of the sitemap URL, then you might receive an error message from Google.

If you're on the Shopify plan or higher and use international domains, then you need to submit the sitemap file for each domain. Sitemap files are always located at the root directory of your Shopify store's domains.

If you sell in multiple languages, then these languages are added automatically to the sitemap files for each of your domains. You don't need to do anything to add them.

After you submit your sitemap files, Google uses these files to crawl and index your store. The process can take time and Google doesn't guarantee how long it takes for your store to be crawled. To learn more or to troubleshoot, visit Google Search Console Help.

Ready to start selling with Shopify?

Try it free