It's important to give your dog a treat immediately after they perform the desired behavior, so they make the connection between the behavior and the reward.