Suppose you consistently praise your puppy for their actions, while potty training. Then say your dog has an accident. Do not praise you dog immediately. Instead, take your dog outside and wait for it to go to the bathroom. When it finishes doing its business, take it inside, and keep it in a separate room while you clean up the mess. After this you should act disappointed in your dog, but only for a few minutes. Keep you and your dog motivated to potty train.
The idea of using treats to train is often equated with bribery. Truthfully, dogs do what works. If using treats gets them to do what you want, then why not? You can also use the world around you as a reinforcement. Every interaction you have with your dog is a learning opportunity, so when you think about it, you probably don’t use food very often except during active training sessions. So why does your dog continue to hang out? Because you reinforce him with praise, touch, games and walks. Just remember, the behavior should produce the treat; the treat should not produce the behavior.
^ Vranica, Suzanne (September 10, 2009). "'Dog Whisperer' Hopes to Lead Pack at Newsstand". The Wall Street Journal. Archived from the original on November 7, 2017. Almost half of USA's consumers already know who he is, and consumers' awareness of Mr. Millan has grown 12% since May 2008, according to Davie-Brown, an Omnicom Group company that tracks the appeal of celebrities.
Don’t punish your dog if they pee inside. Regardless of all those old training ideas punishment isn’t a good deterrent for house training. Yelling at your dog after the fact just confuses them and makes them nervous around you. If you catch your did in the act you can try to get their attention & move them outdoors. If you’re successful & they continue going once you get outside praise them like crazy.
Unless you plan to keep your dog outdoors--and few of us do because it's not recommended--you'll need to teach your dog where to eliminate. Therefore, house training (also called housebreaking or potty training) is one of the first things you need to work on with your dog. Crate training can be a very helpful part of the training process. This includes house training as well as many other areas of training: