To get urine out of your carpet, do not use amonia. It is best to scrub the area lightly with warm water and Dawn dish detergent. Then rinse the area with more warm water and let it dry. Repeat as necessary.
An enzymatic cleaner made specifically for pet urine is best. Alternatively, soak up worst of stain, then soak with white vinegar while still wet. Wash with laundry or carpet shampoo.
You will need to get a dog cleaning stain remover or any carpet remover and a damp cloth and rub lightly and allow to dry and then you will need vacuum.
Use any commercial window cleaner such as Windex. Soak stain with liquid then blot up with paper towels. (Test a hidden first to ensure your carpet can take it. )