Understand the dog's behavior. In a dog's world, it is instinctual to greet another dog by coming nose-to-nose with them. This allows them to sniff each other's faces and become acquainted with the other dog's scent. Of course, your nose is a bit higher to reach so it is only natural that your dog will jump up to get closer to your face when greeting you. This can be quite annoying and unnecessary, but fortunately, the habit can be broken.
A conflicting behavior when you come home—like “sit”—helps enormously. You’ll need to practice your puppy’s “sit” during calm moments first, and then ask for this polite behavior before you leave and when you arrive home. Guests will appreciate a polite “sit” when they arrive, too, as they won’t appreciate your puppy leaping around and mugging them for attention.
1. Do not let your dog make a big deal out of your arrival home. In fact, as the alpha leader of your family's "pack", you shouldn't even greet him or her for at least 15 minutes. If your dog jumps around and pesters you before that, squirt him with water pistol or shake a can filled with pebbles. This will startle him, and if done on a regular basis, calm him whenever you get home. He won't make such a big deal of your arrival, and thus learn that he can greet you without jumping. Follow the same technique for any visitors to your home. Do not introduce the dog to your visitors until after 15 minutes or longer.
4. Use the "Sit" command. This is one of the most basic, and important, commands. As such, if your dog is well trained, he will respond to the Sit command before even thinking to jump. If he does not respond well to the Sit command, then more training is necessary, as this is the foundation for dog obedience training. Train him until he responds to it in everyday situations, such as greeting and going for walks. The better he understands the Sit command, the much less likely he is to ever jump at all.
Paying attention to a dog only when all four paws are on the floor can work well, if jumping isn’t well entrenched and if everybody who deals with the dog follows the rules. Unfortunately, much of humanity will get busy undermining you. “I don’t mind your puppy jumping up,” they say, while you tear your hair out. Or they get all disciplinarian, maybe kneeing the dog in the chest. That is not only mean but counterproductive, because dogs often respond by trying to appease. Since humans are usually taller than dogs, reaching our muzzles to lick them involves jumping up.