Really need some more information before offering advice -dog or bitch, spayed or neutered, how old, has she been in season recently, have you changed anything, i.e. moved, or changed where she sleeps, lost/acquired another dog etc.
If it is cystitis then cranberry tablets can help, although if she has been spayed some bitches can become incontinent through this and you can get tablets from the vet.
Where does she sleep, does she have a cage, or bed of her own or does she sleep in your room?