Canonical Self-referential to URL with query parameter

Topic summary

  • Issue: A Shopify product page with a query parameter (selling_plan=…) currently has a canonical tag pointing to the base URL without the parameter.
  • Goal: Set the canonical to the exact URL including the query parameter (e.g., MyURL/products/red-box?selling_plan=dasdasdas).
  • Why it matters: The canonical tag tells search engines which URL to index; the user wants the parameterized version treated as canonical for SEO.
  • Context: Implemented via Shopify theme/backend; tags indicate JavaScript, SEO, and Shopify theme involvement.
  • Status: User requests guidance on how to implement this; no solution or outcomes provided yet.
Summarized with AI on January 4. AI used: gpt-5.

I have a URL with a query parameter: MyURL/products/red-box?selling_plan=dasdasdas which has a canonical to MyURL/products/red-box and I need the canonical to point to the same URL with the query parameter (MyURL/products/red-box?selling_plan=dasdasdas ).

Since I’m new to the Shopify backend, I appreciate if anyone has any idea how to do it.