The best way to keep dirt from getting on floor mats is to vacuum them regularly and shake them out periodically. Additionally, you can try spraying them with a water repellent to help keep dirt and debris from sticking to them.