Pregnancy of unknown location

An

Last October I went to the ER by week 5 of pregnancy because I had vaginal bleeding. They couldn’t find even the yolk sac. They said that maybe it was too early to see baby and I was measuring 4 weeks. My bleeding was light for the next 3-4 days and then I had a very heavy bleeding which they then told me I was miscarrying and the diagnosis was a Pregnancy of Unknown Location. I had heavy bleeding but nothing to crazy to be worried and I did not feel pain at all. My HCG went down eventually a month later, I had my period later and now Im pregnant again. My question is, is this same thing as an ectopic pregnancy? Or was it only a chemical pregnancy?