Here is how to get urine stains out of carpet. If the stain is fresh, first blot up as much of the moisture with a dry towel. Next, you will get a detergent solution made of one quart of warm water and a tablespoon of mild dish soap. Mix it up and mist it on the spot. Using a clean towel, dab the stain. Work from the outside towards the center and repeat until no more of the pet stain transfers. When you are done with that, you are going to get your professional strength urine stain remover.
You can also use hydrogen peroxide, but this will work better. Mist the stain remover on the spot and dab it with a cotton towel. Give it a good coating, dab the spot and then let it be. The urine stain remover will make the spot disappear completely in most cases. Note that this is for stain removal. If you have an odor issue, you need to have a professional steam cleaner clean the area. It is the only way to remove the most urine from the carpet backing and pad.