The vinegar smell is quite irritating, and dogs can easily sense it in the surroundings. If your dog has the habit of peeing on carpets or anywhere in the house, spray it with water. This will act as a repellent to them, and they will look out for other areas to pee.