Indexing Of Collection Pages

Every time Google crawls the collection pages like - https://eridani.in/collections/wedges it is picking this page as canonical https://eridani.in/collections/all and not indexing the main collection.

I have no-index and no-follow on this collection/all page, but no use. Still, Google is taking this as canonical.

Please suggest a solution if you have any

Thanks

Hi,

Hope this will help

As you have already updated your canonical tag , you can try below code and update the sitemap at GSC (Please take backup before doing any changes)

Look for this line inside the section


Replace:

{% if template contains 'collection' and collection.handle == 'all' %}
  
{% else %}
  
{% endif %}

Hi Team,

I got removed this collection.handle == ‘all’, but the issue is not yet resolved

Hi @Taneesha

Maybe you need to reconsider the store structure and design the store URL patterns properly. If your store has unclear structures and let Google feel hard to identify which one is the Collection page to be indexed, you will encounter this kind of issue. Thank you!