Beating Dino Run means completing every level in a course without getting caught by the pursuing catastrophe—the earthquake, hurricane, or comet on your tail. If you do get caught, a Time Shift lets you retry the level. Without one (or if you choose not to use it), you're sent back to the start of the course, though you keep your stats.
You get one free Time Shift at the beginning of each course, plus an extra each time you collect a milestone of eggs for the first time—30 eggs, then 60, then 90, and so on. Stockpile those and you'll have plenty of second chances.