How do you measure actual productivity? Most of the traditional developer metrics are easy to game and don't reflect the desired organization outcome.
Instead, you want metrics that actually demonstrate value. The DevOps Research and Assessment (DORA) metrics are a good approximation of the team delivering value within the scope that they can control.
- Google DevOps Blog
Additionally, it is important to track the value of deployments. This includes metrics for the deployment of product sponsored tickets, customer reported issues, and removal of technical debt.