Sizing shock is best done if you know what your suspension travel is. And the best way to do so is to remove your existing shocks and drive one tire up on a ledge or something then measure your distances. <ie full compression and full droop>
Your shock should have a little travel left after you hit your bumpstops so add like a .25-.50".
....................
Listen to this advice (above).
I'm reading a lot of bad advice and opinion (not real world). For example, having 4-6" of uptravel and hitting a 4" rock... has NO RELATION to the shocks travel and if it bottoms out. It would more so if your shocks were in direct 1:1 angle (and then depend on speed, shock valving...etc.etc) to the axle, but they are not (especially the rear).
Let me elaborate;BEST and only way to determine correct length of needed shock is to get the vehicle to a rack, or forklift one tire to full compression. Measure the shock mounts, center of eye to eye (that would be bolt to bolt with no shocks on the vehicle). While it's in this position, take a measurement of the drooped side and note it too (usually the opposite corner of the vehicle). Do this for ALL 4 corners, as you'll get different measurements at each corner.
Once all 4 measurements are taken, full uptravel and full droop, take the shortest and longest measurements. Use those to calculate shock length. For example, if you have a 14" length at uptravel, and a 21" length at full droop.... you then need a shock capable of about 8" of travel (full movement). However, the body of the shock now comes into play because you don't want it too long (which would limit uptravel). With the vehicle sitting static, measure your distances between bump stop and axle. If it's 2", then add 2" for bump stop squish. That means you have about 4" of uptravel at static ride height. With the shock sitting static, you want about 4.5" of shock shaft showing, and still want the shock long enough to extend out to full droop... 3.5" longer. Make sense yet???
It's tough to always find the perfect shock, in the perfect length, with the perfect valving (for the light zuke). But it used to be Rancho RS5000 shocks were built with numbers to reference their valving AND lengths. 5010 and 5008 were most often used in multiple shock applications (soft valve), where 5100 series were single shock applications (stiffer valving). I've not used them in a long time... but, that gives you an idea. Also, most of us with missing links installed, will need a long shock capable of severe droop, without effecting uptravel due to the shock canister length.
Here's a quick link for some compressed and extended lengths (L=loop, S=stud)
http://www.my4by.com/rancho-rs5000-shock-specs-a-1.html... did you use the chart to see which shock the above example needs?? (RS5008 or RS5118 as they are loop-loop)
And a link for mounting codes...etc;
http://www.my4by.com/pdf/RanchoMountingCodes.pdf... if you've got the extra bucks, the 9000 series would be an awesome choice. As you'd be able to dial in your suspension for the terrain your driving on!