Faceted Navigation and SEO: Filters in an Online Store
Faceted navigation is the set of filters shoppers use to narrow a product list by color, size, brand or price. For the shopper it's a convenience, for a search engine a potentially infinite number of URLs, because every filter combination can have its own address. Google recommends two paths: if filtered pages don't need to be in search results, block their crawling in robots.txt or put the filters after the # in the URL; if they should be indexed, follow a few URL rules and return a 404 for empty combinations. The canonical tag and the nofollow attribute help less.
What Faceted Navigation Is
Faceted navigation is a set of filters on a listing page that changes which items are shown and in what order. In an online store these are usually color, size, brand, material, price range and availability. On a jobs or real estate site they might be location, contract type or floor area. Each attribute is one facet, and visitors can combine several at once.
In its documentation on managing crawling of faceted navigation URLs, Google calls it a popular and useful feature. The problem isn't the filters themselves but their most common implementation: URL parameters. The documentation's example is a URL with three parameters, for product type, color and size. Changing any of them shows a different set of items, and the number of possible combinations grows quickly.
Why Filters Hurt Crawling
Google names two kinds of harm. The first is overcrawling: filter URLs look new, and the crawler can't tell whether they're useful until it fetches them. Before its processes determine that these pages are useless, it will typically access a very large number of them. The second follows from the first: time spent on useless URLs is time not spent on new, useful pages, so new products and categories are discovered more slowly.
The documentation adds a third point that's easy to forget: crawling filtered pages costs the store's server a lot of computing resources, because there are so many URLs and each page has to be rendered. So this isn't only a ranking issue but an infrastructure load issue as well.
Google describes the same mechanics in its guide to designing a URL structure for ecommerce sites. If two URLs return the same content, the crawler may retrieve it repeatedly, and values that change endlessly, such as a timestamp in the URL, can make a site look infinite.
Path One: Prevent Crawling of Filters
If filtered pages don't need to appear in Google Search or other Google products, the documentation recommends preventing their crawling. The reasoning is direct: there's often no good reason to allow crawling of filtered listings, since it consumes server resources for no or negligible benefit. Instead, Google suggests letting the crawler reach the individual product pages and one listing page that shows all products without filters.
The first tool is robots.txt. The documentation shows a rule that blocks URLs containing filter parameters while allowing the all-products page:
user-agent: Googlebot
disallow: /*?*products=
disallow: /*?*color=
disallow: /*?*size=
allow: /*?products=all$
The second tool is the URL fragment, the part after the # sign. Google Search generally doesn't support URL fragments in crawling and indexing, so filters written as a fragment have no impact on crawling, positive or negative. The ecommerce URL guide says the same from the other side: Google doesn't use fragment identifiers in indexing, so two URLs that differ only in the fragment are treated as the same page. For filters that aren't meant to be indexed, that's an advantage.
A robots.txt block has one consequence worth understanding. The crawler won't fetch a blocked page, so it won't see any tag on it, neither canonical nor noindex. Google's documentation on blocking indexing with noindex states that for noindex to work, the page must not be blocked by robots.txt.
Canonical and Nofollow: Weaker Signals
Google also lists two ways to signal which filter URLs should or shouldn't be crawled: the rel="canonical" link element and the rel="nofollow" attribute on links. It immediately adds that these are generally less effective in the long term than a robots.txt block or URL fragments.
A canonical tag pointing to the unfiltered version may, over time, decrease the number of fetches of non-canonical versions. The documentation's example: a URL with three filters names as canonical the URL with only the product type. The crawler still has to fetch the page first to see that tag.
The nofollow attribute on links to filtered results may help, but Google sets a hard condition: to be effective, every link pointing to a given URL must carry it. A single link without the attribute, for example in breadcrumbs, the footer or on another page, is enough for the crawler to find the URL.
Path Two: Filters That Should Be Indexed
Sometimes a filter combination matches what people actually search for, such as a specific brand within a specific category. If such pages should be crawled and indexed, Google gives rules that limit the damage. The documentation also reminds you that crawling these URLs means more server load and, potentially, slower discovery of new pages.
There are four rules. Use the standard parameter separator, the "&" character. Commas, semicolons and brackets are hard for crawlers to recognize as separators, because most often they aren't. If filters are encoded in the URL path, for example as successive segments, their order must always stay the same, with no duplicates. A combination that returns no results should return an HTTP 404 status code, and so should duplicate or nonsensical combinations and nonexistent pagination URLs. Finally, for an empty combination don't redirect to a common error page; return the 404 under the URL where the problem occurred. Google notes that in a single-page app this might not be possible and points to its best practices for such apps. How 404 differs from 410 and from a soft 404 is explained in our article on HTTP status codes and SEO.
The ecommerce URL guide adds a few recommendations for parameters. Key=value parameters are better than a bare value. The same parameter shouldn't appear twice in a URL, because Googlebot may ignore one of the values. Don't link internally to temporary parameters such as session IDs, tracking codes or user-relative values like "nearby" or "last week". The same URL should appear in internal links, in the sitemap and in the canonical tag, and links must be plain <a href> elements, not JavaScript-only navigation.
Product Variants vs. Filters
Color or size is sometimes both a filter on a listing and a product variant. These are two different situations. Google recommends that each product variant be identifiable by a separate URL, in the path or in a parameter. If variants are identified by optional parameters, the URL without the parameter is a good canonical choice, which Google says helps it understand the relationship between variants.
A filter on a category listing changes the set of products, while a variant on a product page changes one attribute of the same product. The first is usually worth limiting, the second usually worth describing properly.
How We Sort Out Faceted Navigation in Stores
First, the list of URLs the crawler actually visits. Before blocking anything, we check in Search Console and in the server logs which parameter URLs Googlebot fetches. Only then do we know whether the problem is real and which filters it involves.
A decision on every facet, made with the store owner. Together we determine which combinations match what customers search for and deserve a permanent page with its own URL and description, and which are just a convenience on the product list. We block the latter in robots.txt or move them into the URL fragment, following Google's documentation.
We check after deployment, not just in the code. After a change we test whether empty filter combinations return a 404, and whether the robots.txt rules accidentally blocked product pages or the unfiltered listing page.
Summary
Faceted navigation is useful for shoppers, but filters in URL parameters can create an infinite number of URLs that eat up crawler time and load the server. If filtered pages don't need to be in Search, Google recommends robots.txt or the URL fragment. If they should be indexed, stick to the "&" separator, a consistent filter order and a 404 for empty combinations. Canonical and nofollow are, according to Google, weaker signals.
The biggest gains come from deciding facet by facet which combinations answer real searches and which are just a convenience. We work on category and filter structure as part of our SEO service. If you want to see how crawlers handle the filters in your store, request a quote.