Private collection but findable public products

Hey everyone,

So today we’ve setup a private collection, only accessible for people with an account and a certain tag.
This is all working fine. But i’m finding out that the products in this private collection are findable on google.

The theme we use is “Label”
And this is the custom code for the private collection:

{%if customer.tags contains “shop”%}
{% section “main-collection” %}
{%else%}

{{ pages.no-access.content }}

{%endif%}

The idea is that shops can acces this “wholesale” page but these products should be in no way findable for regular costumers.

Would be very happy if someone out there could help me find a solution to this!

Hi,

Shopify offers a solution for this:

https://help.shopify.com/en/manual/promoting-marketing/seo/hide-a-page-from-search-engines

In short, you have to edit your website`s robots.txt file.

1 Like

Just a quick note: on most Shopify stores your products will still be visible via at the /collections/all/products.json endpoint (as well as some other endpoints), so don’t assume the products are completely invisible.