The State Farm one is super easy to defeat. It is just a BLE beacon that wakes up as long as it detects motion, triggering the app on your phone to do all the tracking. Once it no longer sees the beacon for some period of time, it considers the trip ended and uploads data.
If you don’t want it tracking a particular trip, you can simply disable Bluetooth permissions for the app in your phone’s privacy settings. The app will never wake up. If you do it partway through a trip, the app is forced to quit and never uploads any information.
You can leave Bluetooth permissions off to completely disable trip tracking, but after a couple of weeks you’ll get an email about your beacon not working. As long as you let them see the occasional trip and submit updated odometer readings, you will still get the discount.
This likely applies to all discount programs that do not actually use the a vehicle’s OBD2 port or connected services (OnStar, Tesla, etc…)