Zoey Zendaya did give you some suggestions for how to help them avoid submissive/excited peeing, if that's what it is, and these techniques do work when everyone in the household use them consistently. Not all dogs do outgrow it if they are very submissive or highly excitable. That's why you need to use the techniques of approaching/greeting them/handling them that least prompt them to pee. Besides the other tips you might get on YT, here's a link you might read plus you could Google "Submissive or Excited Urination" and read a lot of articles and comments about the different ways to diagnose and help dogs with it to prevent it from becoming a lifelong problem.
Submissive Urination: Why Your Dog Does It and How to Help Him Stop : The Humane Society of the United States