Question: how to train a dog not to urinate indoors?
Answer: Take your puppy outside frequently—at least every two hours—and immediately after they wake up, during and after playing, and after eating or drinking.
Pick a bathroom spot outside, and always take your puppy (on a leash) to that spot. ... 
Reward your puppy every time they eliminate outdoors.