Private collection but findable public products

Solved

Private collection but findable public products

Transatlantic95
Visitor
3 0 1

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! 



Accepted Solution (1)

kgbfashionista
Navigator
345 24 50

This is an accepted solution.

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.

Feel free to like my post if it was helpful at all

View solution in original post

Replies 2 (2)

kgbfashionista
Navigator
345 24 50

This is an accepted solution.

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.

Feel free to like my post if it was helpful at all
javl
Shopify Partner
18 0 16

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.