Here's a tip for dealing with wet, muddy foot print on carpet. Sprinkle cornstarch over the foot print and let it dry. Once dry, vacuum up the cornstarch.
This page contains the following solutions.
When you get muddy footprints in my house or car, sprinkle them with baking soda and let them dry. Once dry, vacuum up the dirt and then clean any leftover stain with Resolve or a similar carpet spot cleaner.
To clean mud from carpet easier, let it dry then scrape what you can up with a brush, and vacuum.