Be persistent! Make sure the puppy doesn't get the opportunity to pee and poop by using a leash indoors or confining him to a crate when you're out. Depending on the puppies age, pop him outside every 20 - 30 minutes, so there's a greater chance of him toileting outside (by accident at first.) In addition, get rid of any scent markers he's left by peeing or pooping indoors, as these will draw him back to the same spot. This means cleaning the area daily, for 2- 3 weeks after he last pooped there to fully get rid of any lingering odor that the dog can detect.
Submissive urination is a normal way for your puppy to demonstrate submissive behavior. Even a dog that is otherwise housetrained may leave dribbles and puddles of urine at your feet when greeting you. Excitement urination with a puppy is usually caused by lack of bladder control. The puppy is not aware that he is urinating; he's just excited and any punishment will only confuse him.
Dogs thrive on a predictable schedule, and setting one up for your new puppy will make life easier for both of you. Feed your puppy at the same times each day to help you predict and schedule bathroom breaks. Schedule post-meal walks, as well as hourly trips outside during the initial stages of potty training. Always take your puppy out after crating, even if was only for a short time, and remember that vigorous play should always be interrupted for potty breaks.
Though it differs by each individual dog this is the time when most will come up with their own little way of letting you know they’ve got to go. It might be crying at your feet, ringing a bell you’ve set up or waiting at the door — just be sure to pay attention to these signals & follow up. Once your dog knows how to get your attention when he’s got to go you can relax a little and congratulate yourself on a job well done.