Tracking when I ovulate


Before I get my period I spot a few days before. So when I track when I’m ovulating, do I count the first day of spotting or the first day of my period? Also does spotting count as a period? Therefore would that be my day one of my period?