"Feed your dog a treat every time he walks by you or looks at you," and he will quickly learn to stay close. You can also give them a treat while out on a walk but only after you tell them to sit or shake hands, Trott says, as this will reward them for listening and paying attention.