URL structure for a product that belongs to several categories
-
Hi,
We are setting up the URL structure for a big webshop and this raised the following questions regarding the URL's for products that belong to several categories (most of the products do, so the same approach would be used for products that just belong to one category). There are three options in my point of view:
- Use root-level product page URLs (limits trackability in Analytics software because you can not specify on product types)
URL: example.com/product-1/ - Use product type URL directories for all products (which at least offers minimum trackability of all separate product types in Analytics software)
URL: example.com/book/product-1/ - Use product URLs built upon category URL structures, but ensure that each product page URL has a single, designated canonical URL.
URL: example.com/category-A/product-1/ with canonical= example.com/category-A/product-1/ URL: example.com/category-B/product-1/ with canonical= example.com/category-A/product-1/
Which option is the preferred one?
Thanks!
- Use root-level product page URLs (limits trackability in Analytics software because you can not specify on product types)
-
Each of your options has pros/cons. But in general, I've found that it is detrimental to have to change/redirect product URLs over time, which tends to happen with URLs containing category names and structure. Your second option, where you use a product "type" might be stable enough to avoid this issue though. If it is stable (or if your product pages are short-lived anyway, such as fast fashion merchandise), then I like this second option because it is helpful in analytics as well as SEO.
That said, the 2 main downsides of having the product type in the path for analytics are products which don't fall cleanly in only one "type" or if the types ever change. Then you have issues in analytics trying to compare to prior periods.
A compromise option (not one of your 3) which is often employed is to embed the relevant "type" and "category" keywords into the product name itself. So, in your book example, instead of /product/books/by-author/john-doe/my-life.html, you might instead just have /product/books-biographies-john-doe-my-life.html.
This 4th option isn't as easily parsed by either search engines or analytics, but it performs pretty well in SEO, and if you are consistent in your naming, it can be usable for analytics (you might have to rely on "contains" filters and things like that). Many e-commerce platforms allow you to put these keywords in as a "slug", so that if the product ID has to be at the end of the file path, then it would be like /product/books-biographies-john-doe-my-life/p-1234.html.
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
-
Vanity URL vs domain URL
Hi guys, Our CEO is having an interview with a known broadcaster on radio. During the interview he will mention a specific URL www.example.com/marketingcampaign that we want track on Google Analytics, therefore behaving like a vanity URL redirecting to the actual URL www.example.com/resources/primary-keyword-2018. Would this work the same way a vanity URL in terms of tracking or not such as following guideline here ? I am asking because vanity URLs are supposed to be completely different domain name that gets purchased and in our case it is the same domain name just with a different URI. thanks guys!
Reporting & Analytics | | Taysir0 -
How to share several object configurations in Gallery
I need to share multiple custom reports and segments within my company. But I can only upload one link at a time. Avinash Kaushik's "Occam's Razor Awesomeness" contains multiple segments and reports (see the screenshot or this sharing link: https://www.google.com/analytics/web/importing/?authuser=0&utm_source=google.com/analytics/gallery/&utm_medium=referral&utm_term=view&utm_content=dashboard,custom_report,advanced_segment&utm_campaign=gafe_gallery_integration#importing/a36125464w64131120p65827922/%3F_.objectId%3DVMoVbW3LQbyo87ymcFDxCQ%26_.selectedProfile%3D/). How is he able to do that? Does anyone know how to combine multiple reports into one gallery view?
Reporting & Analytics | | pollito0 -
URLS are top keywords in GA?
Hey Moz, For some reason on my father's website, michaelpadway.com, the top 2 keywords from organic are complete urls from his site. This doesn't makeugh sense to me. Any ideas?
Reporting & Analytics | | MarloSchneider1 -
Adding a Query String to a Static URL is that good or bad?
I just went through this huge process to shorten my URL structure and remove all dynamic strings. Now my analytics team wants to add query strings to track clicks from the homepage. Is this going to destroy my clean url structure by appending a query string to the end of the URL structure.
Reporting & Analytics | | rpaiva0 -
Shall I 301 a Url that has a discontinued product or shall we remove from Googles index
My web site sells shoes. These items go out of fashion and are replaced. Shall I 301 a Url that has a discontinued product or shall we remove from Googles index using webmaster tools. I seem to have a massive 301 list that carries on growing and Im concerned that to carry on doing 301s is not the right way.
Reporting & Analytics | | weddingshoesandaccessories0 -
Why are there url's in my np Keywords in google analtyics?
I have been scratching my head at this one. On my not provided keywords, there is a url. Keyword is the primary dimension. It doesn't makes sense why there would be url keywords for pages with a different url. For example, the keywords for page www.xyz.com/abc np - /someotherurl.com Thanks for your insights in advance!
Reporting & Analytics | | konverge0 -
URL-structure change - former long-tail traffic gone
Hey people, I'm sure many of you applied changes to the URL structure of a client's or your own website before. So did I for obvious reason: The structure before was like www.domain.com/brand_page/_22-key-word-translatedkeyword.php (ranked 20). This was changed to www.domain.com/key-word.html.
Reporting & Analytics | | dumperama
Edit: Also on-page it was optimized, but only taking out worthless links like "keyword-link to other page" and adding a relevant SEO text (also valuable for the user) Now, for the targeted short-tail keyword, the outcome was great - ranking increased by 17 landing the page on the first SERP. But: Before this page garnered a wide range of long-tail keyword traffic.To be exact: 2600 different keywords generated traffic for that page in a period of 1 month. Now the newly structured site (also on-page optimized) only receives traffic from around 100 keywords. You can imagine that the absolute amount of visits also dropped. So I'd like to know if you observed similar results. Another question that's coming up in this context: How regularly does Google refresh the keywords associated with a page? Like: Is this page really relevant for this one keyword we associated it with 5 years ago? Because it is clear, when I'm looking at the aforementioned 2600 KW in detail, most don't have anything to do with the site, i.e. are not mentioned at all. Still they generated valuable traffic though. All of this is really crucial to this project, because soon the whole website's supposed to be relaunched with optimized URL structure and of course everything else that's need SEO wise... I'd love to hear your experiences. Thanks!!0 -
URL Structure and Analytics Reporting
Since there are no dumb questions, here's mine: Our url structure currently displays the date followed by the post title. However, our news website has many categories like world, sports, entertainment etc. Now, when tracking in GA we get to see how many hits a specific page is getting (like entertainment) but since the category is not defined in the URL GA does not add the detail story views to the category page views. To illustrate further, a story from the entertainment section maybe displayed on the Home page and a reader may click on that story and read it without going to the entertainment page. This however, does not reflect in the analytics for that specific page(in this example, the entertainment page). My question is, should we ammend the url structure to include the categories, if so, would the editor have to do that while composing the post or is there some other way. We are using WP. Or should I create some filters or something on GA. Thanks!
Reporting & Analytics | | RishadShaikh590