Filter of Product Dataset with dynamic value when page loads

I found this example
https://www.wix.com/velo/example/multiple-filter-methods

This code is working when the button is in the same page, in my case I have ‘T-Shirt’ button in one page, clicking on that will redirect me to another page, which will show filtered result of T-Shirt on page load. I have no knowledge of programing, so a help is needed to make my site ready. Thanks.