what is the difference between a program and an app? If you want it to track automatically, it needs to have GPS, so a phone app would work best.
any phone app can do that, I use Samsung Health (free with Samsung phones).
Heart rate is only tracked if you use a heart rate monitor, so that is easy to avoid.