thinking out loud, you probably should use a data attribute here:
```javascript
  if (filterBy) {
    document.body.dataset.filterBy = filterBy;
  }
```