Punishing a dog after they've peed won't teach them anything except that you get mad and unpredictable around pee, not that they caused you to get mad by peeing earlier - they need immediate consequences to put together cause and effect well. Punishing them when you catch them in the act is only slightly more effective, and most dogs will just learn to sneak off and pee where you can't see them instead of learning that they shouldn't pee in the house.
First question is has she seen a vet to rule out a urinary tract infection? If she's sick, no training of any kind is going to help much. UTIs make dogs feel like they have to pee very urgently and often, and they will have much less control over their bladder because of it. Some female dogs have what's called a recessed vulva, which can make them more prone to these infections.
Go back to basics for a bit. For the first couple days, she only comes out of the crate when you are directly supervising her. Take her out every 30 minutes still (as well as after eating, after playing, after a big drink, and after napping), on leash, and make a big fuss with lots of treats and praise the moment she's done peeing. Don't let her just run around to do her business, because you lose the opportunity to reinforce pottying outside if you don't see it happening and can't be right there to reward this good behavior. If she doesn't pee when out with you she goes in the crate. If you can't watch her she goes in the crate, even if it's two minutes while you're in the bathroom. Don't think of the crate as punishment for her, but as management so that she can't practice peeing in the house.
If you see her starting to sniff or squat like she's about to potty, interrupt her with a neutral but attention getting sound (eg don't scare her - I like to use a high "bupbupbup!" or "whoopsie!") and rush her outside to finish. Reward her for finishing outside. If you find any pee spots in the house, clean it up thoroughly with an enzymatic cleaner (these break down urine smell so that even dogs can't smell it and think "oh, hey, this smells like a potty spot") and don't make a fuss. Then evaluate why she was able to make a bad potty choice (had you waited too long? Ignored signals? Left her out when you couldn't watch her?) and try to adjust your plan so it can't happen again.
The goal here is to reinforce pottying in the correct spaces and prevent her pottying in inappropriate spaces. Yes, it's a pain. You have to be super consistent and it'll mean a lot of crate time for her. But if you're really on top of things, she'll learn quickly and become super reliable, and you can give her a lot more freedom.
First question is has she seen a vet to rule out a urinary tract infection? If she's sick, no training of any kind is going to help much. UTIs make dogs feel like they have to pee very urgently and often, and they will have much less control over their bladder because of it. Some female dogs have what's called a recessed vulva, which can make them more prone to these infections.
Go back to basics for a bit. For the first couple days, she only comes out of the crate when you are directly supervising her. Take her out every 30 minutes still (as well as after eating, after playing, after a big drink, and after napping), on leash, and make a big fuss with lots of treats and praise the moment she's done peeing. Don't let her just run around to do her business, because you lose the opportunity to reinforce pottying outside if you don't see it happening and can't be right there to reward this good behavior. If she doesn't pee when out with you she goes in the crate. If you can't watch her she goes in the crate, even if it's two minutes while you're in the bathroom. Don't think of the crate as punishment for her, but as management so that she can't practice peeing in the house.
If you see her starting to sniff or squat like she's about to potty, interrupt her with a neutral but attention getting sound (eg don't scare her - I like to use a high "bupbupbup!" or "whoopsie!") and rush her outside to finish. Reward her for finishing outside. If you find any pee spots in the house, clean it up thoroughly with an enzymatic cleaner (these break down urine smell so that even dogs can't smell it and think "oh, hey, this smells like a potty spot") and don't make a fuss. Then evaluate why she was able to make a bad potty choice (had you waited too long? Ignored signals? Left her out when you couldn't watch her?) and try to adjust your plan so it can't happen again.
The goal here is to reinforce pottying in the correct spaces and prevent her pottying in inappropriate spaces. Yes, it's a pain. You have to be super consistent and it'll mean a lot of crate time for her. But if you're really on top of things, she'll learn quickly and become super reliable, and you can give her a lot more freedom.