Open the lid on the back of your bike computer and make sure you buy the right type of battery. If you change the battery quickly, there is a chance you will not lose your odometer data. However, even if you lose it, some bike computers allow you to enter a starting odometer value during the first setup.