To prevent search engines from finding specific collections on your Shopify store, you can use a custom metafield setup. This process involves creating a new metafield under the "Collections" section. Here's a step-by-step guide:

  1. Access Custom Data: Start by logging into your Shopify admin panel. Navigate to the section where you can manage custom data for your store.

  2. Create a New Metafield under Collections: In this section, look for the option to add a new metafield. You'll specifically want to do this under the "Collections" category, as this is where your product collections are managed.

  3. Name the Metafield as 'SEO': When creating the metafield, you should name it 'SEO'. This name will help you identify the purpose of the metafield, which is to manage the visibility of your collections in search engine results.

  4. Set the Namespace and Key: For the namespace and key, enter seo.hidden. This unique identifier will be used in your store's code to reference this specific metafield.

  5. Choose the Style Type as 'Integer': The style type of the metafield should be set as an 'Integer'. This means the values you input will be numerical.

  6. Define the Values - '1' for Display, '2' for Not Display: When you input data into this metafield for each collection, use the integer '1' to indicate that the collection should be displayed in search engine results, and '2' to indicate that it should not be displayed.

  • "1" for Display: Assigning the integer "1" to the metafield for a collection indicates that this collection should be displayed or be visible to search engines. It's a way of marking the collection as 'active' or 'public' in terms of SEO visibility.

  • "2" for Not Display: Conversely, assigning "2" to the metafield for a collection would signify that this collection should not be displayed or be hidden from search engines. This setting is used to make a collection 'inactive' or 'private' from an SEO perspective.

Last updated