constipation

My baby has been really constipated for the last week and a half. I have given her prune juice and it's helped. she will go a day where he poop is better. and then back to pushing super hard and her poop being in big balls. I don't know what to do anymore. Do I just keep giving her prune juice?