The best way to stop your dog from peeing in the house is to immediately deal with the urine stain to remove the scent. Dogs are creatures of habit and will gravitate to the same spots because they are familiar.