Chemical pregnancy

So after getting positive pregnancy test, the following day was I got a negative test. I started bleeding 24 hours later one day later than my expected period. I’m assuming I had a chemical pregnancy. Anyone have an experience they can share with me. Did you have a successful pregnancy after a cp? Just very discouraged.