I was hoping to get some responses back from my information request before answering. First off you need to clean the area with a good enzymatic cleanser and be sure to let the cleanser soak in as long as the original elimination did. That way it will break down the protein in the elimination and totally remove the odor. As long as there is even a trace of odor remaining the dog will be drawn back to the area and eliminate again. Normal everyday cleaners are designed to fool human noses not dog noses, so it has to be an enzymatic cleanser.
If you let him on the bed to sleep or cuddle, then he may be eliminating on it in order to claim the bed for his own. Dogs do mark things by urinating on them in order to claim them and show ownership.
Probably the easiest way of stopping the situation with minimal training is to purchase a scat mat to place in the doorway. This will stop the dog from going into your room even without the gate. You can see one here:
You could also put it on the bed to prevent him from getting on the bed without being invited by you.
Small dogs often do not like to go outside to eliminate without their owners. It is like they seem a little worried about potential predators. Here we have foxes, coyotes and bobcats who will go after cats, kittens and small dogs without hesitating and don't think twice about entering a fenced yard as well. I don't know what predators you have there. Certain species of birds also like to torment cats and dogs by diving at them.
Now what you might want to do is create an inside spot for him to use when you are gone. I recommend a real grass mat. You take a large pan like a kitty litter pan or even a baby swimming pool. You create a platform frame with wire on top. Place newspaper or other absorbent material such as wood shavings under the platform and place sod on top of the wire frame. Since it is grass, your dog will go on it. You can remove solids and can spray the urine so it moves through and down into the absorbent material underneath. This lets you use the same piece of sod for a while before needing to replace it. You do need to replace the material under the platform.
I hope this information is helpful to you and you are satisfied with my response. If you would like any additional information or have more questions please don’t hesitate to press the reply to expert or continue conversation button so I can address any issues you still have .