How to add product pages to sitemaps?

Hi,

I have a BSS e-commerce site and using reflow for product feed. How can I add the product pages to sitemaps.xml? Currently the sitemap.xml that is being generated by bss has the “category” level url added to sitemaps.xml but it is not adding to sitemaps the page of the actual single product.

Example https://duisysrfid.lv/sitemap.xml

The sitemap shows the page where there’s a list of my products https://duisysrfid.lv/veikals-svitrkodu-skeneri.html but it wont list the pages of any of the specific products that I have listed, for example this products page RFID tagi un etiķetes

How to achieve that each products page also has a dedicated entry in sitemaps?

The product pages are created dynamically, there is only one product page. However, in the URL a query is added so that Reflow knows what product it should show. It then looks up the data over the API and populates the page using JavaScript to add the product info.

https://duisysrfid.lv/product.html?product=359967490

?product=359967490 is the query that returns the product info from Reflow - and then populates your single product page.

You can’t add a page to your sitemap if it has a query, as search engines will not distinguish it as being a new page.

1 Like

Thank you for the explanation. Its seems that this puts an ecommerce site powered by bss + reflow in a bit of a weaker position in terms of SEO. Does the same apply for indexing the page via manual google search indexing request?

Since Reflow adds all the content to your site using JS - you are correct, it can weaken your SEO.

Search engines like Google do now enable JS when they crawl sites, so the effect can generally be minimal.

1 Like

If your store doesn’t have too many products, you can use the blog loop component to feature a product on each blog page, effectively turning it into a product page. Name the pages after the corresponding product. Instead of a product list, you can use a blog loop on your index.html. This way, your product pages can be included in a sitemap.