Using rootPath (Men > Shoes)[hierarchical_categories]
Filter attributes are obtained by parsing the URL path into the corresponding query's filter value.
You can use different attributes to filter your category pages. However, the category_page_id facets format exposes the hierarchy, and can also be used as the category attribute for Merchandizing Studio, AI Personalization, Query Categorization, etc.
Visit the Algolia Categories Guideline to get more information.