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.

shopify sitemap

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.

shopify sitemap

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.

create sitemap

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:

  • Upload all URLs you want in your custom sitemap to Screaming Frog in List Mode and crawl.

create sitemap

  • 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)

sitemap shopify google

  • 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)

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

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

  2. 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.

  3. 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.

  4. 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.

  5. 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.

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

  7. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *