I've found that burning lavender oil in an oil burner and spraying lavender oil around the house help to prevent dogs from making mistakes in the house.
Any mistakes are best wiped up with white vinegar diluted in water as it gets rid of the odours, antibacterials encourage the dogs to pee in that spot again.