Late periods

Jasmine • Mom ,Student,Employed,Married Etc.. Bad memory so I`m using this app to help with my cycle :)
I had a miscarriage back in dec mid jan the another before that in the summer . My period won't come consistentally .. I just got it on the 21st but missed last month and spotte through the other months.. I also had a positive test this month. Any thoughts?