Canonicalization could be elaborate. For that reason, There are tons of misunderstandings and misconceptions about how to canonicalize correctly. Possibly someone have designed it with GTM ? It's realy good Resource, however it need to be inserted immediately after opening tag in all pages. On the subject of Shopify merchants, https://bookmarkprobe.com/story19076952/everything-about-google-tag-manager-prestashop