The LHCb experiment offers a complementary phase space to ATLAS and CMS to study electroweak processes, thanks to the forward acceptance and the large bandwidth of the trigger allowing low energy thresholds. For this reason electroweak measurements at LHCb can provide unique constraints to the Parton Distribution Functions.
In these proceedings the latest measurements on $W$ and $Z$ bosons production performed during the LHC Run I and Run II data taking are presented.