Positive reinforcement is a good training method.
Food and a Clicker produce great results with communication.
The dog can be taught to recognise the 'Click' as the prompt to Wee on the Shagpile (especially when the carpet cleaning service has just left the home).
Each successful 'Click' that successfully produces a Wee on the Rug, will be positively reinforced by giving the dog a 8oz fillet of Steak. This really works!! Take note.
As a forewarning, the method can result in Turd being discovered on the Shagpile, or in a unfortunate bare footed discovery trod into the Shagpile.

