Baking soda is an ever-popular deodorizer and it's pet-safe.
Crush up a handful of dry lavender and mix with a cup of baking soda, and sprinkle that over your carpet.
Let it sit for a bit, vacuum it up, and you've got fresher and fido-friendly carpets.