Dog urine doesn’t just stain your carpet, it can leave a foul odor behind and permanently ruin your carpet. … The trick is to quickly clean up the stain as soon as you notice it [source: Hinckley]. Here’s how to get rid of dog urine in carpet: Blot up as much of the urine as you can with plain white paper towels.