Jump to content

How do I prevent Google from indexing archive, category, and tag pages?

Recommended Posts

Site URL: https://www.cottoncashmerecathair.com/

I have discovered via search console that Google is indexing my archive pages, categories, and tags over individual blog posts, which means my site is not showing up in search results when it should be. How can I tell Google not to index those pages and instead index the blog posts? I read in other posts here that you can inject code, but how do I inject code for pages that aren't in my navigation? I also know about canonical links but they confuse me; is that something I do in search console? How does one go about setting those? Any insight/tips would be much appreciated!

Link to comment

UPDATE : SS has built-in settings for this. Use those instead of the code cited here.

I don't know for sure if the following will work and it requires the business plan or above.

It may not work as we have no control over how Google indexes pages. We can only suggest that pages not be indexed. Weather this works depends on if Google runs this Javascript before it indexes the page. My reading suggests that Google may but again. We can't control what Google does.

Please see Blog Non-Post Pages Meta Noindex Tag Add.

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 11 months later...
1 hour ago, TylerRobertsSEO said:

will your script work in version 7.1?

Hello Tyler,

No but I think it could be updated to work with v7.1. Give me several days to see what I might be able to do.

If you don't hear back from me soon, bump this thread.

-- Thomas

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
2 hours ago, MCKC said:

Is this similar

It is similar and I suggest folks use the built-in method, now that I know about it. Thank you for pointing it out! 🙂

It appears SS changed the interface a bit.

1383036882_ScreenShot2022-06-21at10_09_11AM.png.d02ba997146a0e935b91e291a3c58526.png

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.