Being patient is the most important thing. Keep the puppy with you at all times-you can't correct what you can't catch them doing- and keep them in a crate when you can't watch them. play with the pup and when it starts to sniff around then squat, take it outside and wait until it does its business then say "good job!!" in a really excited voice and go back in. put the pup in the crate to sleep for awhile, then let it out to drink and take it outside again. if the pup ever starts to pee inside, clap your hands loud and say "no!" to distract it and take them immediately outside to go and praise them when they do. repeat. never hit a puppy or rub it's nose in anything...that only teaches it to be afraid of you. anxious dogs don't learn well. so google housebreaking or crate training, and you'll be fine. the work you do during this first year will insure you'll have a great dog.
We put a puppy pad by the door. Gave the dog a treat for going on the pad. After a few days when the dog got it & understood, we showed the dog the pad outside. Then the dog started going to the door to go out on the pad. Finally the dog could do it w/out the pad.