How to Stop Pets from Urinating in Your Plants
To stop pets from urinating in your plants, try spreading pine cones, prickly mulch, or chicken wire around them, which your pets won't like walking on. You can also try planting a prickly or thorny bush near your plants to keep your pets away from them. Just make sure the thorns are short so they don't hurt your pets' eyes. Or, you can set up a motion-activated sprinkler so your pets get sprayed with water whenever they get too close to your plants.
Install barriers around your garden. Physical barriers will prevent your pets from getting near your outdoor plants. Examples of barriers are chicken wire fences and wire cages. These materials are available at your local home improvement store. Talk with the store's staff for advice on building a fence or cage according to the specific size of your garden. To build a chicken wire fence, pound metal stakes into the ground and attach the chicken wire to the stakes. A chicken wire fence does not need to be very high. A fence about two feet (0.6 meters) tall will probably be high enough to keep your pets out of your garden. A wire cage would be useful if you think your pets may climb or jump over the fence. A fence or cage could be unsightly. Make the soil undesirable. If installing barriers is not practical for you, try different strategies to keep your pets out of your garden. Making the soil undesirable applies to cats, since they are sensitive to how a surface feels when they urinate or defecate. The cool, damp soil in your garden feels good to your cat, so you will need to make the soil feel uncomfortable. Below are examples of items you can use: Chicken wire Rough-textured mulch Prickly pine cones Chop sticks or plant stakes, placed about 8 inches (20 cm) apart Large, flat stones Citrus (lemon, orange) peels Grow plants your pets don’t like. If your pets don't like the plants in your garden, they probably won't urinate there. Examples of plants that cats dislike are rue (blue foliage that has a bad odor), geraniums, and various herbs (such as thyme). Neither cats nor dogs like prickly or thorny plants, such as rose bushes, barberry, and hollies. If you want to plant a prickly plant, choose one with short thorns that won't damage your pets' eyes. The coleus plant has a strong odor that dogs and cats dislike. Create a separate garden area for your cat. If your cat likes to be in your garden, create a separate garden area that is just for your cat. To make the garden, plant some catnip and place some sand on the ground so your cat can sleep comfortably. In the area where you don't want your cat to go, continue to make it inaccessible or undesirable. Teach your dog where to urinate in the yard. If your dog has made a habit of urinating in your garden, you will need to train your dog to urinate in another part of the yard. When your dog needs to urinate, take it outside on the leash to a spot in the yard away from your garden. After your dog urinates, immediately reward it. Take your dog to this same spot each time. The immediate reward will teach your dog to associate urinating in a certain spot with something good. Use deterrent devices near your garden. If nothing seems to work with keeping your pets out of your garden, consider using commercially available deterrent devices. For example, install a motion-activated water sprinkler. Anytime your pets go near the garden, they will get sprayed with water. After getting sprayed a few times, your pets will learn not to enter the garden to urinate. Other deterrent devices use light or sound to scare pets away. Put the plants out of your pets’ reach. If your pets can't get to the plants, they will not be able to urinate in them. For cats or small dogs, place the plants on the tops of tall pieces of furniture. For larger dogs, you may have to move the plants to areas of your home where your dog is not allowed to go. If you have large plants, it may not be practical to move them. Be aware that your cat may be able to jump on top of furniture to get to the plants. If moving the plants is not practical or doesn't work, you will need to use other strategies to keep your pets away from those plants. Spray repellent on the plants. Repellent sprays are available at gardening centers that can keep pets away from plants. However, the repellent can wear off and become less effective over time. If you decide to try a repellent spray, follow the label instructions carefully. Make the plants undesirable to your cat. If you can't block your cat's access to the plants, make them undesirable. For example, place chicken wire on top of the soil, bending it upwards so your cat can't easily step on it. Other ideas for undesirable items are: Aluminum foil or irregularly shaped pebbles placed on the soil Double-sided tape or citronella spray around the top of the pot Citrus peels around the plant Give your dog an alternate activity. If your dog is urinating in your indoor plants, especially if you have a male dog, it is likely marking its territory. If moving your plants is not feasible, give your dog something positive to do in the area with the plants, such as eating or playing. Once your dog associates that area with a positive activity, it will be less likely to urinate on your plants. Dogs will also urinate indoors if they feel stressed. If you know which stressful event (a visitor to your home) triggers the urination, distract your dog with another activity when that event occurs. For example, if you have a friend come over, give your dog a food puzzle toy to play with to keep it busy and less stressed. Discipline at the right time. Despite your best efforts, your pets may continue urinating in your plants. Disciplining your pets will help them understand that urinating in your plants is unacceptable. To discipline your pets effectively, do so at the moment of the bad behavior. If you discipline after the fact, your pets will not know what they're being punished for. If you don't see your pets urinating in the plants, do not discipline them. Spray your cat with water. If you see your cat urinating in your garden or in an indoor plant, use a spray bottle to squirt your cat with water. The sudden spray of water will startle your cat, but won't physically harm it. After a few times of getting squirted with water, your cat will learn not urinate in your plants. However, the cat may associate the spray bottle with you rather than with the plant, so they may only be deterred from urinating on the plant when you're around. Use only one or two squirts of water. Be aware that, if your cat's outside on a hot day, it may enjoy the spritz of water. Interrupt your dog. When your dog looks like it's about to mark (lifting leg, sniffing around), interrupt it by saying 'Oops!' or some other firm word (no, stop). After you get your dog's attention, give it a command, such as sit or lie down. Giving your dog a command will shift your dog's focus to doing something that's incompatible with urinating. Do not use harsh punishment methods. Even if you're frustrated with your pets urinating in your plants, do not yell at or physically abuse them. This is especially important if your dog is urinating in your plants because of emotional stress. Yelling at your dog would just make the stress worse, rather than stopping the bad behavior. Harsh punishment would make your pets fearful and wary of you. 
Install barriers around your garden. Make the soil undesirable. Grow plants your pets don’t like. Create a separate garden area for your cat. Teach your dog where to urinate in the yard. Use deterrent devices near your garden. Put the plants out of your pets’ reach. Spray repellent on the plants. Make the plants undesirable to your cat. Give your dog an alternate activity. Discipline at the right time. Spray your cat with water. Interrupt your dog. Do not use harsh punishment methods. 