Can you keep the golden retriever in a cage for two months so that it doesn't pee indiscriminately?
After all, keeping a medium-sized dog in a cage is not a long-term solution, and you need to bother. Train him to go to the toilet, as long as you have the patience to teach him. He mumbles when he wants to go to the toilet, so you can take her to the toilet, or put a newspaper in the toilet to let him go when he wants to pee.