It depends on your machine, so check the manufacturer's guidance first. If your carpet cleaner is suitable for detergents, you can use diluted Counter Clean. Test a small area first. We don't recommend it in steam cleaners.
For a quick spot clean, or just to freshen up the room, you can spray Counter Clean straight onto the carpet.