3. Cranberry Supplements Cranberries contain compounds that may help prevent bacteria from adhering to the bladder walls, thereby reducing the likelihood of infection. Consult your vet before introducing cranberry supplements into your dog’s diet, as the appropriate dosage can vary based on size and health.