To prevent your dog from barking excessively, you can try the following techniques:
Teach the “Quiet” Command