A sitemap is a file where you can list the web pages of your site to
tell Google and other search engines about the organization of your
site content. Search engine web crawlers like Googlebot read this file
to more intelligently crawl your site.
Also, your sitemap can provide valuable metadata associated with the
pages you list in that sitemap: Metadata is information about a
webpage, such as when the page was last updated, how often the page is
changed, and the importance of the page relative to other URLs in the
and here you can find the guidelines for creating a sitemap according to Google: https://support.google.com/webmasters/answer/183668?hl=en&ref_topic=4581190
My suggestion is that the 1st one that you present has too little information and the 2nd one too much. Google shouldn't know any information about personal data, favorite items, orders etc.
I would suggest keeping this part of your sitemap only.
- I am not sure if the category & subcategory are in the right place.
- I don't think that floating bar should be there.
- The cart has private information that you don't want google to see.
Lastly, depending on the CMS system - if you use one- that you use in order to create your site, there might be some extension to generate the sitemap. Maybe you could have a look at this as well.