My aussie did the exact same thing. The vet did an urinalysis and she said it was urinary incontinence and is treating her with medication and my girl is doing much better now.
Wishing you the best!
Is your baby spayed? Mine is and I've read that urinary incontience is 25% more widespread in spayed females