No Index Tag Archive Pages
To prevent search engines from indexing your archive pages, you can add a “noindex” tag to these pages. This is particularly useful for eCommerce sites to avoid duplicate content issues.
Shopify
In Shopify, you can add a “noindex” tag to your archive pages by editing the theme’s Liquid files. Follow these steps:
- Go to your Shopify admin and navigate to Online Store > Themes.
- Click on Actions > Edit Code.
- Find the
collection.liquid
file under Templates and open it. - Add the following code within the
section:
This will add a “noindex” tag to your collection pages, preventing them from being indexed by search engines.
WooCommerce (WordPress)
In WooCommerce, you can achieve this by using a plugin like Yoast SEO. Follow these steps:
- Install and activate the Yoast SEO plugin.
- Go to SEO > Search Appearance.
- Navigate to the Taxonomies tab.
- Find the Product categories and Product tags sections.
- Set the Show Product categories in search results? and Show Product tags in search results? options to No.
This will add a “noindex” tag to your WooCommerce archive pages, preventing them from being indexed by search engines.