Articles on: đź›’ Monster Cart Upsells

Hide product from showing up on Google search

How can I stop a specific product from showing up on Google?



If you want to prevent a product from appearing in Google search results, follow these simple steps:


Step 1: Create a “Hide from Google” Setting



Go to Settings > Metafields in your Shopify admin.
Choose Products and click Add definition.
Name it “Hide from Google,” and set Namespace and key to seo.hidden.
For Content type, select Number and choose Integer.
Click Save.


Step 2: Add the “Hide from Google” Option to the Product



Go to Products in your Shopify admin.
Select the product you want to hide.
Scroll to Metafields at the bottom, find “Hide from Google,” and type 1 as the value.
Click Save.


Step 3: Update Your Theme to Recognize the Setting



Go to Online Store > Themes.
Click Actions > Edit code for your current theme.
Open the Layout folder and select theme.liquid.
Find the <head> section of the code and paste this code:


{% if product.metafields.seo.hidden == 1 %}
     <meta name="robots" content="noindex, nofollow">
   {% endif %}


Click Save.


All Done!



Now, that product page will tell Google not to show it in search results. It may take some time for Google to update, but this will keep the page hidden in future searches.

Still Not Working?



If this doesn’t work, contact Shopify support for further assistance. While this solution works for most themes, some themes may need additional adjustments.

Updated on: 16/11/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!