If she has a UTI , my puppy had that when I first got her . Give her food for the uti . I found out blueberries are very good for dogs that have UTIs. You can crush them up if you want to give them five every other day and you should see a difference. My female was extremely picky when it came it medicine for dogs so I had to go that route.
If she’s not drinking enough water , go get. broth for dogs and mix it in her food.if you do go get human broth , make sure it says “ no salt “
I would take to the vet to see if she has a uti or something however she could be trying to mark her territory