HELP pleaseeee...

On my fertile window I had EWCM and on the last day it had a bloody spot then and the next day I started with brownish spotting for almost 2 weeks until I had my period!
​Anyone has a clue what could it be?