Meet Brain One: a smart telemetry sensor designed for action sports that tracks your every activity. It has a temperature sensor, GPS, WiFi, Bluetooth, 9-axis accelerometer, barometer, and 4 GB memory. Just place it on your bike to track your activity. Brain One can be connected to your action cam to start recording video as you start moving.
You can control and share results of each session through your smartphone or smartwatch. More information is available here.