Using scroll wheel for macro

I've looked through the forums for an answer already, and there are a couple of posts, but they have no answers. I'm using a Logitech mx master 2s, and I wanted to use the side scroll wheel to scroll through tabs on Safari. I cant figure out how to use the side scroll wheel to do the macro for this. Logitech options is really annoying to work with as it won't let you set macros to anything so this is my last resort.