How To Create A Custom Shopify XML Sitemap for your eCommerce Website

Shopify is absolutely one of the best CMS platforms for you to create an eCommerce website, however, nothing is perfect, and it has a certain technical SEO limitation because it automatically creates XML sitemaps split by page type and basically you are not allowed to manually change or customize unless you install a paid App through Shopify marketplace. However, for some more advanced SEO use cases, this can be limiting since new sitemaps cannot easily be created on the CMS and subsequently uploaded to the Search Console.

Shopify is absolutely one of the best CMS platforms for you to create an eCommerce website. However, nothing is perfect, and it has a certain technical SEO limitation. It’s because it automatically creates XML sitemaps split by page type. And then basically Shopify doesn’t allow you to manually change or customize unless you install a paid App through the Shopify marketplace.

Regarding Shopify XML Sitemap, recently there is an update from Shopify in 2021. Now the Shopify allows that the Shopify site robot.txt is editable. Basically, Shopify claims sellers can go to the theme, and click action, and then the edit code. In the theme’s liquid section, Shopify recommends adding the Shopify sitemap by adding a template and selecting a robot option. However, I am not able to see the robot template option yet.

However, for some more advanced SEO use cases, this can be limit since you can’t create a new sitemap on the CMS. Then it’s automatically updating to the Search Console.

In this piece regarding Shopify XML Sitemap, I’m going to show you how to create and upload a custom Shopify XML Sitemap. You can upload it indexed by the Google search console and Bing webmaster. The key point is totally free, and you don’t need to pay for any third-party plugin. By the end of the article, you can learn where to create,  how to upload and check if the indexation is successful.

How to find default Shopify sitemaps?

Default sitemaps created by Shopify can be accessed via the sitemap index at example.com/sitemap.xml.

This sitemap index URL is also referenced in the Shopify website’s robots.txt file. Shopify didn’t allow to edited the default robot.txt file, although recently they said it’s editable now. But I can’t see yet. So the custom sitemap won’t be linked from there.

You can upload the default XML sitemap to Google Search Console to check if pages are correctly indexed.

Why we need a custom Shopify XML Sitemap and create a Shopify Sitemap

  1. If you migrate to Shopify and change URL structure, this could be used to help to process redirects and remove old URLs from the index.
  2. If you consolidate sections of your site it can be useful. It’s because it includes old URLs in a sitemap to help Google process redirects that are in place and remove these URLs from their index.
  3. This method could be used to upload hreflang sitemaps. (Be careful as these would not be referenced in your robots.txt file).
  4. You have customized your Shopify CMS and have product variants. The Shopify sitemap does not include the product variants. So you can add them to the sitemap.

(Note: Some Shopify Apps can facilitate you to create and manage a custom Shopify XML sitemap. However, normally the apps charge monthly fees. Personally, I can’t see the value if you only need to custom a custom XML sitemap)

How To Create a Custom Shopify XML Sitemap:

  • If you migrate to Shopify and change URL structure, this could be used to help to process redirects and remove old URLs from the index.
  • FAQ

  • Create an XML file using the Sitemap option in Screaming Frog (if your URLs are canonicalized or no-indexed, make sure to select these options. You’re creating your sitemap in Screaming Frog, otherwise those URLs won’t be included)

  • Add, or reduce the pages by using sublime text coding edition software (Free)

Upload XML Sitemap to Shopify as a File

  • Upload this to Shopify as a File – this will sit on the Shopify CDN.

Create a Redirect

  • Create a redirect from a new XML URL

(Online Store>Navigation>URL Redirects>Create URL Redirect)

In Shopify, you cannot redirect from a URL that is still alive. so you have to redirect the 404 URLs. Shopify returns a 404 for any URL that doesn’t currently exist. So you can just make up any URL that isn’t currently live to use for your redirect.

When you are adding the redirect,  the first URL must be on your domain. And this can just be the relative URL. However, the URL you are redirecting to should be the absolute URL as this sits on the CDN.

After you uploaded the custom XML sitemap to the Google search console, it might show the status in “couldn’t fetch”. However, within 24 hours, you should be able to see the status changed to “success”, and an index coverage report for your sitemap.

I hope you enjoy reading How To Create A Custom Shopify XML Sitemap for your eCommerce Website and find it helpful. if you did, please support us by doing one of the things listed below, because it always helps out our channel.

  • Support my channel through PayPal (paypal.me/Easy2digital)
  • Subscribe to my channel and turn on the notification bell Easy2Digital Youtube channel.
  • Follow and like my page Easy2Digital Facebook page
  • Share the article to your social network with the hashtag #easy2digital
  • Buy products with Easy2Digital 10% OFF Discount code (Easy2DigitalNewBuyers2021)
  • You sign up for our weekly newsletter to receive Easy2Digital latest articles, videos, and discount code on Buyfromlo products and digital software
  • Subscribe to our monthly membership through Patreon to enjoy exclusive benefits (www.patreon.com/louisludigital)

FAQ:

Q1: What is a XML sitemap?

A: A XML sitemap is a file that lists all the pages of a website and helps search engines understand the structure and hierarchy of the site.

Q2: Why is XML sitemap important for SEO?

A: XML sitemap is important for SEO as it helps search engines discover and crawl all the pages on your website, ensuring that they are indexed and appear in search results.

Q3: How does Shopify XML Sitemap work?

A: Shopify XML Sitemap automatically generates and updates a sitemap for your Shopify store, including all the pages, products, collections, and blog posts. It provides a structured format for search engines to easily crawl and index your site.

Q4: Can I customize the XML sitemap generated by Shopify?

A: Yes, you can customize the XML sitemap generated by Shopify by excluding specific pages or URLs that you don’t want to be included in the sitemap. This can be done through the Shopify admin settings.

Q5: Do I need to submit the XML sitemap to search engines?

A: While it is not necessary to manually submit the XML sitemap to search engines, it is recommended to submit it through the search engine’s webmaster tools to ensure that the sitemap is crawled and indexed correctly.

Q6: Does Shopify XML Sitemap include images and videos?

A: Yes, Shopify XML Sitemap includes images and videos if they are properly optimized and included on your website. This can help enhance the visibility of your multimedia content in search engine results.

Q7: Can XML sitemap improve my website’s ranking?

A: While XML sitemap alone may not directly improve your website’s ranking, it can help search engines discover and index your content more efficiently, which can indirectly benefit your SEO efforts.

Q8: How often does Shopify XML Sitemap update?

A: Shopify XML Sitemap automatically updates whenever there are changes made to your website’s pages, products, collections, or blog posts. This ensures that search engines have the most up-to-date information about your site.

Q9: Is XML sitemap relevant for all types of websites?

A: Yes, XML sitemap is relevant for all types of websites, including ecommerce stores, blogs, news sites, and more. It helps search engines navigate and understand the content structure of your site.

Q10: Are there any limitations to the size of XML sitemap?

A: Yes, there are limitations to the size of XML sitemap. It should not exceed 50,000 URLs or 50MB in size. If your website has more pages or products, you can split the sitemap into multiple files and create a sitemap index file.

14 thoughts on “How To Create A Custom Shopify XML Sitemap for your eCommerce Website

  1. I absolutely love your blog and find most of your post’s to be just what I’m looking for.

    can you offer guest writers to write content for you?

    I wouldn’t mind writing a post or elaborating on many of the subjects you write in relation to here.

    Again, awesome website!

  2. Good way of explaining, and fastidious post to get facts on the
    topic of my presentation subject, which i am going to deliver in university.

  3. Thanks for sharing your info. I truly appreciate your efforts and I am waiting for your further post thank you once again.

  4. Fantastic goods from you, man. I have understand your stuff previous
    to and you are just too wonderful. I actually like what you’ve
    acquired here, certainly like what you’re stating and the way in which
    you say it. You make it entertaining and you still care for to keep it
    sensible. I cant wait to read far more from you.
    This is really a wonderful site.

  5. Useful info. Lucky me I discovered your site by accident, and I’m stunned
    why this accident didn’t took place earlier! I bookmarked it.

  6. Fantastic goods from you, man. I have understand your stuff previous to and you are just extremely wonderful.I really like what you’ve acquired here, really like what you are saying and the way in which you say it. You make it enjoyable and you still care for to keep it wise.
    I cant wait to read far more from you. This is
    actually a tremendous site.

  7. Thanks for sharing such a good idea, post is nice, thats why i
    have read it fully

  8. Have you ever thought about creating an ebook or guest authoring on other sites?
    I have a blog based on the same information you discuss and would
    love to have you share some stories/information. I know my subscribers would appreciate
    your work. If you are even remotely interested, feel free
    to shoot me an e-mail.

  9. I read this piece of writing fully regarding the comparison of
    most recent and preceding technologies, it’s remarkable article.

Comments are closed.