Since direct observation of a fossil animal's behavior isn't possible, paleontologists use comparison and contrast with living animals for guidance. Tracks can sometimes reveal further clues to behavior. At a fossil site, the mix of plant and animal species gives clues to the ecosystem of that time and place.
Fox et al. (1992)