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
-
Search Console Crawl Errors/Not Found - Strange URLs
Hello, In Google Search Console under Crawl > Crawl Errors > Not found I have strange URLs like the following: https://www.domain.com//UbaOZ/
Reporting & Analytics | | chuck-layton
https://www.domain.com//UPhXZ/
https://www.domain.com//KaUpZ/WYdhZ/SnQZZ/MOcUZ/ There is no info in Linked From tab. Have you seen this type of error??
Does anyone know whats causing it??
How should it be fixed?? Thanks for reading and the help!0 -
Question on structuring URLs in a Drupal CMS - Adverse SEO or Analytics impacts?
Hello Moz Community, We're building out a health system (think a bunch of hospitals and clinics etc.) website on Drupal for the first time. Nebraskamed.com is our domain. Because we're using nodes instead of pages, our URL structure can pretty much be whatever we think makes sense. Our proposal is to drop /blog/ and related terms from the URL structure, because it doesn't really mean anything to the user. Instead, we'd use the service line "cancer" for example, followed by the name of the blog post or document. Example: nebraskamed.com/cancer/10-bone-cancer-myths Do you see any red flags (perhaps with SEO or Analytics for example) to what I'm proposing? domain name/service line/blog-post-name If so, do you have a URL structure you advise?
Reporting & Analytics | | Patrick_at_Nebraska_Medicine1 -
Custom URL tracking for paid online ads
Hello! Our marketing team is testing paid online ad networks (banner ads, mobile ads and video ads) this year in addition to some traditional television advertising. We would like to track how effective these various ads are, and I'm wondering the best method to do so. In all cases, we're not setting up new pages for these ads to go to. They will simply go to an existing page on our site. For tracking purposes, here's what I'm wondering... If we set up custom URLs on our site (e.g. www.example.com/sports) then have the visitor immediately redirected to the intended page on our site (typically our home page), will Google Analytics show that custom URL in any report to see how much traffic flowed through it? Or will it not register because a page doesn't really exist for that URL? The biggest issue is with the banner ad network, which targets around ten categories of sites (sports, moms, entertainment, etc.). I know I'll be able to find the network listed as a referrer to see the total traffic the network sent us, but we would like to know specifically which category drove the visits. As such, would a custom URL for each category work, or will Google Analytics not pick it up because it's not hitting an actual page? For television ads, we are showing our URL as www.example.com/tv, which would then redirect to the intended landing page. In this case, it's a little more challenging because I won't have the referrer traffic to go by. But same problem... will GA recognize that URL and show it in Behavior > Site Content > All Pages? I hope this makes sense. If not please let me know and I'll try to explain. Thanks in advance,
Reporting & Analytics | | SmileMoreSEO
Erik0 -
Identifying conversion rate for product
Hi, I need to identify the conversion rate for a product, lets call it a spanner. I have 100s of spanner product urls and I ensured that the url protocols must include the product name e.g /red_spanner so its easy for me to work out the conversion rate in analytics for all my spanner pages as I just add 'spanner' to the landing page filter, hit the ecommerce tab and bingo. What I cant figure out is how to work out the conversion rate for all spanner sales which includes alot of sales which didnt originate on spanner pages e.g. home page > search result > checkout. Theres 1000s of variations of this e.g. email > home > search > product page > checkout. How can I work out the total conversion rate for spanners which needs to include: people landing on a spanner page and people who didnt arrive at a spanner page and did a search with eventually got them to the spanner pages. Hopefully its not as complicated as I think! Thanks in Advance!
Reporting & Analytics | | AndyMacLean0 -
How do I set up goals in analytics to track the sales funnel when several pages of the steps required to checkout have the same url?
I have found this in Google Analytic but it makes no sense to me - is there are better resource which explains how you do this step by step ( or a good video perhaps?) Identical URLs Across Multiple Steps In some situations, the URL does not change across a sequence of activity. For example, a sign-up process might have the following URL path: Step 1 (Sign Up): www.example.com/sign_up.cgi Step 2 (Accept Agreement): www.example.com/sign_up.cgi Step 3 (Finish): www.example.com/sign_up.cgi To track visitors' progress through a funnel with the same URL for each step, modify the tracking code to create a virtual URL for each step in the sequence that you want to track. For details on how to use this in your tracking code, see Virtual Pageviews in the _Asynchronous Migration Examples_guide, which shows how to do this in all versions of the tracking code. The following example shows how you might fabricate 3 URLs using the asynchronous tracking code: _gaq.push(['_trackPageview', '/funnel_G1/step1.html']); _gaq.push(['_trackPageview', '/funnel_G1/step2.html']); _gaq.push(['_trackPageview', '/funnel_G1/step3.html']); You would then define your funnel and goal URLs using the ones you created in the tracking code modifications.
Reporting & Analytics | | pookiepro0 -
Can you link several sites together in Google Webmaster Tools?
I have a client saying that there is a way to link 3 separate websites (A website for each department of a company) in Google Webmaster tools to tell Google it's basically one site but really its 3. Or to tell Google it's the same company and all the sites are one. I have never heard of this & I don't see the point in making 3 separate small sites & "linking" them as one in Webmaster tools. Is there in fact a way? Am I out to lunch on what they might be referring to? I am recommending they create one larger authority site with a page on each department & earn links for each department page & provide informative unique content for each page. Thoughts? Thanks for the help!
Reporting & Analytics | | DCochrane0 -
WMT tools - setting parameter for redirected URLs
Hi everybody. One of our clients has recently moved from one ecommerce platform to another. During the move, a huge number of URLs have been tidied up to remove dynamic parameters. The old URLs have been redirected to the new, tidy ones. My question is whether it's worth telling Google in the WMT URL parameters section not to index the parameters of the old URLs. Will this affect the redirects in any way? Thanks!
Reporting & Analytics | | neooptic0 -
URL offline advertising
Hi there, I am in a bit of a dilemma, we are going to be doing some TV advertising and using the URL example.com/tv I want this to take the user to the product that we are advertising example.com/product For best practice should have a 301 redirect on /tv going to /product? We are also doing magazine, newspaper advertising also, so the same question applies. Kind Regards
Reporting & Analytics | | Paul780