Daisy had a UTI too after she came back from her spay. She was having accidents everywhere and she would do this ''walk'' while peeing!
We got antibiotics (VERY expensive for the tiniest bottle) for her and it cleared in a few weeks. It still took her a few more weeks to go back to normal and go in her designated areas.