When she does it in front of you say NO and correct her by taking her outside right than don't wait and when you take her out to potty keep saying to her go potty and keep saying it until she has done her bussiness than give her a good girl potty party

and give her a treat at that time if you want. I would take her out every 2 hours at first and as time goes on and you can go the full 2 hours without an accident I would add another hour to it until you get to 4 hours, you have to treat her like a pup even tho she isn't...don't give up she will pick it up and know that you want her to go outside...I hope this helps...good luck!!!