odoo / odoo

Odoo. Open Source Apps To Grow Your Business.
https://www.odoo.com
Other
39.15k stars 25.34k forks source link

[WISH] e-commerce categories should be explicit in product URL. #60141

Open zeroheure opened 4 years ago

zeroheure commented 4 years ago

This is related to ecommerce SEO. Search engines take care of URLs content when indexing ; words founds in URLs become part of the search engine's index. This, if we have explicit categories in URLs instead of numbers it will help SEO.

Impacted versions: 8 to 14

Steps to reproduce: install e-commerce, enable display of ecommerce categories in shop, browse in a category, then choose a product in that category.

Current behavior: the product's url contains the category ID

Expected behavior: product's url with the category slug and ID

pedrobaeza commented 4 years ago

Starting with, a product can be in multiple website categories. And AFAIK, that URL analysis is not something up to date with current crawlers.

zeroheure commented 4 years ago

Multiple website category is irelevant, because the category ID is only (and allways) added in product URL if you browse from that category. It is true that URLs are only a minor ranking factor. But adding category name will not increase the load so much. And category name will also help with URL sharing. For URL analysis, see this MOZ advice about keywords in URLs.

Good SEO comes from multiple factors, and if some of them, even minor, can be set automaticaly, it will allways help.

Yenthe666 commented 4 years ago

@JKE-be is probably to decide / give good feedback here :)

JKE-be commented 4 years ago

need to analyze.

Because one product can have several category, and so you will have several url with only one canonical to the default without category ?

ps: in case you only have on category, you can change in v14 the slug name to add yourself the category into the slug.

zeroheure commented 4 years ago

Canonical URL is allways the one without category ?

JKE-be commented 4 years ago

I think... no?

product 'apple' in category 'fruits' and 'green' -> urls are

/shop/green/apple-1 /shop/fruits/apple-1 /shop/apple-1

All with a duplicated content... So you need to have a canonical

the /shop/apple-1 is the only one true in the 3 cases.

I'm wrong ?

zeroheure commented 4 years ago

No, you're right. I was wondering if canonical URL could be attached to a product in a category, like in your sample the first or second url. It would give more "heavy" keywords to search engines. And it might help search engines to choose the website categories to display in SERP infobox (I really don't know, I miss time to check in Google doc).

zeroheure commented 3 years ago

The french SEO expert Olivier Andrieu has done a short video about this problem. There is a transcript too.

The key point is while categories in URLs have a minor impact in SEO, they are useful for the work on your analytics datas and logs, because you can use the category slug to segment the logs and the analytics.