Woocommerce SEO and Product attributes
-
Hi friends! I have a question that is advanced Woocommerce and seo-related.
I'm seeing http://www.mywebsitex.com/pa_keyword/indexed in Google, but it cannot be properly optimized, and I would prefer to have a WordPress Page indexed for that keyword instead, which also lists those products and can be fully seo optimized. Woocommerce SEO plugin by Yoast lacks documentation and I have no clue if that would even fix this. I do have the Taxonomy (pa_keyword) set to not include these in the sitemap, but there doesn't seem to be a way to noindex/nofollow product attributes.
1. How can I best accomplish this?
2. Why are product attributes indexed by default? -
I actually looked into this a little further before developing conditionals, and I noticed it is possible in Yoast. You have to go to Products - Attributes, then the Gear icon, then select noindex.
-
Thank you, I think that is a good solution, and I've done similar conditional noindex tags on real estate websites, so I'll try it out for Woocommerce. I was wrong to think this should be included in Woocommerce, and instead it should likely be a component of the SEO plugin (in my case that is Yoast SEO)
-
Hi Justin,
Yes, you're correct in your response on Nov 26: XML sitemap exclusion won't guarantee that the pages aren't indexed, as they can still be discovered by Googlebot. Instead, you'll need to edit your Wordpress theme. I'll give some instructions for the 'Storefront' theme here, which should work in the majority of cases, but you may need to amend them if your theme is heavily customized.
When the page loads, it'll call the get_header(); Wordpress function, and pass the argument 'shop' to it, like so: get_header('shop');
That will prompt Wordpress to go looking for a file in the theme root called 'header-shop.php'. If that file doesn't exist, it'll load the default header.php file instead. If you do have a header-shop.php file, edit it to add the meta noindex tag on category pages. If you don't have a header-shop.php file, make a copy of header.php and rename the copy header-shop.php, saving it to the root folder of the theme.
Now in the header-shop.php file that you're amending or have just created, add something like the following before the closing tag:
if ( is_product_category() or is_product_tag() ) {
echo "";
}
You should take care to ensure that the conditional statement there is working: you don't want to inadvertently noindex all of your shop pages! So test carefully on a local version of the site, and make sure that you aren't seeing noindex tags in the source code of the non-taxonomy pages.
I'm afraid I don't know the answer to your second question. If I had to hazard a guess, I'd say it's because the developers would receive more criticism for enforcing noindex tags on certain categories of page than for not providing a noindex feature. If they put noindex on taxonomy pages by default, for example, and didn't provide an easy plugin for removing it, they'd probably get complaints about that. Or it just isn't an important enough issue in terms of the overall WooCommerce development roadmap.
-
That is only for the XML Sitemap exclusion though. Just because they are not included in the sitemap, doesn't mean they won't be indexed, correct? Shouldn't their be a way to noindex/nofollow these?
-
Hi Justin,
I also work with Woocommerce/ Yoast and in the settings of Yoast you go to XML Sitemaps and than the tab: taxonomies. There you can exclude the (product attributes. I had the same with all images who where indexed seperatly.
Hope this helps you!
Regards
Tymen
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Is Prerender.io/React going to negatively impact our SEO efforts?
On any page on the site (https://theadventurepeople.com/), the same short code appears. Having investigated Google index pages, Google's cache and Fetch & Render, it does look like Google can view the content and index it, but we're not 100% convinced. Background technical information from the web developer: The website is a single page application built using React. The site is setup with Prerender: https://prerender.io/ (which renders the javascript in a browser, saves the static HTML, and returns that to crawlers). Is Prerender.io/React going to negatively impact our SEO efforts?
Web Design | | Wagada0 -
Multiple Similar Product Variations - Page layout, Title and SEO best practice??
Im doing some research into SEO for our new web design. I sell designer eyewear prescription and sunglasses. Lets take a Ray Ban Wayfarer sunglass it comes in 30 colours and 3 sizes for each model. Up till now i was of the impression that for best practice SEO i would need to have each individual variation as its own page, this would also help with things like google shopping too. So for example heres 1 colour product in 3 sizes of 30 colour variations for this particular model. Ray Ban Wayfarer RB2140
Web Design | | Craigboi1987
Colour: Black 901
Sizes: 47, 50, 54 Currently my urls looks like this with a new page and the size changing on the end for each variation. Ray Ban Wayfarer RB2140 - Black 901 - 47 URL: www.mywebsite.com/ray-ban-wayfarer-rb2140.html?colour=Black+901&size=47 Ray Ban Wayfarer RB2140 - Black 901 - 50 URL: www.mywebsite.com/ray-ban-wayfarer-rb2140.html?colour=Black+901&size=50 Ray Ban Wayfarer RB2140 - Black 901 - 54 URL: www.mywebsite.com/ray-ban-wayfarer-rb2140.html?colour=Black+901&size=54 This is very time consuming and I'm not sure if its adding any benefit to my SEO in fact scared its actually a) slowing my site down (content heavy)
b) looking like duplicate content I am thinking about moving towards a page more like this were it would be just be a model with variations. (not effecting the title/getting a new page per variation) http://demoleotheme.com/vigoss/index.php/atomic-endurance-running-tee-crew-neck.html I am not sure of the pros and cons of doing it this way over the way I'm doing it currently all i know is my site is ranking horribly. Lastly I'm currently running a magento V1.9 store which is renowned for duplicate content slow site speeds etc so have been told moving to woo commerce would benefit me for both site performance and seo but I'm skeptical as currently with this structure of a each SKU being a new page il be up to 8000+ products and multiple product variations that it can handle my needs, anyone with any experience on woo commerce platform? (this might be a operate question apologise) This is absolutely frying my brain so any advice appreciated. Im prepared to put every dying second into just need some solid advice in which direction to go!0 -
Can anyone help me detect some SEO improvements onpage please...
Can anyone help me detect some SEO improvements onpage please... I have shortened the website URl so its not easily found when searched via search engines.. http://goo.gl/GlfMRl Please have a look and give me some tips. Thanks
Web Design | | Nettv0 -
Is Facebook like or share better for SEO (social media buttons)
Just wondering whether anybody has experience with this? If Googlebot is able to analyse Facebook activity that is (I'm not entirely sure whether it is...)
Web Design | | McTaggart0 -
What site do you admire/like for its SEO - technical, content, whatever - and why?
I am gathering examples of great SEO'd sites and would appreciate your examples. The rationale can be anything - great SEO structure, great linking, solid content - you think stands out. Thank you!
Web Design | | josh-riley0 -
Does changing nameservers and a new site design affect SEO dramatically
We are about to change nameservers and upload a new website design design, completely rebuilt website to that new hosting, will this effect our seo efforts previously and have an effect on our SEO rankings?
Web Design | | CompleteOffice0 -
What's the best SEO option for jQuery image carousels?
My client wants a fancy jquery carousel at the top of their home page, as is all the rage these days. I would like to add some nice SEO friendly text to that carousel, but I'm not sure how best to do that..I assume that by keeping the text which will appear in the carousel in divs on the page, which will be swapped out as the images cycle, it should still be easily picked up by search engines?
Web Design | | TroyCarlson1 -
How do you deal with lack of understanding about SEO?
Since I subcontract out to web design people or work doing SEO for small businesses, I am wondering how others (and if others) deal with non-compliance with good SEO practices. For instance, I had a web designer change a few of the terms for a website because the client wanted another term they thought was better instead of sticking to the SEO they contracted for and she diluted the site architecture in the process. A former small business client called for some changes and I discovered she had made some changes she "thought were good terms." Do you encounter such issues, and if so, how do you deal with them--or do you just oblige the request? Also, I've been getting requests to do "partial" seo instead of entire sites. Is that ever a good idea and if so, how would you handle it? If not, how do you successfully dissuade a client from doing so? (Both small biz and web design peeps)
Web Design | | TheARKlady0