How can I track when I walk or run on the treadmill?

My watch doesn't count for most of my walk or run on the treadmill, do I need to get a tracker? If yes, which one? Thank you