Ovulation spotting

If you have ovulation spotting does it happen before or after ovulation occurs?