Google Search + Sitemap and canonical URLs

Hi guys, I just received a mail from the Google Search Console saying that it cannot index links like the following :

https://kokopellishop.fr/products/unisex-hoodie-in-love-with-nature?pr_prod_strat=description&pr_rec_id=58ce35cd0&pr_rec_pid=7812373905652&pr_ref_pid=7871347982580&pr_seq=uniform

Is there a way to now allow these links to be added to the sitemap automatically? Someone mentioned this in another thread about modifying some liquid files to not use the part after the question mark for some pages.

See the following link to understand what I mean.
https://community.shopify.com/post/1049112

On a similar note, I noticed that my robots file does not contain entries to exclude urls that contain keyword like pr_prod_strat. After searching for examples on what other people have done, I found this robot file that does include the exclusion.

For me, this is only a problem when it comes to indexing my site. Instead of modifying the liquid files, I would prefer to exclude such entries from either my sitemap file and/or add exclusions in my robots.txt file. I mean, there must be a reason why these links contain extra information and so I don’t want to modify my website code too much.

What do you guys think? I am using the craft theme and for the moment, I have not added a custom robot file.

Here is a link to an article about canonical urls from Google.

Thanks a bunch,

Chris

Hi, thanks for your input. What I did was I excluded those urls from being crawled. From what I could tell, this is quite normal when we have products with multiple variants. In this sense, I would prefer that the main link be sent to various search engines instead of the links of certain variants being sent…