A good solution instead of scratching is ringing a bell next to the door and by training her to get to do that everytime she is at the door scratching you should ring the bell for a while and then stop and once you are done ringing you open the door and lead her right to her potty spot. After repetition and not being lazy(!), which will help you in the long run your dog will be getting better in no time! good luck!