My 8 month old german Shepard still pees and poops in the house!!?

I’ve tried everything nothing works! She know she suppose to go outside she does in the day time but at night she will mess up when I’m asleep and I really don’t want to keep her in a cage! So does anyone have any suggestions???
9 answers 9