@adriennelisa Yep, everyone here is correct. You ignore until they're calm.
Your affection is the reward. They'll start realizing, 'if I do this, I get pets' so they'll do it more quickly over time.
If I need mine to calm down more quickly, I'll usually direct her to get her toy and go to a designated spot with the command 'place'.
This is the main thing when you have a dog that does the excited pee. Gotta get them calm first.. Like you coming home is no big deal, just a normal part of the day. This also works wonders for separation anxiety.
And anybody who comes over should do the same - just let them know the rules of walking in the door and greeting. If they say, oooh, I don't mind if they're crazy. You say, 'This is about her remaining calm and not being overstimulated which gives her more confidence and I need your help with that.'