This sounds like submissive peeing and if many of your friends have dogs which are dominating she will naturally be nervous around them. (dogsbarn.com)
When there is an accident, just as with submissive peeing, do not reprimand or punish your pup. (thesprucepets.com)
So what should you do if you think you have a dog with an excitement or submissive peeing problem? (thesprucepets.com)