double bleed? when am I ovulating??

Ra
I was due AF 13th but on 8th-10th I bled. Heavy day 1-2, 1 day light, I had tested in 7th and seen a vvvvery faint line. So i assume bleed was early miscarriage. I assumed that meant I wouldn't get my AF but 13th I have light brown bleed. I tested on 12th BFN
Questions:
When do I log my period in Glow?
When should I start ovulating tests? 
Did I miscarry?