The chemical reactions and pathways involving geranylgeranyl diphosphate, a polyprenol compound involved in the biosynthesis of a variety of terpenoids including chlorophylls, carotenoids, tocopherols, plastoquinones, and the plant hormones gibberellins.