Keep your dog secured on a leash and ignore everything they do. If they sit and look at you, give them a treat. Soon you’ll have a much more attentive dog