In order to effectively get rid of pet-related odors from a carpet, one should first seek to neutralize the odor. White vinegar works well in this regard. It has a very high acidity level, which allows it to completely neutralize the pet odor.
Begin by blotting the area where the odor remains most prominent rather than rubbing it in. This ensures that the stain and the odor are not pushed into the carpet. Mix together equal parts of the white vinegar with cold water, and pour it over the area to be cleaned. Blot the mixture into the area, and allow it to dry. Once it dries completely, vacuum the area.
Baking soda also provides a great way to get rid of tougher odors in a carpet. Sprinkle a generous amount of baking soda over the affected area. Allow it to permeate the area for a few hours, and then vacuum it up.
Another easy way to get rid of pet odor in a carpet is to use club soda on the affected area. Apply the soda while it is effervescent by blotting it into the area. It may require several treatments to remove the odor.
You may also use bleach on a light colored carpet to remove pet odors. Mix 10 parts water with one part bleach, and apply the mixture to the affected area. Allow it to sit for a few seconds, and then rinse the area with warm water.