I had a female GS years ago that did that. She just got so excited when
anyone walked threw the door she would pee.
We started walking in and walked right past her into the kitchen, opened
the door and let her out before we greeted her

I think it is just excitment. I would either ignore her and not greet her
or put her into the kitchen, pen etc until company calmed down then
let her join in.