- Good site architecture puts every product a few clicks from the homepage, gives each category one clean indexable URL, and links categories to the products and subcategories under them.
- Build categories from how shoppers search and browse, then test each one against demand, product depth and margin. A low-demand, low-margin grouping should be a filter, not an indexable page.
- On Shopify, URL prefixes are fixed, so architecture lives in collections, menus, breadcrumbs and internal links. Control faceted URLs so filters do not create thousands of crawlable near-duplicates.
What is ecommerce site architecture, and why does it matter for profit?
Site architecture is how your pages are grouped and linked: homepage, categories, subcategories, products, and the supporting content around them. It decides three things.
- What search engines find and value. Google discovers pages through links. Pages linked from the main navigation and many categories get crawled more often and are treated as more important than pages buried six levels down.
- What shoppers can find. A shopper who cannot get from “Men’s” to “Trail running shoes” in two taps will use the back button or site search, and many will leave.
- Where your ranking power goes. Links concentrate attention. If your strongest internal links point to low-margin clearance categories, that is where organic traffic will grow.
The profit-first view: architecture is a decision about which product groups deserve search visibility. Put your strongest structure behind the categories that have demand and healthy gross margin.
How deep should your category structure be?
Shallow enough that important products are a few clicks from the homepage, deep enough that each category page is specific. A common rule of thumb is that any product should be reachable within three or four clicks. Google does not set a fixed number, so treat it as a guide, not a rule.
| Level | Example | Job | Index it? |
|---|---|---|---|
| Homepage | / | Route shoppers to top categories | Yes |
| Department | Women’s | Broad browse entry, links to categories | Yes |
| Category | Women’s hiking boots | Main commercial landing page | Yes |
| Subcategory | Women’s waterproof hiking boots | Specific, high-intent searches | Yes, if demand exists |
| Filtered view | Women’s hiking boots, size 8, brown | Help shoppers narrow results | Usually no |
| Product | Acme Trail 2 Women’s Boot | Sell one item | Yes |
Two failure modes show up in audits. Flat stores with 600 products in one “Shop all” collection give Google nothing specific to rank. Deep stores with seven nested levels bury the products that actually sell. Most catalogs in the $1M to $50M range land well at three levels: department, category, subcategory.
How do you decide which categories deserve their own page?
Start from demand, not from your warehouse layout. Pull queries from Google Search Console, site search logs and keyword research, and group them by the product set each one implies. Then score each candidate.
A candidate deserves an indexable category page when it passes four tests:
- Search demand: people search for this grouping in their own words.
- Distinct product set: it holds enough products to be useful, and they differ from the parent category’s list.
- Commercial intent: searchers want to buy, not just learn.
- Margin: the products earn enough to justify the effort of ranking.
If it fails on demand or depth, keep it as a filter. If it fails on margin, it can still exist for shoppers, but do not push internal links and content toward it.
Worked example (illustrative numbers)
An outdoor footwear store considers five new pages under “Hiking boots”.
| Candidate | Monthly searches | Products | Avg. gross margin | Decision |
|---|---|---|---|---|
| Waterproof hiking boots | 12,000 | 38 | 46% | Indexable subcategory |
| Wide hiking boots | 3,500 | 14 | 44% | Indexable subcategory |
| Vegan hiking boots | 900 | 9 | 41% | Indexable, link from blog guides |
| Brown hiking boots | 600 | 45 | 43% | Filter only, near-duplicate of parent |
| Hiking boots under $50 | 1,800 | 6 | 18% | Filter only, low margin |
Brown boots has demand but no distinct product set: color is just a filter on the same list. Boots under $50 has demand but thin margin, and pushing that page would trade profitable traffic for cheaper orders.
How should your URLs work?
Google’s ecommerce URL guidance favors descriptive words in paths over IDs, ?key=value parameters over bare values, and one consistent URL used in internal links, sitemaps and canonical tags. Google ignores the part of a URL after # when indexing, so content that needs its own search presence needs its own real URL.
Platform matters here.
- Shopify uses fixed prefixes:
/collections/for categories and/products/for products. You cannot add a custom folder hierarchy. A product can also load at a collection-aware path like/collections/hiking-boots/products/acme-trail-2, which declares/products/acme-trail-2as its canonical. Make sure your theme links to the canonical product URL so you do not spread signals across duplicates. Hierarchy on Shopify comes from menus, breadcrumbs and links, not URL folders. - WooCommerce and Magento give you more control over category and product URL patterns. Choose a pattern once. Changing it later means redirecting every URL.
Short product URLs that do not include the category path are easier to maintain. A product that moves to a new category keeps its URL, and it never exists at two addresses.
How do filters and faceted navigation fit in?
Faceted navigation is essential for shoppers and dangerous for crawling. Size, color, price and brand filters combine into thousands of URLs that show slight variations of the same products. Google’s guidance on faceted navigation, published in December 2024, gives clear options.
If you do not need filtered URLs indexed:
- Disallow crawling of filter parameters in robots.txt. Google describes this as the more effective long-term approach.
- Or build filters on URL fragments, which Google does not crawl as separate pages.
- Canonical tags and nofollow links help less over time, per Google.
If some filtered views deserve indexing:
- Use the
&character to separate parameters. - Keep filter order consistent, with no duplicate filters.
- Return a 404 status for filter combinations with no results.
The most practical pattern for most stores: turn the few high-demand filter combinations (like “waterproof hiking boots”) into real categories or collections with their own copy, and keep the rest of the filter space out of the crawl. Our guide to faceted navigation SEO covers the setup in detail.
How do navigation, breadcrumbs and internal links hold it together?
URLs and categories are the skeleton. Links are what make Google and shoppers use it.
Main navigation. Link departments and top categories from the header using standard <a href> links. Google may not follow navigation that only works through JavaScript click handlers. Keep menus focused on categories with demand and margin. A mega menu with 200 links dilutes every one of them.
Breadcrumb navigation. Breadcrumbs show where a page sits (“Home > Women’s > Hiking boots > Acme Trail 2”) and link back up the tree. Mark them up with BreadcrumbList structured data. In January 2025 Google stopped showing breadcrumbs in mobile search result URLs, displaying only the domain, while desktop results still show them. The markup is still supported, and the on-page breadcrumbs still help shoppers and internal linking.
Contextual internal links. Link from category copy to related subcategories, from product pages to their parent category, and from buying guides to the categories they recommend. A guide such as our eCommerce buying guides approach can send strong links to your most profitable categories. For a full linking system, see our guide to eCommerce internal linking.
Category page content. Give each indexable category a short intro that explains the range and helps choice, plus links to its subcategories. Keep products high on the page: shoppers came to browse.
Site architecture checklist
- [ ] Every indexable category maps to a real search demand cluster
- [ ] Each category has a distinct product set from its parent and siblings
- [ ] High-margin categories get links from the main navigation and relevant content
- [ ] Products are reachable within three or four clicks from the homepage
- [ ] Internal links, sitemaps and canonicals all use the same product URL
- [ ] On Shopify, theme links point to
/products/URLs, not collection-aware paths - [ ] Filter parameters are blocked from crawling unless deliberately indexed
- [ ] Empty filter combinations return 404, not a soft “no results” page
- [ ] Breadcrumbs appear on category and product pages, with BreadcrumbList markup
- [ ] Navigation uses standard HTML links that work without JavaScript
- [ ] Site search queries with no matching category are reviewed quarterly as new category ideas
FAQ
Should product URLs include the category path?
Usually not. A product URL without the category is stable when you reorganize categories, and the product only lives at one address. Breadcrumbs and internal links can still show the hierarchy. On Shopify the choice is made for you: the canonical product URL is always under /products/.
How many products should a category have before it gets its own page?
There is no fixed number. The test is whether the page is useful to a shopper and different from its parent. A category with a handful of well-matched products and clear demand can rank. A category of two items that also appear on a broader page usually should be a filter instead.
Does reorganizing categories hurt rankings?
It can for a while, especially if URLs change. Map every old URL to its closest new page with 301 redirects, update internal links to the new URLs, and resubmit your sitemap. Change the structure in stages, starting with sections that have the most to gain.