Someone who opens a collection with 200 products doesn't scroll through all of them: they look for their size, their color, their price range. That's what filters are for. On Shopify you manage them with the free Search & Discovery app, and they work on collection pages and in the store's search results.

Let's look at how to set them up, which filters to choose and what to do so they don't cause problems with Google.

How to add filters

From the Shopify admin, following Shopify's guide to filters:

  1. Install the Search & Discovery app if you haven't already, and open it from Apps.
  2. Go to Filters and click Add filter.
  3. In the Source field, choose where the filter gets its values from (price, size, a metafield...).
  4. If you want, change the name customers see, the behavior and the appearance, and group and sort the values.
  5. Save.

Filters only show up if your theme supports them: to find out, Shopify says to check under Content > Menus.

Which filters you can use

Standard filters

  • Availability (in stock or out of stock)
  • Category
  • Price
  • Product type
  • Tag
  • Vendor (the brand)

Custom filters

  • Product options: size, color, material, meaning the options you use to create variants.
  • Metafields on the product, variant or category: for example fit, heel type, product line, season.

Metafields are the way to build filters that are genuinely useful in your industry. A metaobject reference metafield also lets you display values as color swatches or images, if your theme supports it.

How they combine

Values from different filters combine with "and": "Size 38" and "Color black" shows only black products in size 38. Values from the same filter combine with "or": "Black" or "White." For tags and some list metafields, you can switch this behavior to "and."

How to choose the right filters

Shopify allows up to 25 filters per store. That doesn't mean you should use them all. Only show filters that genuinely help people choose:

  • Start from how customers search. In fashion: size, color, price, availability. In beauty: skin type, concern, size. Look at the searches made in your store and the questions that reach customer service.
  • Include availability. Finding the perfect product and then discovering your size is sold out is one of the most common frustrations.
  • Clean up the values. If the same color is written "Blue," "blue" and "Navy blue," the filter will show three entries. Grouping lets you merge several values into one ("Blue"), but it's better to fix the data first.
  • Use clear names. "Fit" is better than "fit_type." You change the filter name in the app.
  • Sort the values. Sizes in ascending order, not alphabetical.
  • Few filters on mobile. On a phone the filter panel takes up the whole screen: the most-used ones go at the top.

Keep in mind that Shopify only shows filters relevant to the products on the page: in a collection of bags, the shoe size filter doesn't appear.

Limits to know about

From Shopify's guide:

  • up to 25 filters per store, and each source can be used only once;
  • up to 100 values shown per filter;
  • collections with more than 5,000 products don't show filters;
  • in search results, filters and counts are based on the first 1,000 results.

If a collection goes over 5,000 products, it should be split into smaller collections, which is more useful for shoppers anyway. We explain how to build them in the guide to collections on Shopify.

Filters and SEO

Every filter applied adds parameters to the collection URL, for example ?filter.v.option.color=black or ?filter.p.vendor=brand (the format is described in Shopify's developer documentation). With a few filters and lots of values, the combinations turn into thousands of URLs with nearly identical content.

In its guide to faceted navigation, Google lays out two paths:

  • If you don't need the filtered pages in search results (the most common case), prevent crawling of filtered URLs through robots.txt, while leaving product pages and unfiltered collections open. Google notes that canonical and nofollow are less effective over time.
  • If you want some combinations to rank, they need to be clean, stable URLs that return a 404 when they have no results.

On Shopify, the second path usually works better with a real collection: "White sneakers" as a collection with its own title, copy and URL ranks better than a URL with three parameters.

You customize Shopify's robots.txt by adding the robots.txt.liquid template to your theme (Shopify's guide). Before editing it, open yourstore.com/robots.txt and see what it already blocks: some rules may already be there. A wrong rule can block important pages, so have it checked by whoever develops your theme.

For the rest of Shopify's typical duplicates, see the guide to canonical URLs.

Common mistakes

  • Filters without data. A "Material" filter on a catalog where half the products don't have the material filled in hides products from anyone who filters.
  • Too many filters. Twenty filters on a collection of thirty products slow down the choice instead of helping it.
  • Collections instead of filters. Creating "Black shoes," "Blue shoes" and "Red shoes" as separate collections when a color filter would do.
  • Not looking at the data. The Search & Discovery app's search reports tell you what customers search for and how often those searches end in a purchase.

Frequently asked questions

Do Shopify filters cost money?

The Search & Discovery app is made by Shopify and installs for free from the Shopify App Store.

Can I filter by an attribute that isn't a variant?

Yes, with a metafield. Create the metafield definition, fill it in on your products and add it as a filter source.

Why don't filters show up in my store?

The most common causes: your theme doesn't support them, the collection has more than 5,000 products, or no product on the page has values for that filter.

If you'd like us to set up your store's filters and collections, let's talk.