Stop Shopify from Generating Alternate URLS for products

How can I turn stop my Shopify site from making duplicative URLS that point to same product. I know Google is told what the “canonical” URL for that product is, but a lot of these alternative URLs are still showing up in Google Search, diluting our SEO juice to the right URL and also making reporting very difficult. Example:

URL we want traffic to go to:

https://www.letsmakebake.com/products/dye-free-valentines-sprinkles

Other URLs for the same product:

https://www.letsmakebake.com/collections/natural-dye-free-valentines-day-baking-supplies/products/dye-free-valentines-sprinkles

https://www.letsmakebake.com/collections/all-natural-baking-ingredients/products/dye-free-valentines-sprinkles

Section 1 in this article shows you how to handle this: https://gofishdigital.com/blog/how-to-fix-shopify-duplicate-content/

Also, we fixed this in all OS2.0 themes back in 2021. So all new Shopify-built themes should have this resolved already, but I can’t speak for older themes or custom themes.