How do you know where to position your cleats?

Is there a link or something that helps you dial this in or is it really trial and error?