Firstly make sure you are not using anything with amonia in as this smells like a dogs toilet and will encourage her to pee all over. Never smack her or shout at her when she pees in the incorrect place but reward her for doing it outside. She will soon prefer to do it where she gets rewarded. Start feeding her in the places in the house that she is toileting. Dogs generally do not like to pee where they eat.
Please register/login to answer this question.