Capture the behavior you want and reward it by enticing your dog with a trigger that excites him, like holding a ball or ringing the doorbell. Right before the dog barks, say the command you want to teach (he will then associate the command with vocalizing) then give your dog a treat for barking on command. If he barks but you haven’t said the command, don’t reward him. After a few repetitions, he will begin to realize that if he barks, he will get a treat, said McGonigal, who also uses clickers to train. ( https:// )You can also trigger the bark by doing something that frustrates the dog, like bouncing a ball out of his reach behind a baby gate. After you say the command, you can then reward the dog by giving him the treat of playing with the ball. Repeat the process by rewarding your dog for barking on command then, once he learns the command, reduce the treats and make them more intermittent, Klein said.