What is Canonical URL?
The one address you want search engines to treat as the main version of a page that can be reached at several addresses.
A Shopify product can be reached at /products/handle and at /collections/some-collection/products/handle. When the same product opens at both addresses, the canonical tag tells Google which one to show. You can check yours by viewing the page source of a product opened from a collection and searching for rel="canonical".
Google can pick a different page from the one you declare. You can check what it chose with the URL Inspection tool in Search Console, which shows the Google-selected canonical for the indexed page.