Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hey @smokemega2020
Here's a clean and effective solution:
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the file below <head> tag
{% if request.path contains '/collections/' and request.query.page %}
<meta name="robots" content="noindex">
{% endif %}
This will target any paginated collection page (like /collections/shoes?page=2) and tell Google not to index them.
If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
If you intend not to index one related page on the website, you can check this guideline from Google for reference. Please also note here that some search engines might interpret the noindex rule differently. As a result, your page might still appear in results from other search engines.
https://developers.google.com/search/docs/crawling-indexing/block-indexing