# Tag grouping

Custom filter groups can be easily created to help shoppers customize the product listing on your collection pages:

<div align="center"><img src="/files/-MK1Nrw67Cz7CsDLkhzO" alt="Mobile collection drawer with filter group options"></div>

<div align="center"><img src="/files/-MK15PN4fT2PF5PoPLMM" alt="Desktop collection sidebar with filter group options"></div>

## Setup

Start by adding custom product tags to your products in the Shopify Admin:

![Tip: Add multiple tags to link with multiple filter groups](/files/-MK1HT2jHCTU0v8arTlu)

In the Theme Editor under Collection, Collection page. In the Content section, choose Add tag grouping:

![Use Add Tag grouping for each filter group](/files/-MK1959doi8cWwjBjhW-)

Add a Group name which will be displayed as the heading for the filter group. Followed by a list of tags for the group.

![Use a comma after each tag ](/files/-MK19fhasvSfUjO1uQKj)

## Dynamically displayed for each collection

Groups and tags are dynamically displayed on collection pages. Tags within a group will only appear as filter options if the collection contains products that are tagged with the tag. For example, the group Color, will only show the filter option Terrazzo if the current collection has a product tagged with Terrazzo. If none of the tags in a group match the current collection, the entire group will be hidden.&#x20;


---

# 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://pipeline.groupthought.com/pipeline-5/collections/tag-grouping.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.
