Apply baking soda: Sprinkle a generous amount of baking soda over the stained area. Baking soda helps to absorb moisture and odors. This will also help reduce spreading on the back side of the carpet.