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
-
Change Phone Number Based on Traffic Source + Ping URL for Call Tracking Number
Hi Everyone, Is there a tool that can change the phone number on a web page based on the visitor source (i.e., direct, organic, paid, etc.)? I'd like to implement a solution like this with different call tracking numbers based on the visitor source. We use the Google suite for our analytics (GA, GTM, Google Data Studio, Google Optimize is also an option as well). - Also, is there a good call tracking service that will ping a URL each time the phone number is called so that we can track these calls as events in GA? The majority of our visitors use a desktop PC and dial in the number on the screen rather than clicking (tapping) on it from a mobile device. Thanks, Andy
Reporting & Analytics | | AndyRCWRCM0 -
Query on Product List Position After doing filters
Hi All, I have implemented enhance ecommerce with tag manager now I am implementing Product List Position so I have query that if visitor do filter or do sorting via highest or lowest price at that time do we have to show List position too? If yes then how and if No then why?
Reporting & Analytics | | Arnold3
Thanks!Mitesh0 -
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 -
Ecommerce site product link. How to handle a link that doesn't exist.
Suppose we have this product A, and we just have a single item for this. When the item is sold out we do not want to show it on the website saying "out of stock". Instead we would like to remove the product from out store which will now result in a url that doesn't exist. And google webmaster tool and Moz analytic will show them as page not found after they crawl over the site. Should i be generating a new sitemap.xml and update ? How do i handle those pages that don't exist anymore ? Thanks
Reporting & Analytics | | MindlessWizard0 -
GATC New code structure?
Hi Guys, One of my clients has this code showing up, and it is receiving data! Is this normal? First time I ever see such a code! Thanks for clarifying!
Reporting & Analytics | | Ideas-Money-Art0 -
Why is Google Analytics showing index.php after every page URL?
Hi, My client's site has GA tracking code gathering correct data on the site, but the pages are listed in GA as having /index.php at the end of every URL, although this does not appear when you visit the site pages. Even if there is a redirect happening for site visitors, shouldn't GA be showing the pages as their redirect destination, i.e. the URL that visitors actually see? Could this discrepancy be adversely affecting my search performance? Example page: http://freshstarttax.com/innocent-spouse/ shows up in GA as http://freshstarttax.com/innocent-spouse/index.php thanks
Reporting & Analytics | | JMagary0 -
URL Structure Q - /UniqueURL/ProductA or /SubcategoryURL/ProductA?
Hi Mozers, I have a niche ecommerce site http://www.ecustomfinishes.com that sells custom barn wood furniture. I have about 600 products online. 2 weeks ago I started rewriting my urls from /subcategoryurl/ProductA to /UNIQUEURL/productA for my individual products, For example for my subcategory farm tables (150 products) I had /rustic-farm-tables/productA, /rustic-farm-tables/ProductB ...."rustic-farm-table" about 150 times. 2 weeks ago I started changing the 150x "/rustic-farm-table/" to a more descriptive URL such as /white-farm-table/producA /rustic-square-dining-table/ProductB /Black-harvest-table/ProductC Here is why I am need advice: I have 1181 pages, the page with the most entrances with "rustic-farm-tables" is #31/1181 based on entrances. the 2nd most is #71/1181 Alternatively, I have 13 table product pages such a as /12ft-Rustic-Farm-Dining-Table-p/12-foot-table-with-inlay.htm" that get more entrances than any product that includes "rustic-farm-tables" Since changing the urls to be product specific, my overall traffic has dropped 20%!!! So here is my question: do i continue to have the /UNIQUEURL/product be unique to the product, which is consistant amongst my best preforming pages, yet has dropped my traffic 20% in the last 2 weeks, OR do i keep /SAME-URL/product which written as a best practice, and be happy with the traffic I had? Could the 20% drop just be a temporary shock? Why would this happen? This would be a good long tail/head term experiment. Try to get more head terms, or do what you can do focus on long tail. I hope i was able to explain this well, I say follow the best practices of my best preforming pages, however the 20% drop has me worried. Thank you in advance for your help
Reporting & Analytics | | longdenc_gmail.com0 -
No Link Data Available for this URL appears often. Are my sites too small to show up?
I am on the trial until Mar 5, 2012. I seldom get the info I want. Is it because my sites are too narrow a niche? I don't seem to be getting the data I'd like from your service. I'm trying to like it, but when I keep getting messages like this, it makes it hard to justify: "No Link Data Available for this URL appears often" Sample sites that I am unable to get data. I especially would like to know how many backlinks exist for each site. I paid someone to help me with them and I'd like to verify their work.: http://costaricadentistreview.com/ http://costaricadentistreviews.com/ http://costaricadentalimplants.org Any suggestions? Thanx Kurt Gross
Reporting & Analytics | | kurtray0