how to stop this?

La

My puppy isnt as bad as her brother but sometimes she gets super excited or scared she pees on herself. I am going to see if my boyfriend will let me bring her with when I move in, but how do I break of this habit she has?