If you’re like me and have trouble keeping up with your pup at all times try using a tether. You can buy a tether from the pet store or simply do what I did and use a long lead or leash. If tethering your pup to you at all times is what it takes to make sure they’re not sneaking off then go for it. If you’re not keen on keeping your dog tethered you can use baby gates or closed doors to restrict your dogs access to the whole house.
Consistency is crucial. This may mean taking time off work to be there to take the pup outside every 20-30 minutes when they are awake. Crate training will also help the 'penny drop' as it teaches the pup to hold on until taken outside. Then, be sure to stay with the pup in the yard so you are there to reinforce how clever they are when they do go in the right place.
The process is the exactly same for older dogs as it is for puppies; prevent accidents from happening by using baby gates and a crate if possible, create a predictable schedule, learn to recognize your dog’s potty signals, accompany your dog outside and immediately reward for all outdoor elimination, properly clean any accidents and supervise your dog until you’re sure that he understands the rules.