Pregnancy testing

Danielle
Hello. I have been trying to get pregnant for a few years now with no luck. Two weeks ago I had sex and my period is irregular. I was wondering when would be good for me to take a test since I can't track when my period is supposed to come. I go through times where I don't get a period but I ovulate. Any advice welcome. Thank you