My first shepherd peed when people came over and got her all revved up...
I do recall it as quite a hassle...I used to have her outside the backdoor when friends would come over so at least she'd squirt outside.
I have no idea if it was a submissive thing or a happy/pleasure overload thing...all I do know is it was short-lived...a couple months ????? I also know she understood that doing the happy dance piss in the house routine wasn't in her best interests....
I'll bet someone who knows the "dogshrinker" stuff could suggest possible reasons why it is happening....and possible corrections.