She should grow out of it, a lot of puppies do it, it's a mixture of excitement and submission. As she grows up her muscles become stronger and she will mature mentally too. The best way to stop this in the house is to ask visitors to ignore the puppy until she settles down and say hello to her when she is calmer. When you are out I can only advise you to warn people of the likely outcome if they stoop down to pet her and then it's down to them if they get wee'd on 