They use TotalDistance for scoring in that example.
Add the Scirra Arcade object to your layout (second object) and add this line to the event:
You will need to upload to the scirra arcade and create a leader board for the game and then it will submit that TotalDistance to the leader board at the end of the game.
If you want to Save it locally while you play use the Save and Load commands.