A good training tactic is to hang a bell beside the door you take him out to go pee.

every time you take him out ring the bell. soon enough, he will learn to ring it every time he needs to go pee