Measurement of the inclusive J/\(\psi \) polarization at forward rapidity in pp collisions at \(\mathbf {\sqrt{s} = 8}\) TeV