Canonicalization Question


Not sure if this is Shopify functionality, or something that has already been applied by the business I've started working for...


When I view a collection page -

The canonical is


All good


However on that page I can filter the collection (Tag driven)

The canonical is


Yet the page keeps the format and most content of the parent (just removes a few products).


Surely the filtered collection would still use the canonical of the collection?

Barry Kirley
13 1 4

This is an accepted solution.

No, this is pretty standard behavior in themes.


If you want to do it like that, look for the code that writes the canonical tag and replace it with something like this:


{% if template contains 'collection' and current_tags %}
    <link rel="canonical" href="{{ shop.url }}{{ collection.url }}" />
{% else %}
    <link rel="canonical" href="{{ canonical_url }}" />
{% endif %}

That said - Google only takes the canonical tag as a suggestion. So even if you do this, google will still return your filtered pages as results, if it thinks that's the smart thing to do.

So, it might just be better to leave it as is, and let google figure it out. I don't know for certain.

I usually make sure to add "Filtered by xxxxx" or "Tagged xxxxx" into a page title or a heading tag, just to make sure google sees it and understands that it's a subpage.

New Member
6 0 0

I've just noticed that my filtered pages are appearing in Google and wondered whether this is normal. You mention this approach to canonicalization of filtered collection pages is pretty standard across themes - is this the best approach? Is the idea to just let Google work out whether to point to those or not? Is a disadvantage that it spreads your clicks across different pages - or am I making that up?