If its a male dog, then you can put a post in the ground where you want him to pee, all you have to do then is to train him to pee there. It's tricky to do, as the dog is used to just going anywhere in the garden, but can be done.
Our female dog pee's where she wants in the garden, it was...