1. Make sure your dog is getting enough exercise. A tired dog is less likely to have the energy to mark its territory. Aim for at least 30 minutes of exercise per day, divided into two or more sessions.
2. Take your dog out to potty frequently. This means taking your dog out first thing in the morning, after meals, and before bed. You should also take your dog out every 3-4 hours during the day.
3. Choose a designated potty spot for your dog. This could be a spot in your yard, or a nearby park. When you take your dog out to potty, always take it to the same spot. This will help your dog to learn where it is supposed to go.
4. Praise your dog when it urinates in the right spot. This will help your dog to understand that you want it to go potty in that spot.
5. Clean up any urine accidents immediately. This will help to prevent your dog from being attracted to the smell of urine and urinating in the same spot again.
6. Use a deterrent spray. There are a number of commercial sprays available that are designed to deter dogs from urinating. These sprays can be applied to the areas where your dog is urinating.
7. Consider neutering or spaying your dog. This can help to reduce the urge to mark territory.
If you are having trouble stopping your dog from urinating on walls, you may want to consult with a veterinarian or animal behaviorist.