Chemical pregnancy question?

How do you know if you had a chemical pregnancy? I think I might have had one but I'm not sure. Has anyone had one before? And could you please explain what it really is?