If you get fleas in the house, one thing that helped me was
Fleabusters. It is a powder that you work into your carpet and it lasts for about a year, withstanding vacuuming!