You can avoid the situation altogether by spraying something on your flooring that will stop your dog from peeing on it. Laying down a thin layer of commercial enzymatic spray is a good, proactive solution to a dog who urinates in the house and can be found in most pet stores.

Find the detailed article on this link and you may refer these other links as well.
https://www.cuteness.com/article/spr...ep-dogs-peeing
Train Dog To Poop Outside