Never correct a dog for peeing and/or pooping in the house. There is only one exception and that is marking.
What you need to do is, correct yourself. Some dogs are hard to train, but a correction will not help them form the habit to go outside. What will form the habit, is if you take your dog outside on a leash and when they use the restroom outside, praise them and repeat that many, many times over.
Use a crate and limit the access to food and water inside the home.
When it comes to excitement peeing, you shouldn’t correct your dog either, because the dog can’t help that. What you can do, is anticipate and prepare, by having a leash on your dog. Under no circumstance touch a dog, who has issues with that behavior, because it will make it worse.
Longoriahaus Dog Training is a dog training service in the Kingwood, Humble and Houston, Texas area. Longoriahaus Dog Training can help you raise a happy and reliable dog.