Questions about logging my period

I want to make sure I'm logging my period correctly to hopefully get more accurate ovulation prediction etc but I'm not sure how to log my period days due to brown spotting at the beginning and end of my period...should I count brown spotting as my period or just log it as spotting?