How To Use Product Filtering To Drive Traffic In Magento 2

A Man Holding a Credit Card for an Online Purchase

Magento 2 is a powerful and popular e-commerce platform that provides an intuitive and user-friendly experience for both merchants and customers. Among the numerous features that Magento 2 offers, one of the most useful and essential for optimizing your online store is product filtering.

Speed Up Your Magento Store by 300%

In this article, we will explore how to use product filtering to drive traffic in Magento 2 effectively. We will discuss the most critical features of product filtering, how to set it up and optimize it for search engines.

Understanding Product Filtering

Product filtering allows customers to refine their product search based on specific attributes such as brand, size, color, price, and more. It helps customers quickly find and buy products that match their preferences and needs. Product filtering is also known as layered navigation and faceted search.

Using product filtering, customers can apply multiple filters to their search, which narrow down the product results. This feature makes shopping more convenient and comfortable for customers, as they can view and purchase items that meet their standards.

For merchants, product filtering helps boost sales by increasing customer engagement and satisfaction. It allows merchants to showcase and sell their products more effectively, depending on their customers’ needs, ultimately improving their conversion rates.

Setting Up Product Filtering in Magento 2

Setting up product filtering can be done in a few easy steps:

Step 1: Create Attributes

The first step in setting up product filtering in Magento 2 is to create attributes that customers can use to filter their searches. Attributes are specific characteristics of a product that customers may use to refine their search.

For instance, if you sell clothes, attributes could include size, color, and brand. If you sell electronics, you might have attributes such as screen size, storage capacity, and operating system. Attributes should be clear and straightforward, and they should match the products you are selling.

To create attributes in Magento 2, follow these steps:

  1. Go to Stores > Attributes > Product in the Magento 2 dashboard.

  2. Click Add New Attribute.

  3. Fill in the required fields, such as Attribute Code, Scope, Input Type, Catalog Input Type for Store Owner, and others.

  4. Click Save Attribute to create it.

Step 2: Assign Attributes to Attribute Sets

The next step is to assign the created attributes to respective attribute sets. Attribute sets are groups or collections of attributes that are applied to a specific product type.

For example, if you sell men’s clothes, you might have one attribute set for shirts and another for pants. When creating a new product, you can choose the relevant attribute set to determine which attributes to apply to it.

To assign attributes to attribute sets in Magento 2, follow these steps:

  1. Go to Stores > Attributes > Attribute Set in the Magento 2 dashboard.

  2. Click Add New Set.

  3. Select the relevant product type and name the attribute set accordingly.

  4. Click Save Attribute Set.

  5. Drag and drop the relevant attributes onto the attribute set.

Step 3: Configure Product Filters

Once you have assigned attributes to your products, the next step is to configure the product filters. This allows customers to see and use the attributes you created to refine their searches.

To configure product filters in Magento 2, follow these steps:

  1. Go to Stores > Configuration > Catalog > Catalog in the Magento 2 dashboard.

  2. Expand the search engine optimization section.

  3. Enable the option to use layered navigation.

  4. Select the attributes you want to filter by in the Layered Navigation section.

Optimizing Product Filtering for Search Engines

Product filtering can also be optimized for search engines, improving visibility and driving more traffic to your online store. Here are a few tips:

  1. Include relevant keywords in the attribute names.

To optimize your product filtering for search engines, carefully consider the names you give to the attributes. Use relevant keywords, which will help search engines understand what products you offer and improve your rankings.

  1. Create SEO-friendly URLs.

Create user-friendly URLs that accurately describe the products and categories that you are selling. Use relevant keywords with hyphens between words, and eliminate any unnecessary information or characters.

  1. Complete meta descriptions.

Write complete and informative meta descriptions for each category and product page. Meta descriptions help you improve your click-through rate and make your website more understandable to search engines.


Product filtering is an essential feature in Magento 2 that can help merchants boost their sales both online and in-store. It allows for a convenient and comfortable shopping experience for customers, and it can be optimized for search engines to drive more traffic to your website. By following the steps outlined in this article, you can set up and optimize your product filtering feature effectively and improve your e-commerce performance.

Scroll to Top