A good home remedy that works to stop your dog from peeing in the house and on your carpet is to take some freshly squeezed lemon juice or lemon juice that is already made and mix it with some water and sprinkle the lemon juice on your carpets.
You can also use a spray bottle to spray the lemon juice on your carpets or areas where the dog is urinating in the house.
The lemon juice will deter and stop your dog from going to those places to pee.