A dog that’s sitting can’t jump up. Ask your dog to sit before letting them out, so you at least begin the exercise in control.
Practice makes perfect. Practice putting your dog in confinement and letting them out again. The first few times they will be very excited and hard to control. Each repetition will make them more manageable, giving you the chance to praise them.
Housetraining your puppy starts with their puppy playpen, a long term confinement area designed tencourage them to potty in the right place.