Pet ownership comes with a price. Dogs and cats don't value a clean carpet as much as their owners do. Puppies can take over a house as their own personal toilet bowl, marking their territory wherever they go. They don't discriminate either -- tile, linoleum, hard woods or even carpet flooring are all fair game.
Don't fill your house with chemicals that could harm the new family addition. Shaving cream makes a great emergency spot cleaner for removing pet stains from carpeting. Work it into the stain, then rinse and blot thoroughly. Be sure to use the foam kind rather than the gel.