Issue: Shopifyâs recommended products feature automatically appends tracking parameters (e.g., ?pr_prod_strat=copurchase&pr_rec_pid=...) to product URLs, creating hundreds or thousands of duplicate URLs that appear in Google Search Console and potentially harm SEO.
Why Parameters Exist: These tracking parameters help merchants measure recommendation performance and conversions. Shopify documentation explains their purpose for analytics.
SEO Concerns: Multiple users report:
Hundreds to thousands of parameterized URLs indexed by Google
Canonical URL errors in Search Console
Potential slowdown of main page indexing
Loss of clean internal linking structure
Proposed Solutions:
Blocking approach (not ideal):
Add Disallow: /*?pr_prod=* or Disallow: *?pr_prod_strat=* to robots.txt
Insert noindex meta tags: {%- if canonical_url="*seq=uniform" -%}<meta name="robots" content="noindex, nofollow">{%- endif -%} in theme.liquid
Preferred solution (maintains internal linking):
Modify theme files (location varies by theme: card-product.liquid, product-thumbnail.liquid, product-grid-item.liquid)
Change {{ product.url }} or {{ card_product.url }} to {{ product.url | split: "?" | first }} to strip parameters
For Dawn theme: Update lines 113, 157, and 235 in card-product.liquid
Consensus: Removing parameters via code modification is better than blocking, as it preserves internal linking benefits while eliminating duplicate URL issues. Track recommendations using GA4 events instead.
Summarized with AI on October 29.
AI used: claude-sonnet-4-5-20250929.
{%- for product in recommendations.products -%}
<li class="product">
<a href="{{ product.url }}">
...
</a>
</li>
{%- endfor -%}
But the products have long URLs. https://[store]/products/red-hat?pr_prod_strat=copurchase&pr_rec_pid=2264152113206&pr_ref_pid=2264163287094&pr_seq=uniform
Is it possible to show products with a short URL like https://[store]/products/red-hat ?
Is this feature automatically added on venture theme?
I have hundreds of new pages on my google search consoles with similar Url as the one in the question. I am not using any recommendation features from my theme or from the app. I was surprised to see 1k+ new urls in my search console. I believe it makes my other main pages slower to get indexedâŚ
My reply above is answering the original question only: âWhy Recommended Products Have Extra Params In URL?â
Also, based on some other posts above some themes can also modify the URLs.
However, it seems most people here want to remove the extra parameters regardless.
It doesnât look like thereâs a universal solution to remove the query parameters but Iâm happy to help everyone individually (or at least try). Please PM me your details if you wish me to have a look.
Is it possible for us to set the âDisallow: / xxxxxâ in our robots.txt file to avoid search consoles crawling this long and meaningless URL by adding a robots.txt file or altering it via googleâs robots testing tools?
If this is feasible, then what should it be âDisallow: / xxxxxxâ?
I have the same issue but I am not a developer and I donât know how to fix it. Does anyone have a solution? I have hundreds of canonical URLs, and I am trying to work on SEO.
I know Iâm late to answer this, but I wouldnât advise necessarily just blocking the URLs in robots.txt file as youâre losing a lot of internal linking. Ideally, youâd find a way to remove the params from the URL (Iâm currently looking into doing this myself). That way you keep the internal linking but remove the proper canonical error in GSC. You can track ârecommended productsâ performance using GA4 and create an event specifically for recommended product clicks.
The solution to this varies from theme to theme but itâs something along the lines of changing {{ product.url }} to {{ product.url | split: â?â | first }} in the relevant theme file that contains the ârecommended productsâ liquid.
Iâve changed a few of these now and they were in different places and named different things (e.g. one file was named âcard-product.liquidâ while another was named âproduct-thumbnail.liquidâ), but you can work out where you need to change this with a bit of digging.
By changing this code, the URL that is generated no longer includes the recommended product params but still includes the link to the canonical product URL, meaning you get a clean-looking URL and some 'browniepointsâ for internal linking too.
Hopefully, this helps. Iâd be happy to help anyone who needs some guidance, whether thatâs to do with this specifically or the GA4 tracking that you may want to implement afterwards.