NOINDEX /collections/all?

Highlighted
Excursionist
37 0 5

Is it possible to NOINDEX /collections/all?

Any help greatly appreciated.

Thanks.

0 Likes
Highlighted
Shopify Expert
195 0 25

Hi Jamie,

One option is to place this in your head tag

<head>

  {% if canonical_url contains '/collections/all' %}
      <meta name="robots" content="noindex">
  {% endif %}
 
</head>

There is also an app if you are doing this sort of thing alot: https://apps.shopify.com/nofollow-noindex-manager

I dodn't know it existed until 2 minutes ago but it only costs a buck.

-Ryan

Stop Stressing About Shopify You’ve Got Better Things To Do => https://320ny.com/shopify/
1 Like
Highlighted
Excursionist
37 0 5

Thanks Ryan,

I am actually using that app but I don't think it has an option to NOINDEX that specific URL. You can NOINDEX the full collections directory which might work for me as I don't use collections on my site.

If any problems occur I will try your method suggested above.

Thanks again.

Jamie

0 Likes
Highlighted
New Member
2 0 0

Hi Ryan my collection/all is index but it not present on my sitemap how can I add this collection/all in my sitemap https://vapeboss.co.nz/sitemap.xml

 

<head>

  {% comment %} Adding /collections/all in sitemap.xml {% endcomment %} 
  {% if template contains '/collections/all' %}
<meta name="robots" content="index">
  {% endif %}
 

</head>

0 Likes
Highlighted

@tinrankdefender If it's not in the sitemap, you likely haven't created the collections/all yourself. See Shopify's documentation to do so: https://help.shopify.com/en/manual/online-store/legacy/using-themes/change-the-layout/change-catalog...

Rather than the given method to discourage indexing, Shopify has a more efficient/native way through meta fields, which also excludes it from sitemaps. Refer to my Shopify SEO guide for steps.

 

If you do you have your own collections all page, check my last comment to see if metafields are excluding it.

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
0 Likes