Your dog doesn't know better. If it goes in the house.. you can rub your own nose in it as you are the one who wasn't watching. Rubbing a dog's nose in their bodily fluids will teach them to fear you and hide any elimination as it apparently makes you turn into a crazy person.
Previous people have mentioned rule out medical causes first.. Then you need to go back to housetraining 101. Can't watch the dog, confine it. Baby gate it into the room you are in for control.. can't leash the dog to you. You have to reteach your dog the toilet behaviour you want.
CRB Houdini's Apple Cider RXMCL AGDC AADC MSDC MJDC RNT CL3-F CL3-H EXJ Bronze
Stanton Acres Out Of The Ashes SGDC RNMCL MJDC ADC CL3-F CL3-S CL3-H
Stark Naked Burn it to the Ground