Using Vinegar Solution: Vinegar contains natural acetic acid, which works effectively as a household cleaner. Hence, you can also use it to eradicate your pet's pee stains.
Using Baking Soda: Baking soda or sodium bicarbonate is an all-purpose cleaner with alkaline properties. It resembles the features of washing soda, which helps clean some stubborn stains and neutralize foul odors, even if it is of your pet.
Using Pet Urine Cleaner: A Pet urine cleaner is a cleaning agent designed specifically to treat pet pee. It has odor-neutralizing features with a deep cleaning capacity that comes in a single use.
Using Dishwash Soap & Hydrogen Peroxide: The solution of dishwashing soap and hydrogen peroxide works best to lose the pet's pee mark. But before using it directly on your rug, spray it in a hidden part to check its side effects.
Using A Carpet Cleaning Machine: Carpet cleaning machines have powerful scrubbing agents that can pull out any kind of filth, including dog urine.
To get the pet pee smell out of the carpet, you can use any of the methods discussed already or prepare a special carpet cleaning solution by adding enzymatic cleaner to water.
You can use a pet-safe detergent, vinegar, enzymatic cleaner, or oxygen bleach to get clean it.
Train your dog to pee in toilet. This training may take time and patience. But keep at it and make sure you give them the required training to avoid such problems in the future.