Bowel issues

Hey guys so just about 3-4 months ago i found out i had endometriosis and got my ovary removed. unrelated but after that i noticed my period blood was bright red for the first time! woo hoo

anyways given my slight improvement with my periods i have noticed what never changed was how i will go through phases of having diarrhea and constipation and literally just going in and out of the bathroom ALL DAY. and it’s so uncomfortable too my pelvis area is just gurgling. it also really affect my energy i could just do nothing all day. How can i mange this better? this happens before and during my period so i have a feeling i will be starting my period soon. also how can i better track my symptoms so i have a clear understanding of when and how my body changes bc of this so i can better manage it.

thank you guys for any advice and help