Hiding a Product from Search Engine

fungtutor
Tourist
11 0 3

I have a product that's for promotional purposes only. I send direct link to potential buyers, but I don't want the product to show up in search engines.

 

How can I achieve this?

Replies 10 (10)
BogdanM
Shopify Partner
119 3 27

Hi,

 

You can create a metafield for that product with the following data:

"namespace" : "seo"
"key" : "hidden"
"value" : 1
"value_type" : "integer"

 

Bogdan | WebShopAssist
User friendly apps with top-rated support
- SKUGen the SKU generator
- DPD Integration
fungtutor
Tourist
11 0 3

Brilliant. Can you explain where and how do I place this metafield?

 


@BogdanM wrote:

Hi,

 

You can create a metafield for that product with the following data:

"namespace" : "seo"
"key" : "hidden"
"value" : 1
"value_type" : "integer"

 


 

BogdanM
Shopify Partner
119 3 27

Hey,

 

You have to install an app from the app store.

For example this one. It has a free plan.

Find your product in the app and add the metafield.

Bogdan | WebShopAssist
User friendly apps with top-rated support
- SKUGen the SKU generator
- DPD Integration
Lizzy
Shopify Staff (Retired)
Shopify Staff (Retired)
469 58 176

Hey there.

 

Lizzy here, I’m a Shopify support Guru.

 

We have a guide in the Shopify Help Center that explains how to add a snippet to your code that will hide a page from search engines. You can read it here! 

 

You'll be able to find the page handle it mentions on the product page in your admin. It is located in the Search engine listing preview section.
27-27-68r4w-864md

 

Before making any changes to the theme code I always like to suggest duplicating your theme. You can do this by going to Online Store>Actions>Duplicate. Just in case you need a backup.

 

Do you have an email marketing campaign that you're using to share this link with your customers? We have a great course about email marketing in the Shopify Academy. I wanted to share this with you, as it might offer some tips to help you get the most out of any promotion you're thinking of!

 

Thank you,
Lizzy

Lizzy | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

ForerunnerINTL
Shopify Partner
9 0 2

I use a free app called Simple Admin to add custom metafields to products.

Komal_agg89
New Member
23 0 0

Hey,

To hide the product from a search engine, mark it nofollow noindex in theme liquid.

If you also want to hide the product from the store, so that only those customers can see who have the direct URL of the product. Try this app: https://apps.shopify.com/autohide-soldout-products

It hides all soldout products from the store automatically without putting efforts doing it manually one by one.

jasonavada
Shopify Partner
333 11 40

As according to this article, you can delete one or all products from your Shopify store. Maybe you'll want to have a look at it

I'm Jason Dao, Manager of Research & Development Department at Avada Ecommerce.
juliewitmermaps
Shopify Partner
31 0 8

Hi, I used the bulk edit link to set the value of the hidden seo field to 1, but the products still show up in site search. I've tried multiple browsers after clearing cache, and the products still show up. Is there something else I have to do?

mystore.myshopify.com/admin/bulk?limit=250&resource_name=Product&edit=metafields.seo.hidden%3Aboolean%2Cvariants.metafields.seo.hidden%3Aboolean&show=&ids=&app_context=&metafield_titles=&metafield_options=

sillycube
Shopify Partner
775 17 124

Now, the metafield is changed from value_type to type and integer is changed to number_integer. Is the trick still working for the new metafield?

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview
InesCV
Shopify Expert
10 0 6

Hi Bogdan, do you know if this solution would work too for collections or pages (or any other page type that is not product)?

 

Thank you 

Ines Castelltort