When people come tell/make her sit while being greeted (treat and praise her when she sits). Dogs can't pee while sitting and if done enough she should eventually automatically sit when someone approaches her as a dog learns by repition and positive reinforcement. Hope this helps.