Spotting 9weeks 4days TMI

Danielle

Since about 6 weeks I have been having a yellow mucus it reminded me of a mucus plug but today I wake up and go pee when I wipe I see pink blood by the time I get to the ER its brown and barely there now it looks like the mucus thing Ive been having but also mixed with brown not sure what this is and I am cramping pretty moderate and Tylenol isnt working the baby was fine heart rate 158 this is my first time having spotting in pregnancy has anyone else had this and baby was fine?