Most people that are reading this probably just got their dog, a cute little puppy that is unfortunately, probably peeing in your house. So we want to put that to an end. The best way to do that is with crate training. Crate training involves first a visit to your local pet store to get the correct size of crate which should be not that much bigger than what your puppy is right now, you do not want to get a big crate that they are going to grow into as they get older you need to get a crate that is either small, because they are going to stay small or if it's a big dog like a German shepherd you might be able to get a bigger crate that has dividers in it so you can block off certain areas of it, then you will not have the problem of continuing buying different sized crates, but you do need to have the crate small enough so that the puppy is forced to stay in a small area so that we can harness what the dog has in instinct which is to not pee or poop where they are going to sleep.
That is what we are working off, to try and get your puppy to not go to the bathroom in the crate and to last through the night so that it is not waking you up multiple times in the night and also that the puppy is not going to the bathroom in your house. We only need to harness this instinct. Dogs do not want to be in the area where there urine and stools are. I should say at the very beginning of this punishment for urinating or defecating in your house is not appropriate and will not help to resolve the issue at all. If you catch your dog in the act of urinating or defecating the best thing to do is to make a noise so as you distract them so that they stop going to the bathroom and then you pick them up and carry them outside and give them a positive reward for urinating or defecating outside.
Shoving their nose in excrement of any kind is very unhelpful and punishment in the way of yelling spanking or hiring them with a roled up newspaper all those things that were done in the 50s and 60s they do not work, they make your dog end up being a very scared submissive dog when it otherwise would not be. So what I recommend doing with the crate is to first of all only use the crate at night, you can use crates during the day but they should not be used the entire day. Your goal is to get the puppy to sleep through the night by the age of three months. As soon as you have your puppy you should be putting it in the crate, basically you would take your puppy outside to go to the bathroom right before you go to bed and give the puppy a positive reward for going to the bathroom outside and then everybody goes to bed including the puppy.
Do not keep the crate in your bedroom so that you are not tempted to respond to the wining that will inevitable happen the first one or two nights. So have the crate in another room and the puppy goes into the crate and its bedtime for everyone. Depending what age your puppy is when you get it home, you may have to get up once or twice in the middle of the night, It is best to see how many times in the first night it wants to get up for the bathroom, usually twice is sufficient. If your puppy wakes up at one in the morning and then again at four in the morning what I would recommend doing is to wake yourself up at twelve thirty, twelve forty five and then again right before that four o'clock time to go out to the bathroom so that you are actually training your puppy on your schedule and you are not being trained to go on their schedule.