# How to Group Products using Tags on Collection Pages

1. Open the search configuration.
2. Click **Add Group** button, to add a new collection group/choose existing collection group.
3. Click **Add Collection** button to add the collection pages.
4. Click **Edit Merchandising** button to update merchandising on the collection pages.
5. Click on **Add Rules/Edit Rules**, to create a new rules/edit existing rules.
6. Click on **Edit Rules ->** **Product Grouping** tab.
7. You can group products based on Shopify/Frenzy Data Source.
8. Choose the appropriate data source, select the Field and update the **Count**, to control the number of products that will be displayed in the group.
9. In this case I group products by the factory color, so that products of the same color show together in one group, such that one group has a maximum of 10 products only.&#x20;
10. Note, not all Fields can be used for Product Grouping. They need to be single valued and have a default value. This can be configured while creating filer in the dashboard.
11. Click **Save** to update the UI.
12. Click **Save and Publish** to push the rules live.

{% embed url="<https://drive.google.com/file/d/1_mj5bXUFZppg9nH1HHczodjLcHtrSk66/view?usp=sharing>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.frenzy.ai/shopify-app/tutorials/search-and-collection-page-merchandising/how-to-group-products-using-tags-on-collection-pages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
