The acetic acid in it has a smell dogs don't like, which can work as a deterrent. Carpet Gurus suggests mixing equal parts of white vinegar and water in a spray bottle, giving the solution a good shake, and then spraying it onto the area of carpeting where your dog tends to pee.