How to Teach Dogs to Urinate and Defecate at a Fixed Spot

Just brought home a cute dog from a friend yesterday, and when I got back from work today I found that the dog had pooped and pee everywhere at home, which was very troublesome. So I consulted other friends with dog-raising experience to learn how to teach dogs to urinate and defecate at a fixed spot, and I want to share it here with everyone.
As soon as you arrive home, you need to designate a place for the dog to relieve itself. First, the owner should prepare a place convenient for the dog to urinate and defecate, also preparing for future training. A dog newly brought to a place definitely won’t adapt immediately and may get upset, but these problems are solvable. As long as the owner persists firmly in training the dog to urinate and defecate at this spot, success is achievable. When choosing a spot for the dog to relieve itself, it must be kept away from the eating area or the living nest; only by consistent long-term training will the puppy gradually get used to it.
Induce the dog to learn to urinate and defecate at the designated spot. The owner must grasp the dog’s urination and defecation schedule—usually within 30 minutes after eating or waking up, the dog will relieve itself. The owner must seize this timing and use it well to entice the dog to relieve itself at the designated spot. When the dog responds to the owner's encouragement and uses the designated spot, be sure to reward or encourage it. Gradually, the dog will understand the owner’s intention and develop the habit of fixed-spot urination and defecation.
How to teach the dog to urinate and defecate at a fixed spot? As long as the owner follows the above methods, the dog can be well trained to relieve itself at the designated spot. My dog also successfully completed this through this training method; it was difficult at first, but persistence pays off, and even the dullest dogs will learn. Hopefully, these training methods will help you.