How can I capture user interactions(on click) and use them for CMS filtering?

Hi @dejan When a user clicks on a heading, it should be temporarily stored, and the stored data should then be used to filter content from the CMS. If the user clicks on multiple headings, all selected headings should be considered for filtering.

Could you please guide me on how to achieve this?