The factor of four and why Goldman has a different factor is explained on page 8806 of Generalization of a formula of Wolpert for balanced geodesic graphs on closed hyperbolic surfaces.Generalization of a formula of Wolpert for balanced geodesic graphs on closed hyperbolic surfaces.
A derivation with prefactor four is given in section 2 of The complex symplectic geometry of the deformation space of complex projective structures.